natashas_note.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/Graveyard/natashas_note.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.14 04:11:37
  5. Script Purpose :
  6. Zone : Graveyard
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find Tarakh.", 1, "I should take this note to Tarakh. Based on the note's contents, he is probably a Ratonga.", 185, 1360000)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. UpdateQuestZone(Quest,"Temple Street")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if HasItem(Player,1568,1) then
  18. RemoveItem(Player,1568)
  19. SendMessage(Player,"You place the dirty note in your quest satchle.")
  20. end
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I sold the note to Tarakh.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I sold the note to Tarakh and turned a small profit.")
  32. UpdateQuestDescription(Quest, "Looks like I turned that worthless paper into a little coin. Tarakh wasn't happy the note contained so little information. Too bad for him.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end