123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- --[[
- Script Name : SpawnScripts/NorthQeynos/AndreaDovesong.lua
- Script Author : Dorbin
- Script Date : 2022.04.25 03:04:17
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
- local claymore = 5547
- local papers = 5536
- local duvo = 5524
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
- ProvidesQuest(NPC, claymore)
- ProvidesQuest(NPC, papers)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function InRange(NPC,Spawn)
- if GetFactionAmount(Spawn,11) <0 then
- FactionCheckingCallout(NPC, Spawn, faction)
- else
- if math.random(1, 100) <= 70 then
- FaceTarget(NPC,Spawn)
- choice = math.random(1,2)
- if choice == 1 then
- PlayFlavor(NPC, "", "", "curstey", 0, 0, Spawn)
- elseif choice == 2 then
- PlayFlavor(NPC, "", "", "royalwave", 0, 0, Spawn)
- end
- end
- end
- end
- function hailed(NPC, Spawn)
- if GetFactionAmount(Spawn,11) <0 then
- FaceTarget(NPC, Spawn)
- FactionChecking(NPC, Spawn, faction)
- else
- FaceTarget(Spawn, NPC)
- local conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/andrea_dovesong/qey_north/andreadovesong000.mp3", "", "hello", 2876603945, 556916518, Spawn)
- local conversation = CreateConversation()
- if not HasQuest(Spawn,claymore) and not HasCompletedQuest(Spawn, claymore) and HasQuest(Spawn,papers) or HasCompletedQuest(Spawn, papers) and not HasQuest(Spawn,claymore)and not HasCompletedQuest(Spawn, claymore) then
- AddConversationOption(conversation, "You were saying there are more statues like this one?", "Claymore2")
- end
- if GetQuestStep(Spawn,papers)==2 then
- AddConversationOption(conversation, "Here is the parchment you requested from Duvo. He said he has plenty more if you need.", "Delivered")
- end
- if not HasQuest(Spawn,claymore) and not HasCompletedQuest(Spawn, claymore) and not HasQuest(Spawn,papers) and not HasCompletedQuest(Spawn, papers)then
- AddConversationOption(conversation, "What kind of songs do you sing?", "Work")
- end
- if HasQuest(Spawn,claymore) or HasCompletedQuest(Spawn, claymore) then
- AddConversationOption(conversation, "Tell me again what you like to sing about.", "Work")
- end
- if not HasQuest(Spawn,papers) and not HasCompletedQuest(Spawn, papers) and HasQuest(Spawn, claymore) or not HasQuest(Spawn,papers) and not HasCompletedQuest(Spawn, papers) and HasCompletedQuest(Spawn, claymore)then
- AddConversationOption(conversation, "You seem quite busy here. Can I help you with anything while you perform?", "Work2")
- end
- AddConversationOption(conversation, "It is indeed!","kiss")
- AddConversationOption(conversation, "If you say so.")
- StartConversation(conversation, NPC, Spawn, "'Tis a lovely day for a tune, isn't it?")
- end
- end
- function kiss(NPC,Spawn)
- FaceTarget(NPC,Spawn)
- PlayFlavor(NPC, "", "", "kiss", 0, 0, Spawn)
- end
- function Work(NPC,Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "voiceover/english/andrea_dovesong/qey_north/andreadovesong001.mp3", "", "orate", 3368204937, 3549759451, Spawn)
- local conversation = CreateConversation()
- AddConversationOption(conversation, "The claymore must be quite powerful to do with such a storied history.", "Claymore1")
- AddConversationOption(conversation, "Fascinating. Thanks for sharing.","agree")
- StartConversation(conversation, NPC, Spawn, "I sing songs about many things, but my favorite songs are about this monument right here. The mighty Qeynos Claymore! I sing songs about ancient Valius Bayle who first brought the sword to our world from its planar home. I sing songs of Antonius Bayle winning the sword in tournaments between the early human clans and how we used it to unite the human people within one kingdom! Aye, the Qeynos Claymore has a long and storied history.")
- end
- function Claymore1(NPC,Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "voiceover/english/andrea_dovesong/qey_north/andreadovesong002.mp3", "", "agree", 2179201684, 4109286437, Spawn)
- local conversation = CreateConversation()
- if not HasQuest(Spawn,claymore) and not HasCompletedQuest(Spawn, claymore) then
- AddConversationOption(conversation, "There are monuments like this one somewhere else?", "Claymore2")
- end
- if HasQuest(Spawn,claymore) or HasCompletedQuest(Spawn, claymore) then
- AddConversationOption(conversation, "Wait, I've forgotten. You said there are more monuments like this one?", "Claymore2")
- end
- AddConversationOption(conversation, "Well, thankfully we can enjoy reflecting unpon our city's history with places like this.","agree")
- StartConversation(conversation, NPC, Spawn, "Aye, it is! Now, Antonia Bayle is the owner of the fine blade. And fortunately it is hidden away in the castle for its protection. Many agents of evil would like nothing better than to lay a hand upon it. For now, though, we only have these monuments to remind us of the claymore.")
- end
-
- function agree(NPC,Spawn)
- FaceTarget(NPC,Spawn)
- PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
- end
-
- function Claymore2(NPC,Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "voiceover/english/andrea_dovesong/qey_north/andreadovesong003.mp3", "", "nod", 4096047886, 1484152928, Spawn)
- local conversation = CreateConversation()
- if not HasQuest(Spawn,claymore) and not HasCompletedQuest(Spawn, claymore) then
- AddConversationOption(conversation, "I think I will. Thank you for sharing the story.", "Claymore3")
- end
- if HasCompletedQuest(Spawn, claymore) then
- AddConversationOption(conversation, "I've been to the one in Antonica since we last spoke. It is quite the sight overlooking the hills and coast.", "agree")
- end
- if not HasQuest(Spawn,papers) and not HasCompletedQuest(Spawn, papers) then
- AddConversationOption(conversation, "You seem quite busy here. Can I help you with anything while you perform?", "Work2")
- end
- AddConversationOption(conversation, "Well, thankfully we can enjoy reflecting unpon our city's history with places like this.","agree")
- StartConversation(conversation, NPC, Spawn, "Aye, there are others. In fact, another monument stands out in the Antonican hills. A small contingent of guards look over this Claymore Monument, and people often visit there to pray and meditate. Good travels to you if you plan on venturing out to see it.")
- end
-
- function Claymore3(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- if not HasQuest(Spawn,claymore) and not HasCompletedQuest(Spawn, claymore) then
- OfferQuest(NPC, Spawn,claymore)
- end
- end
-
- function Work2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "voiceover/english/andrea_dovesong/qey_north/andreadovesong004.mp3", "", "ponder", 2245604238, 844371971, Spawn)
- local conversation = CreateConversation()
- if HasQuest(Spawn,duvo) or HasCompletedQuest(Spawn, duvo) then
- AddConversationOption(conversation, "I've actually had dealings with Duvo. I'll stop by and see him.", "StartPapers")
- end
- AddConversationOption(conversation, "Gladly. I'll be back with the parchment", "StartPapers")
- AddConversationOption(conversation, "Parchment? Afraid I don't have the time.", "shrug")
- StartConversation(conversation, NPC, Spawn, "Looking for work are you? I could use some parchment to transcribe my sonnta. Scribe Duvo always has pleanty. You'll find him at the Elddar Grove. Bring me the parchment and I'll pay you for your troubles.")
- end
- function shrug(NPC,Spawn)
- FaceTarget(NPC,Spawn)
- PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
- end
- function StartPapers(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- OfferQuest(NPC, Spawn,papers)
- end
-
- function Delivered(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "voiceover/english/andrea_dovesong/qey_north/andreadovesong005.mp3", "", "thanks", 3610265582, 997287857, Spawn)
- local conversation = CreateConversation()
- AddConversationOption(conversation, "Thank you.", "FinishPapers")
- StartConversation(conversation, NPC, Spawn, "How sweet and swift you are! Take these coins as a token of my appreciation.")
- end
- function FinishPapers(NPC,Spawn)
- PlayFlavor(NPC, "", "", "curtsey", 0, 0, Spawn)
- FaceTarget(NPC, Spawn)
- SetStepComplete(Spawn,papers, 2)
- end
|