sandy_eggs.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/TimorousDeep/sandy_eggs.lua
  3. Script Purpose : Handles the quest, "Sandy Eggs"
  4. Script Author : Scatman
  5. Script Date : 2009.02.10
  6. Zone : Timorous Deep
  7. Quest Giver: Varkori Riz'Lul
  8. Preceded by: Hopefully the Meat Isn't Timeworn (hopefully_the_meat_isnt_timeworn.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Geo-Parser's Gloves
  13. -- Layered Scale Gauntlets
  14. -- Rune-covered Band
  15. -- Sand-scoured Sandals
  16. -- tortoise egg
  17. AddQuestStepObtainItem(Quest, 1, "I need to collect some tortoise eggs from the dunes north and west of Chrykori Tie.", 6, 100, ".", 2148, 10111)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotEggs")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul005.mp3", "", "", 425764680, 2034208985, Player)
  24. AddConversationOption(conversation, "You're welcome.")
  25. StartConversation(conversation, QuestGiver, Player, "Thank you.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function step1_complete_gotEggs(Quest, QuestGiver, Player)
  30. SetStepComplete(Quest, 1, "I have collected the tortoise eggs.")
  31. AddQuestStepChat(Quest, 2, "I need to bring these eggs to Varkori Riz'Lul.", 1, ".", 2148, 2630043)
  32. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "I have brought the tortoise eggs back to Varkori Riz'Lul.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_gotEggs(Quest, QuestGiver, Player)
  41. end
  42. end