9
3

EmpressAnassa.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/EmpressAnassa.lua
  3. Script Purpose : Empress Anassa
  4. Script Author : scatman
  5. Script Date : 2009.05.09
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QUEST_FROM_NEOLA = 211
  9. local QUEST_FROM_JUDGE = 212
  10. local QUEST_1 = 213
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa000.mp3", "", "", 122104258, 2418821305, Spawn)
  21. if HasCompletedQuest(Spawn, QUEST_FROM_NEOLA) and HasCompletedQuest(Spawn, QUEST_FROM_JUDGE) and not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  22. AddConversationOption(conversation, "Your judge has sent me.", "dlg_5_1")
  23. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  24. AddConversationOption(conversation, "I've killed Rotweed.", "KilledRotweed")
  25. end
  26. AddConversationOption(conversation, "I seek nothing. Farewell.")
  27. StartConversation(conversation, NPC, Spawn, "Greetings and welcome to our hollowed grove. What is it you seek?")
  28. end
  29. function dlg_5_1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa001.mp3", "", "", 2413694223, 3249886885, Spawn)
  33. AddConversationOption(conversation, "I will challenge this evil. ", "OfferQuest1")
  34. AddConversationOption(conversation, "I cannot help you now. Farewell.")
  35. StartConversation(conversation, NPC, Spawn, "You're the one Eunomia speaks of so highly. You served us well, but the corruption spoiling this forest still looms. We must destroy it!")
  36. end
  37. function OfferQuest1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. OfferQuest(NPC, Spawn, QUEST_1)
  40. end
  41. function WhatIsRotweed(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa003.mp3", "", "", 1907995091, 655055942, Spawn)
  45. AddConversationOption(conversation, "I will battle this Rotweed and return victorious. ", "dlg_5_4")
  46. StartConversation(conversation, NPC, Spawn, "In this age, all woodlands fight a silent battle. The forces of nature have become twisted and tormented. Rotweed is one of these corrupted creations that taints the woodlands of Norrath.")
  47. end
  48. function KilledRotweed(NPC, Spawn)
  49. SetStepComplete(Spawn, QUEST_1, 2)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "Blllah x2")
  53. StartConversation(conversation, NPC, Spawn, "Blah blah blah, if you see this I've forgotten to come back and put in wht she actually says. Let Scatman know")
  54. end