123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- --[[
- Script Name : SpawnScripts/TheBaubbleshire/AlganTinmizer.lua
- Script Purpose : Algan Tinmizer
- Script Author : Dorbin
- Script Date : 2022.01.07
- Script Notes : Auto-Generated Conversation from PacketParser Data
- --]]
- local BagoParts = 505
- local TowerOfThree = 5441
- function spawn(NPC)
- ProvidesQuest(NPC, TowerOfThree)
- SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function InRange(NPC, Spawn)
- if not HasQuest(Spawn, TowerOfThree) and not HasCompletedQuest(Spawn, TowerOfThree) then
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/100_ebik_wobblecog_callout_f7e366da.mp3","Hello adventurer! Come hither! You must help reveal the truth about wonders in the Forest Ruins.", "wave", 3574249828,2561130909, Spawn)
- else
- PlayFlavor(NPC, "","", "ponder", 0, 0, Spawn)
- end
- end
- function LeaveRange(NPC, Spawn)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog000.mp3", "", "", 3320741899, 2828360998, Spawn)
- if HasQuest(Spawn, BagoParts) and not HasCompletedQuest(Spawn, BagoParts) then
- AddConversationOption(conversation, "Did you drop this bag of parts I found near the dock?", "quest_complete")
- end
- if not HasQuest(Spawn, TowerOfThree) and not HasCompletedQuest(Spawn, TowerOfThree) then
- AddConversationOption(conversation, "No, no. Do you need something?", "TowerStart")
- end
- if GetQuestStep (Spawn, TowerOfThree) == 2 then
- AddConversationOption(conversation, "I found the Tower of the Three in the Forest Ruins. It has certainly seen better days.", "TowerFinish")
- end
- if GetRace(Spawn)==5 then
- AddConversationOption(conversation, "Not today. Thank you for the offer!")
- end
- AddConversationOption(conversation, "Wait, what? I don't want any part of this.")
- StartConversation(conversation, NPC, Spawn, "Greetings! Looking for a bashcogglinator or perhaps a metefozic thermogauge?")
- end
- function quest_complete(NPC, Spawn)
- SetStepComplete(Spawn, BagoParts, 1)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog004.mp3", "", "thank", 3506700669, 47329733, Spawn)
- AddConversationOption(conversation, "Thanks!")
- StartConversation(conversation, NPC, Spawn, "Oh my, it does indeed! I thought I'd lost those parts. You've saved me a great deal of trouble, friend. Let me compensate you for your keen eyes and good nature.")
- end
- function TowerStart(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog001.mp3", "", "orate", 1973122055, 1074636856, Spawn)
- AddConversationOption(conversation, "Yes, yes- but what do you need?", "TowerMission")
- AddConversationOption(conversation, "I can't help you.")
- StartConversation(conversation, NPC, Spawn, "I see my superior intellect confuses you. Don't worry, it perplexes many people - tis' the curse of the Tinmizer name. However, I can use your help, for even simple minds contribute to the greatness of Qeynos.")
- end
- function TowerMission(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog002.mp3", "", "ponder", 331751253, 2149638636, Spawn)
- AddConversationOption(conversation, "Ill explore for what remains of the tower in the ruins.", "QuestStart")
- AddConversationOption(conversation, "Dig through some ruins? Sorry. You'll need to find someone else to wade through that rubish.")
- StartConversation(conversation, NPC, Spawn, "You must venture into the Forest Ruins. Tavern tales claim the remnants of the magi tower of the Order of Three exist there. You must reveal the truth of this mystery.")
- end
- function QuestStart (NPC, Spawn)
- FaceTarget(NPC, Spawn)
- OfferQuest(NPC, Spawn, TowerOfThree)
- end
- function TowerFinish(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/algan_tinmizer/qey_village06/ebikwobblecog003.mp3", "", "thank", 1222490153, 3050983577, Spawn)
- AddConversationOption(conversation, "No problem at all.","QuestEnd")
- StartConversation(conversation, NPC, Spawn, "This is wonderful news! Someday, I must explore the ruins but not today. I thank you for your service, adventurer.")
- end
- function QuestEnd(NPC, Spawn)
- SetStepComplete(Spawn, TowerOfThree, 2)
- end
|