kill_or_be_killed.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/ScaleYard/kill_or_be_killed.lua
  3. Script Purpose : Quest 343, Kill or be killed.
  4. Script Author : Xanibunib
  5. Script Date : 3.30.2009
  6. Zone : Scale Yard
  7. Quest Giver: Brood Matron Vrim Malthyk
  8. Quest ID# : 343
  9. Preceded by: Paying Homeage To The Past
  10. Followed by: Report To Enforcer Kurdak
  11. --]]
  12. function Init(Quest)
  13. --Brood Matron's Bangle of the Primogenitor
  14. AddQuestStepKill(Quest, 1, "Anthony Glavias must be relived of his duty as a member of the Freeport Militia.", 1, 100, "Militia member, Anthony Glvias, has proven to be too incompetant to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.", 0, 1390038)
  15. AddQuestStepCompleteAction(Quest, 1, "AnthonyDead")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if QuestGiver ~= nil then
  19. if GetDistance (Player, QuestGiver) < 30 then
  20. FaceTarget (QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brood_matron_vrim_malthyk/fprt_hood06/rcp_vrim036.mp3", "", "", 3345203705, 2408614113, Spawn)
  23. AddConversationOption(conversation, "I understand. He will be disposed of immediately!")
  24. StartConversation(conversation, NPC, Spawn, "Let me tell you something. After the Iksar proved their mettle tenfold to the Overlord, he pretty much allows us to run this yard anyway we see fit. Militia members included. If someone's not up to snuff... replace them.")
  25. end
  26. end
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function AnthonyDead(Quest, QuestGiver, Player)
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have relived Anthony of his duty..")
  32. AddQuestStepChat(Quest, 2, "I must inform Vrim of my actions.", 1, "I must speak with Vrim.", 0, 1260003)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. UpdateQuestTaskGroupDescription(Quest, 2, "Anthony Glavias has been retired.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. AnthonyDead(Quest, QuestGiver, Player)
  42. end
  43. end