FallenPiratesMap.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : ItemScripts/FallenPiratesMap.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.20 12:09:47
  5. Script Purpose :
  6. :
  7. --]]
  8. local Xspot = 5747
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. if not HasQuest(Player, Xspot) and not HasCompletedQuest(Player,Xspot) then
  12. AddConversationOption(conversation, "[Inspect the map further]", "Dialog1")
  13. end
  14. AddConversationOption(conversation, "[Put the map away]", "CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "You have in your hands what appears to be a crude map of the island. There is a marking on the map with a large X. There is also some scribbling as well.")
  16. end
  17. function Dialog1(Item,Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "[Pursue the X on the map]", "QuestStart")
  20. AddConversationOption(conversation, "[Put the map away]", "CloseItemConversation")
  21. StartDialogConversation(conversation, 2, Item, Player, "The X on the map seems to be placed just east of a waterfall on the map in the north east corner of the island. Markings also show a large tree and cave close by. You can make out the writing to say, \"Rockbelly's resting place\".")
  22. end
  23. function QuestStart(Item,Player)
  24. CloseItemConversation(Item,Player)
  25. if not HasQuest(Player,Xspot) then
  26. OfferQuest(nil,Player,Xspot)
  27. end
  28. end