9
3

BloodsaberAdeptCoin.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : ItemScripts/BloodsaberAdeptCoin.lua
  3. Script Purpose : Offer Quest "Coin of an Adept"
  4. Script Author : premierio015
  5. Script Date : 2020.06.04
  6. Script Notes :
  7. --]]
  8. local quest = 560 -- Coin of an Adept Quest ID
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) then
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Curious...", "FindCoins")
  13. AddConversationOption(conversation, "Put the coin away.", "CloseItemConversation")
  14. StartDialogConversation(conversation, 2, Item, Player, "You find a rather unusual coin off the Bloodsaber adept.")
  15. elseif HasQuest(Player, quest) then
  16. RemoveItem(Player, 4402)
  17. end
  18. end
  19. function FindCoins(Item, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "I'll continue searching for these coins.", "QuestOffer")
  22. AddConversationOption(conversation, "I'd rather not.", "CloseItemConversation")
  23. StartDialogConversation(conversation, 2, Item, Player, "Maybe if I find enough of these coins I'll be able to figure out what they're used for.")
  24. end
  25. function QuestOffer(Item, Player)
  26. OfferQuest(nil, Player, quest)
  27. end