123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- --[[
- Script Name : SpawnScripts/EnchantedLands/DeputyHopple.lua
- Script Purpose : Deputy Hopple
- Script Author : Cynnar
- Script Date : 2015.02.24
- Script Notes : Auto-Generated Conversation from PacketParser Data
- --]]
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function InRange(NPC, Spawn)
- end
- function LeaveRange(NPC, Spawn)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_0_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- if convo==1 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_1_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==2 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_2_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==3 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_3_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==4 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_4_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==6 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1024.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "It's always a good day to kill a goblin.", "dlg_6_1")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==9 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Er, I suppose so. Deputy Nettlebrine sent me to talk to you about museum fundraisers.", "dlg_9_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==10 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Er, I suppose so. Deputy Nettlebrine sent me to talk to you about museum fundraisers.", "dlg_10_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==13 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_13_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- if convo==14 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "You've never seen this quality before!", "dlg_14_1")
- AddConversationOption(conversation, "I'm still working at it.")
- StartConversation(conversation, NPC, Spawn, "How's your contest entry coming along?")
- end
- if convo==15 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm still working at it.", "dlg_15_1")
- StartConversation(conversation, NPC, Spawn, "How's your contest entry coming along?")
- end
- if convo==16 then
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_16_1")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- end
- function dlg_0_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_0_2")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_1_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_1_2")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_3_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_3_2")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_3_2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_3_3")
- AddConversationOption(conversation, "It's always a good day to kill a goblin.")
- StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
- end
- function dlg_3_3(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_3_4")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_4_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_4_2")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_9_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "That sounds great!", "dlg_9_2")
- StartConversation(conversation, NPC, Spawn, "Really! That's splendid! I hate killing goblins anyway. I'll do anything to get reassigned away from this wretched outpost. I've come up with a handful of fundraising contests. Instead of feats of strength, I thought we might go the traditional route of getting some items donated and then selling them off for a profit. I've even arranged for some really nice prizes.")
- end
- function dlg_10_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "That sounds great!", "dlg_10_2")
- StartConversation(conversation, NPC, Spawn, "Really! That's splendid! I hate killing goblins anyway. I'll do anything to get reassigned away from this wretched outpost. I've come up with a handful of fundraising contests. Instead of feats of strength, I thought we might go the traditional route of getting some items donated and then selling them off for a profit. I've even arranged for some really nice prizes.")
- end
- function dlg_10_2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_10_3")
- AddConversationOption(conversation, "Fundraiser Two: Sewing a Sampler")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "I'm not so good with these sorts of things.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_10_3(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "I'll get right to work.")
- StartConversation(conversation, NPC, Spawn, "Really? You want to do this? I find sewing so tedious. I suppose we all have our niches in life, though. Do your best work on a tailored broadcloth cap; fancy it up however you like. The first prize in this category is a pattern for your very own matching shawl.")
- end
- function dlg_13_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_13_2")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
- function dlg_13_2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Wild apple muffins! Coming right up!", "dlg_13_3")
- StartConversation(conversation, NPC, Spawn, "I'm so glad you picked this one! I'm the only judge and I love apples! You have to make three wild apple muffins: one for display and two for the tasting. The first prize for this one is my own secret family recipe for apple pie!")
- end
- function dlg_14_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "You won't raise too many funds this way.", "dlg_14_2")
- StartConversation(conversation, NPC, Spawn, "Great! And good news for you -- you're the only person who entered! You automatically win!")
- end
- function dlg_16_1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- conversation = CreateConversation()
- PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
- AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_16_2")
- AddConversationOption(conversation, "Fundraiser Three: Table for Two")
- AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
- AddConversationOption(conversation, "On second thought, never mind.")
- StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
- end
|