curious_ore.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/TimorousDeep/curious_ore.lua
  3. Script Purpose : Handles the quest, "Curious Ore"
  4. Script Author : Scatman
  5. Script Date : 2009.02.06
  6. Zone : Timorous Deep
  7. Quest Giver: Tykor Gi'Lok
  8. Preceded by: Poaching the Poachers (poaching_the_poachers.lua)
  9. Followed by: Report to the Primary (report_to_the_primary.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Reinforced Miners Sack
  13. -- curious ore
  14. AddQuestStepObtainItem(Quest, 1, "I need some samples of the ore the Haoaerans are mining to the west.", 3, 100, ".", 1086, 4401)
  15. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotOre")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok004.mp3", "", "", 2401252534, 3431113694, Player)
  21. AddConversationOption(conversation, "I will return with the ore.")
  22. StartConversation(conversation, QuestGiver, Player, "Good. Some think the spirocs are just pretty birds with bad attitudes, but I think differently. They're up to something, I know it.")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function step1_complete_gotOre(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have the ore samples.")
  28. AddQuestStepChat(Quest, 2, "I need to bring these ore samples back to Tykor Gi'Lok.", 1, ".", 1086, 2630018)
  29. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  30. end
  31. function quest_complete(Quest, QuestGiver, Player)
  32. UpdateQuestDescription(Quest, "I have brought the ore samples to Tykor Gi'Lok.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. step1_complete_gotOre(Quest, QuestGiver, Player)
  38. end
  39. end