9
3

what_happens_in_the_scale_yard_stays.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/ScaleYard/what_happens_in_the_scale_yard_stays.lua
  3. Script Purpose : Quest 185, What Happens In The Scale Yard Stays...
  4. Script Author : Xanibunib
  5. Script Date : 4.10.2009
  6. Zone : Scale Yard
  7. Quest Giver: Clan Cheif Malachi Sleetspear
  8. Preceded by: Battle On The Home Front
  9. Followed by: Report to Kurdek.
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to slay the shadowy agents!", 2, 100, "I must intercept the agents that saw me trash Issik's quarters!", 611, 1390007)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_KillAgents")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if QuestGiver ~= nil then
  17. if GetDistance(Player, QuestGiver) < 30 then
  18. PlayFlavor(NPC, "voiceover/english/gu38/tutorial_revamp/clan_chief_malachi_sleetspear/fprt_hood06/malachi050.mp3", "", "", 2097942464, 2987521072, Spawn)
  19. AddConversationOption(conversation, "Won't the guards assist the agents?", "dlg_4_3")
  20. AddConversationOption(conversation, "I'm gone!")
  21. StartConversation(conversation, NPC, Spawn, "Go and silence the agents. They're probably still lurking near Issik's quarters. Go now and strike quickly before they slip away.")
  22. end
  23. end
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. end
  29. function Step1_KillAgents(Quest, QuestGiver, Player)
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have disposed of the agents and prevented them from finishing their report.")
  31. AddQuestStepChat(Quest, 2, "I need to speak with Malachi.", 1, "I need to tell Malachi that I have silenced the agents!", 0, 1390004)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "I arrived just in time! The gents were still there and I was able to dispatch them before they had a chance to submit their report.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end