AScryingShame.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/AScryingShame.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.08 08:07:47
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Tish Tickers (2490042)
  8. Preceded by: Watch your step in The Thundering Steppes, Part II
  9. Followed by: The Gnoll Cave
  10. --]]
  11. -- Quests
  12. local WatchYourStepInTheTSPartII = 100
  13. -- Items
  14. local AnAncientSilverCoin = 3513
  15. function Init(Quest)
  16. AddQuestStepObtainItem(Quest, 1, "Find five ancient silver coins for Tish.", 5, 100, "I must use the scrying stones that Tish gave me to try to find five ancient silver coins.", 2166, AnAncientSilverCoin)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. end
  19. function Step1Complete(Quest, QuestGiver, Player)
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have used the scrying stones to find the five ancient silver coins for Tish.")
  21. AddQuestStepChat(Quest, 2, "Return to Tish Tickers.", 1, "I must bring Tish her coins so that she can repay her debt and avoid a visit from the collection clockworks.", 11, 2490042)
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. end
  24. function Step2Complete(Quest, QuestGiver, Player)
  25. GiveQuestReward(Quest, Player)
  26. end
  27. function Accepted(Quest, QuestGiver, Player)
  28. FaceTarget(QuestGiver, Player)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Okay.")
  31. StartConversation(conversation, QuestGiver, Player, "Great! Thank you! Here, take these five scrying stones and see if you can get me my ancient silver coins. If you run out of stones, you might need to shop around and see if some of the local merchants have some. Please be fast. I don't want to get a visit from the clockworks...")
  32. SetStepComplete(Player, WatchYourStepInTheTSPartII, 1)
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. Step2Complete(Quest, QuestGiver, Player)
  43. end
  44. end