9
3

sound_off.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : Quests/ScaleYard/sound_off.lua
  3. Script Purpose : Quest "Sound Off!"
  4. Script Author : Xanibunib
  5. Script Date : 4.5.2009
  6. Zone : Scale Yard
  7. Quest Giver: Clan Cheif Malachi Sleetspear
  8. Quest ID # : 183
  9. Preceded by: Wasp What I Can Do
  10. Followed by: Battle On The Home Front
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to yell at Vleske Vylkle. I think I see him standing near some stairs.", 1, "I need to yell a fierce war cry at several people here in the Scale Yard!", 0, 1390005)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1_YelledAtVleske")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/gu38/tutorial_revamp/clan_chief_malachi_sleetspear/fprt_hood06/malachi046.mp3", "", "", 408175612, 3827489644, Spawn)
  20. AddConversationOption(conversation, "They're going to be begging me for forgiveness!")
  21. StartConversation(conversation, NPC, Spawn, "That's it! Scare the ugly right off an ogre, I bet you could. Now let me see that journal of yours. I got a list of people who could use a good yellin'. Go to each of these people, look 'em in the eye and let loose your fiercest howl.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. end
  27. function Step1_YelledAtVleske(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "Vleske did not seem impressed at my war cry.")
  29. AddQuestStepChat(Quest, 2, "I need to yell at Caleb Brazenroot. He was seen near the Heated Stone Inn.", 1, "I need to yell a fierce war cry at several people here in the Scale Yard!", 0, 1390016)
  30. AddQuestStepCompleteAction(Quest, 2, "Step2_YelledAtCaleb")
  31. end
  32. function Step2_YelledAtCaleb(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "Apparently Malachi taught Caleb his war cry as well.")
  34. AddQuestStepChat(Quest, 3, "I need to yell at Jondy Cobbleblork. He is said to be near the Freeport Reserve.", 1, "I need to yell a fierce war cry at several people here in the Scale Yard!", 0, 1390042)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3_YelledAtJondy")
  36. end
  37. function Step3_YelledAtJondy(Quest, QuestGiver, Player)
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I yelled at everyone Malachi told me to yell at.")
  39. AddQuestStepChat(Quest, 4, "I should let Malachi know I've yelled at everyone.", 1, "I should go speak with Malachi", 0, 1390004)
  40. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. UpdateQuestDescription(Quest, "Though not everyone was blindly intimidated by my menancing war cry, I did manage to frighten a rather... tenacious looking gnome into submission! I must practice on more people... after I gargle with some saltwater.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1_YelledAtVleske(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2_YelledAtCaleb(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. Step3_YelledAtJondy(Quest, QuestGiver, Player)
  53. elseif Step == 4 then
  54. QuestComplete(Quest, QuestGiver, Player)
  55. end
  56. end