Amoora.lua 2.1 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. local ARatDivided = 447
  9. local AHardManToPlease = 450
  10. function spawn(NPC)
  11. SetTempVariable(NPC, "HAILED", "true")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if GetQuestStep(Spawn, ARatDivided) == 1 then
  16. local conversation = CreateConversation()
  17. AddConversationOption(conversation, "You don't happen to mean a handsome little ratonga named Ferink, do you?", "Option1")
  18. StartConversation(conversation, NPC, Spawn, "Every day is the same, now that he's gone.")
  19. elseif GetQuestStep(Spawn, AHardManToPlease) == 1 then
  20. if GetTempVariable(NPC, "HAILED") == "true" then
  21. zone = GetZone(Spawn)
  22. orc1 = SpawnByLocationID(zone, 133772310)
  23. orc2 = SpawnByLocationID(zone, 133772311)
  24. orc3 = SpawnByLocationID(zone, 133772312)
  25. orc4 = SpawnByLocationID(zone, 133772314)
  26. SetTempVariable(NPC, "HAILED", "false")
  27. AddTimer(NPC, 300000, "reset", 1)
  28. end
  29. else
  30. PlayFlavor(NPC, "", "...sigh... Hello there... You remind me of him, somehow...", "", 0, 0, Spawn)
  31. end
  32. end
  33. function reset(NPC)
  34. SetTempVariable(NPC, "HAILED", "true")
  35. end
  36. function Option1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "Calm down, calm down. He asked me to come talk to you and make sure you were alright.", "Option2")
  40. StartConversation(conversation, NPC, Spawn, "How did you know? Do you know him? Is he here? Father will kill him if he is!")
  41. end
  42. function Option2(NPC, Spawn)
  43. SetStepComplete(Spawn, ARatDivided, 1)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. AddConversationOption(conversation, "That is terrible! I will go talk to Ferink. Maybe there is something we can do.")
  47. 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.")
  48. end
  49. function respawn(NPC)
  50. spawn(NPC)
  51. end