GubboChaley.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/GubboChaley.lua
  3. Script Purpose : Gubbo Chaley
  4. Script Author : Cynnar
  5. Script Date : 2015.04.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local LousyFairies = 117
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, LousyFairies)
  11. SetPlayerProximityFunction(NPC, 10, "InRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/gubbo_chaley/enchanted/halflings/halfling_gubbo_chaley_callout_f7b85d2f.mp3", "Fritz! They killed Fritz! Those lousy fairies killed Fritz!", "", 2757692791, 3745928300, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if HasQuest(Spawn, LousyFairies) and GetQuestStep(Spawn, LousyFairies) == 1 then
  23. PlayFlavor(NPC, "voiceover/english/gubbo_chaley/enchanted/gubbo_chaley/gubbo_chaley003.mp3", "", "", 2620521649, 511313166, Spawn)
  24. AddConversationOption(conversation, "Settle down.")
  25. StartConversation(conversation, NPC, Spawn, "What are you doing!? You're sure not killing those miserable, low-down, good-for-nothing fairies! They killed Fritz!")
  26. elseif HasQuest(Spawn, LousyFairies) and GetQuestStep(Spawn, LousyFairies) == 2 then
  27. SetStepComplete(Spawn, LousyFairies, 2)
  28. AddConversationOption(conversation, "Yes.", "dlg_0_1")
  29. StartConversation(conversation, QuestGiver, Player, "Uh ... so you killed them fairies, yeah?")
  30. elseif not HasCompletedQuest(Spawn, LousyFairies) and not HasQuest(Spawn, LousyFairies) then
  31. PlayFlavor(NPC, "voiceover/english/gubbo_chaley/enchanted/gubbo_chaley/gubbo_chaley001.mp3", "", "", 1577103216, 3792943385, Spawn)
  32. AddConversationOption(conversation, "Sure.", "dlg_0_2")
  33. AddConversationOption(conversation, "I don't know Fritz.")
  34. StartConversation(conversation, NPC, Spawn, "Kill them! I want you to kill those lousy, stinking, yellow fairies! You'll do this for me, right? You'll do this for Fritz! ")
  35. elseif HasCompletedQuest(Spawn, LousyFairies) then
  36. PlayFlavor(NPC, "voiceover/english/gubbo_chaley/enchanted/gubbo_chaley/gubbo_chaley003.mp3", "", "", 2620521649, 511313166, Spawn)
  37. AddConversationOption(conversation, "Sure.")
  38. StartConversation(conversation, NPC, Spawn, "If you see Fritz, would you tell him I'm looking for him?")
  39. end
  40. end
  41. function dlg_0_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. SetStepComplete(Spawn, LousyFairies, 2)
  45. PlayFlavor(NPC, "voiceover/english/gubbo_chaley/enchanted/gubbo_chaley/gubbo_chaley005.mp3", "", "", 2881662034, 1373874040, Spawn)
  46. AddConversationOption(conversation, "Right.")
  47. StartConversation(conversation, NPC, Spawn, "I'm really sorry about that. Turns out, Fritz was just passed out under the docks. Umm ... why don't you take this, and we'll just pretend we never had this little discussion. ")
  48. end
  49. function dlg_0_2(NPC, Spawn)
  50. OfferQuest(NPC, Spawn, LousyFairies)
  51. end