go_visit_the_sprawl.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/ScaleYard/go_visit_the_sprawl.lua
  3. Script Purpose : Quest 203, Go Visit The Sprawl
  4. Script Author : Xanibunib
  5. Script Date : 4.10.2009
  6. Zone : Scale Yard
  7. Quest Giver: Clan Cheif Malachi Sleetspear
  8. Preceded by: What Happens In The Scale Yard Stays...
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak to Enforcer Kurdek in the Sprawl.", 1, "", 0, 1260017)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Kurdek")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if QuestGiver ~= nil then
  17. if GetDistance(Player, QuestGiver) < 30 then
  18. PlayFlavor(QuestGiver, "voiceover/english/gu38/tutorial_revamp/clan_chief_malachi_sleetspear/fprt_hood06/malachi056.mp3", "", "", 3512384326, 3311708493, Player)
  19. AddConversationOption(conversation, "Okay.", "dlg_0_0")
  20. StartConversation(conversation, QuestGiver, Player, "Aye, you've done much already but I'm afraid after all the ruckus you stirred up, its best you find work elsewhere. Go speak to Enforcer Kurdek in the Sprawl and see if he could use your help.")
  21. end
  22. end
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function dlg_0_0(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/gu38/tutorial_revamp/clan_chief_malachi_sleetspear/fprt_hood06/malachi057.mp3", "", "", 3904497109, 418111137, Spawn)
  30. AddConversationOption(conversation, "For New Halas!")
  31. StartConversation(conversation, NPC, Spawn, "Good luck Fuhe, and remember... For New Halas!")
  32. end
  33. function Step1_Kurdek(Quest, QuestGiver, Spawn)
  34. UpdateQuestDescription(Quest, "I have spoken to Enforcer Kurdek.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player)
  38. if Step == 1 then
  39. Step1_Kurdek(Quest, QuestGiver, Player)
  40. end
  41. end