9
3

OllixEverling.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/OllixEverling.lua
  3. Script Purpose :
  4. Script Author : smash
  5. Script Date : 9/12/2016
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. if GetTempVariable(NPC, "talking") ~= "true" then
  12. StartDialogLoop(NPC, Spawn)
  13. end
  14. end
  15. function StartDialogLoop(NPC, Spawn)
  16. SetTempVariable(NPC, "talking", "true")
  17. Say(NPC, "Ah, you've managed to kill my host.")
  18. AddTimer(NPC, 3500, "Dialog2")
  19. end
  20. function Dialog2(NPC)
  21. Say(NPC, "She was just a mortal coil I used to bring myself back.")
  22. AddTimer(NPC, 3500, "Dialog3")
  23. end
  24. function Dialog3(NPC)
  25. Say(NPC, "Now that I have returned to my father's castle, I no longer need her.")
  26. AddTimer(NPC, 3500, "Dialog4")
  27. end
  28. function Dialog4(NPC)
  29. Say(NPC, "However, she was useful in luring other foolish 'heroes' down here to be used by us.")
  30. AddTimer(NPC, 3500, "Dialog5")
  31. end
  32. function Dialog5(NPC)
  33. Say(NPC, "Now you can either do it for me and kill yourselves,")
  34. AddTimer(NPC, 3500, "Dialog6")
  35. end
  36. function Dialog6(NPC)
  37. Say(NPC, "or you can let me have some fun.")
  38. AddTimer(NPC, 3000, "TriggerAttackable")
  39. end
  40. function TriggerAttackable(NPC)
  41. SpawnSet(NPC, "attackable", "1")
  42. SpawnSet(NPC, "show_level", "1")
  43. end