9
3

weapon_break.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/TimorousDeep/weapon_break.lua
  3. Script Purpose : Handles the quest, "Weapon Break"
  4. Script Author : Scatman
  5. Script Date : 2009.03.10
  6. Zone : Timorous Deep
  7. Quest Giver: Gerwen Di'Ki
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Pridefeather Leggings
  13. -- Geo-Parser's Leggings
  14. -- Layered Scale Greaves
  15. -- Raptor-scaled Leggings
  16. -- Ritualist's Pants
  17. -- Turf-hunter Breeches
  18. -- Thulwun Defender's Greaves
  19. AddQuestStepSpell(Quest, 1, "I need to spray the weapons of Pyrrin Roost with acid.", 5, 100, ".", 287, 5018)
  20. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SprayedAcid")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. -- Acid
  24. if not HasItem(Player, 2931) then
  25. SummonItem(Player, 2931)
  26. end
  27. FaceTarget(QuestGiver, Player)
  28. conversation = CreateConversation()
  29. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/gerwen_di_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/diki/diki001.mp3", "", "", 2073303618, 4008999322, Player)
  30. AddConversationOption(conversation, "I will be swift.")
  31. StartConversation(conversation, QuestGiver, Player, "If we destroy these weapons, it will take more time for the Haoaerans to reinforce their assault force at Thulwun Station. They will need to rearm before moving on. Let us show them that two can play at the delay game.")
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. end
  35. function Step1_Complete_SprayedAcid(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 1, "I have sprayed acid on the weapons in Pyrrin Roost.")
  37. AddQuestStepChat(Quest, 2, "I need to return to Gerwen Di'Ki.", 1, ".", 0, 2630593)
  38. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  39. end
  40. function Quest_Complete(Quest, QuestGiver, Player)
  41. -- remove Acid
  42. RemoveItem(Player, 2931)
  43. UpdateQuestDescription(Quest, "I've rusted the Haoaeran weapons laying around in Pyrrin Roost.")
  44. GiveQuestReward(Quest, Player)
  45. end