a_sandy_bone_shard.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : quests/QueensColony/a_sandy_bone_shard.lua
  3. Script Purpose : This script is for the quest, "A Sandy Bone Shard".
  4. quest Name : Tainted
  5. Zone : The Queen's Colony
  6. quest Starter :
  7. Preceded By: Nothing
  8. Followed By:
  9. Script Author : Ememjr
  10. Script Date : 2017.04.14
  11. --]]
  12. function Init(quest)
  13. AddQuestStepKill(quest, 1, "I should try to see if other crabs have more missing pieces to the token.", 5, 60, "I need to find the other pieces to the shattered token.", 1085, 2530051,2530052,2530079)
  14. AddQuestStepCompleteAction(quest, 1, "step1")
  15. end
  16. function Declined(quest, questGiver, player)
  17. end
  18. function step1(quest, questGiver, player)
  19. UpdateQuestTaskGroupDescription(quest, 1, "I have found the remaining pieces.")
  20. AddQuestStepKill(quest, 2, "I should find some fish to make glue from.", 6, 100, "The easiest and nearest source of glue is probably the skin off the fish that can be found in the waters near the docks. I should collect a few.", 2540, 2530014,2530004,2530005,2530007)
  21. AddQuestStepCompleteAction(quest, 2, "step2")
  22. end
  23. function step2(quest, questGiver, player)
  24. UpdateQuestTaskGroupDescription(quest, 2, "I have glued the pieces of the token back together using the sticky gelatin from the fish skins I collected.")
  25. AddQuestStepKill(quest, 3, "I should find a replacement cord on the goblins found on the island.", 1, 25, "The pieces of the token are now glued back together I just need a leather cord to wear it. The goblins on the island must have a suitable one somewhere.", 2180, 2530027,2530037,2530036,2530039,2530028,2530019,2530090,2530010,2530085,2530018,2530021,2530011,2530030,2530031,2530020,2530024)
  26. AddQuestStepCompleteAction(quest, 3, "completed")
  27. end
  28. function completed(quest, questGiver, player)
  29. UpdateQuestDescription(quest, "I have found all the pieces I needed and put the Scrimshaw Token back together.")
  30. GiveQuestReward(quest, player)
  31. end
  32. function Reload(quest, questGiver, player, Step)
  33. if Step == 1 then
  34. step1(quest, questGiver, player)
  35. elseif Step == 2 then
  36. step2(quest, questGiver, player)
  37. elseif Step == 3 then
  38. step3(quest, questGiver, player)
  39. end
  40. end