weapon_of_choice.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Quests/FrostfangSea/weapon_of_choice.lua
  3. Script Purpose : the quest Weapon of Choice
  4. Script Author : theFoof
  5. Script Date : 2013.6.3
  6. Zone : Frostfang Sea
  7. Quest Giver : Blorpisa Bogchild
  8. Preceded by : Field Testing Part Two
  9. Followed by : Disarming the Ry'Gorr
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(5,90), math.random(13,25), 0, 0)
  13. AddQuestStep(Quest, 1, "I must collect coldain weapons from the slain coldain.", 5, 100, "I must collect coldain weapons from the slain coldain that have died at the battlefield southeast of the Great Shelf.", 1650)
  14. AddQuestStepCompleteAction(Quest, 1, "GotWeapons")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Deleted(Quest, QuestGiver, Player)
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. end
  22. function GotWeapons(Quest, QuestGiver, Player)
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the coldain weapons for Blorpisa.")
  24. AddQuestStepChat(Quest, 2, "I must speak with Blorpisa Bogchild. Blorpisa is staying at the Great Shelf.", 1, "I must return the weapons I have collected to Blorpisa in the Great Shelf.", 0, 4700039)
  25. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  26. end
  27. function CompleteQuest(Quest, QuestGiver, Player)
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. GotWeapons(Quest, QuestGiver, Player)
  33. end
  34. end