ElspethAstley.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/QeynosCapitolDistrict/ElspethAstley.lua
  3. Script Purpose : Elspeth Astley
  4. Script Author : Shatou
  5. Script Date : 2020.01.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ALABASTER_FOR_THE_MAGES_QUEST_ID = 501
  9. function respawn(NPC)
  10. spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", "", "", 280090355, 624466296, Spawn)
  16. if HasQuest(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) then
  17. if GetQuestStep(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) == 2 then
  18. AddConversationOption(conversation, "I have some alabaster you might be interested in.", "dlg_0_1")
  19. end
  20. end
  21. AddConversationOption(conversation, "Thanks for the information.")
  22. StartConversation(conversation, NPC, Spawn, "The winds of time change many things. One thing remains the same, the might of the sorcerer.")
  23. end
  24. --[[ QUEST ALABASTER FOR THE MAGES (501) ]]--
  25. function dlg_0_1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "I've five blocks worth.", "dlg_0_2")
  29. StartConversation(conversation, NPC, Spawn, "Interesting ... how much are you selling? We can always use more alabaster to make wands.")
  30. end
  31. function dlg_0_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. SetStepComplete(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID, 2)
  35. AddConversationOption(conversation, "Thank you.")
  36. StartConversation(conversation, NPC, Spawn, "Perfect. I'll buy all of it.")
  37. end
  38. --[[ QUEST END]]--