9
3

SarmaSingebellows.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/SarmaSingebellows.lua
  3. Script Purpose : Sarma Singebellows
  4. Script Author : Cynnar
  5. Script Date : 2015.02.24
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ThreeMeaningsOfLife = 115
  9. local HelpingSarmaSingebellows = 116
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, HelpingSarmaSingebellows)
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. PlayFlavor(NPC, "voiceover/english/sarma_singebellows/enchanted/halflings/halfling_sarma_singebellows_aoi_callout_unfamiliar_c1948f9b.mp3", "Hey you, c'mere for a sec.", "", 1781622145, 522858713, Spawn)
  19. end
  20. function LeaveRange(NPC, Spawn)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. conversation = CreateConversation()
  25. if HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 5 then
  26. SetStepComplete(Spawn, ThreeMeaningsOfLife, 5)
  27. end
  28. if HasQuest(Spawn, HelpingSarmaSingebellows) and GetQuestStep(Spawn, HelpingSarmaSingebellows) == 1 then
  29. PlayFlavor(NPC, "voiceover/english/sarma_singebellows/enchanted/sarma_singebellows003.mp3", "", "", 2781954391, 3596902388, Spawn)
  30. AddConversationOption(conversation, "Okay.")
  31. StartConversation(conversation, NPC, Spawn, "I'm happy to see you're doing well, but I need you to destroy more goblins!")
  32. elseif GetQuestStep(Spawn, HelpingSarmaSingebellows) == 2 then
  33. SetStepComplete(Spawn, HelpingSarmaSingebellows, 2)
  34. PlayFlavor(NPC, "voiceover/english/sarma_singebellows/enchanted/halflings/halfling_sarma_singebellows_aoi_callout_familiar_2888fa3f.mp3", "Hi, friend! Are you interested in helping me again?", "", 4027326251, 2342769721, Spawn)
  35. AddConversationOption(conversation, "Sure, I'll help you again.", "dlg_2_1")
  36. AddConversationOption(conversation, "Not right now.")
  37. StartConversation(conversation, NPC, Spawn, "Thank you for your help! Please take this in return for you hard work. Do you think you can help me some more?")
  38. elseif not HasQuest(Spawn, HelpingSarmaSingebellows) then
  39. PlayFlavor(NPC, "voiceover/english/sarma_singebellows/enchanted/sarma_singebellows001.mp3", "", "", 2567471842, 71486470, Spawn)
  40. AddConversationOption(conversation, "Sure, I'll hekp you.", "dlg_1_1")
  41. AddConversationOption(conversation, "I'm not interested in helping.")
  42. StartConversation(conversation, NPC, Spawn, "See the water here? The surrounding land tries to filter as much of the evil as it can out of its lifesblood, yet we hang by a thread day by day. The goblins around here aren't helping, with the grime and muck they pour into the lakes and rivers. Do you think you could put a stop to them?")
  43. end
  44. end
  45. function dlg_1_1(NPC, Spawn)
  46. OfferQuest(NPC, Spawn, HelpingSarmaSingebellows)
  47. end
  48. function dlg_2_1(NPC, Spawn)
  49. SetTempVariable(Spawn, "HelpingSarmaSingebellows", "true")
  50. OfferQuest(NPC, Spawn, HelpingSarmaSingebellows)
  51. end
  52. --[[ raw_conversations
  53. PlayFlavor(NPC, "voiceover/english/sarma_singebellows/enchanted/halflings/halfling_sarma_singebellows_aoi_callout_unfamiliar_c1948f9b.mp3", "Hey you, c'mere for a sec.", "", 1781622145, 522858713, Spawn)
  54. PlayFlavor(NPC, "voiceover/english/sarma_singebellows/enchanted/halflings/halfling_sarma_singebellows_aoi_callout_familiar_2888fa3f.mp3", "Hi, friend! Are you interested in helping me again?", "", 4027326251, 2342769721, Spawn)
  55. --]]