9
3

Amoora.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Amoora.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.20 07:05:57
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. local ARatDivided = 447
  10. local AHardManToPlease = 450
  11. function spawn(NPC)
  12. SetTempVariable(NPC, "HAILED", "true")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if GetQuestStep(Spawn, ARatDivided) == 1 then
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "You don't happen to mean a handsome little ratonga named Ferink, do you?", "Option1")
  19. StartConversation(conversation, NPC, Spawn, "Every day is the same, now that he's gone.")
  20. elseif GetQuestStep(Spawn, AHardManToPlease) == 1 then
  21. if GetTempVariable(NPC, "HAILED") == "true" then
  22. zone = GetZone(Spawn)
  23. orc1 = SpawnByLocationID(zone, 133772310)
  24. orc2 = SpawnByLocationID(zone, 133772311)
  25. orc3 = SpawnByLocationID(zone, 133772312)
  26. orc4 = SpawnByLocationID(zone, 133772314)
  27. SetTempVariable(NPC, "HAILED", "false")
  28. AddTimer(NPC, 300000, "reset", 1)
  29. end
  30. else
  31. PlayFlavor(NPC, "", "...sigh... Hello there... You remind me of him, somehow...", "", 0, 0, Spawn)
  32. end
  33. end
  34. function reset(NPC)
  35. SetTempVariable(NPC, "HAILED", "true")
  36. end
  37. function Option1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. local conversation = CreateConversation()
  40. AddConversationOption(conversation, "Calm down, calm down. He asked me to come talk to you and make sure you were alright.", "Option2")
  41. StartConversation(conversation, NPC, Spawn, "How did you know? Do you know him? Is he here? Father will kill him if he is!")
  42. end
  43. function Option2(NPC, Spawn)
  44. SetStepComplete(Spawn, ARatDivided, 1)
  45. FaceTarget(NPC, Spawn)
  46. local conversation = CreateConversation()
  47. AddConversationOption(conversation, "That is terrible! I will go talk to Ferink. Maybe there is something we can do.")
  48. StartConversation(conversation, NPC, Spawn, "How sweet of him. There is just no talking sense into my father, Jaharin. He will hear nothing of our love. I am afraid I have been forbidden to see Ferink.")
  49. end
  50. function respawn(NPC)
  51. spawn(NPC)
  52. end