123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- --[[
- Script Name : SpawnScripts/QeynosCapitolDistrict/ElspethAstley.lua
- Script Purpose : Elspeth Astley
- Script Author : Shatou
- Script Date : 2020.01.06
- Script Notes : Modified w/ new format and VOs included.
- --]]
- local ALABASTER_FOR_THE_MAGES_QUEST_ID = 501
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", "", "", 280090355, 624466296, Spawn)
-
- if HasQuest(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) then
- if GetQuestStep(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) == 2 then
- AddConversationOption(conversation, "I have some alabaster you might be interested in.", "dlg_0_1")
- end
- end
- AddConversationOption(conversation, "Thanks for the information.")
- StartConversation(conversation, NPC, Spawn, "The winds of time change many things. One thing remains the same, the might of the sorcerer.")
- end
- --[[ QUEST ALABASTER FOR THE MAGES (501) ]]--
- function dlg_0_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
-
- AddConversationOption(conversation, "I've five blocks worth.", "dlg_0_2")
- StartConversation(conversation, NPC, Spawn, "Interesting ... how much are you selling? We can always use more alabaster to make wands.")
- end
- function dlg_0_2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
-
- SetStepComplete(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID, 2)
-
- AddConversationOption(conversation, "Thank you.")
- StartConversation(conversation, NPC, Spawn, "Perfect. I'll buy all of it.")
- end
- --[[ QUEST END]]--
- require "SpawnScripts/Generic/DialogModule"
- function spawn(NPC)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- if GetFactionAmount(Spawn,11)>0 then
- Dialog1(NPC, Spawn)
- else
- end
- end
- function Dialog1(NPC, Spawn)
- -- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("The winds of time change many things. One thing remains the same, the might of the sorcerer.")
- Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", 280090355, 624466296)
- if GetQuestStep(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID) == 2 then
- Dialog.AddOption("I have some alabaster you might be interested in.", "Dialog4")
- end
- Dialog.AddOption("Thanks for the information. ")
- Dialog.Start()
- end
- function Dialog2(NPC, Spawn)
- -- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("Perfect. I'll buy all of it.")
- SetStepComplete(Spawn, ALABASTER_FOR_THE_MAGES_QUEST_ID, 2)
- Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley002.mp3", 2497015346, 2351178305)
- Dialog.AddOption("Thank you.")
- Dialog.Start()
- end
- function Dialog3(NPC, Spawn)
- -- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("The winds of time change many things. One thing remains the same, the might of the sorcerer.")
- Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley000.mp3", 280090355, 624466296)
- Dialog.AddOption("Thanks for the information. ")
- Dialog.Start()
- end
- function Dialog4(NPC, Spawn)
- -- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("Interesting ... how much are you selling? We can always use more alabaster to make wands.")
- Dialog.AddVoiceover("voiceover/english/elspeth_astley/qey_south/elspethastley001.mp3", 1116477690, 1540248539)
- Dialog.AddOption("I've five blocks worth.", "Dialog2")
- Dialog.Start()
- end
|