9
3

aRustySymbolOfMarr.lua 1003 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : ItemScripts/RustySymbolOfMarr.lua
  3. Script Purpose : Offers quest "Rusty Symbol of Marr"
  4. Script Author : premierio015\\Dorbin
  5. Script Date : 12.11.2020 \\ 11.14.2023
  6. Script Notes :
  7. --]]
  8. function examined(Item, Player)
  9. conversation = CreateConversation()
  10. if CanReceiveQuest(Player,RustySymbol) then
  11. AddConversationOption(conversation, "Someone of faith might want this.","Offer")
  12. end
  13. AddConversationOption(conversation, "[Put the symbol away]")
  14. StartDialogConversation(conversation, 2, Item, Player, "The metal medallion is very old and rusty but bears the symbol of Mithaniel Marr.")
  15. end
  16. function Offer(Item,Player)
  17. if CanReceiveQuest(Player,RustySymbol) then
  18. OfferQuest(nil,Player,RustySymbol)
  19. end
  20. CloseItemConversation(Item,Player)
  21. end
  22. function QuestFinish(Item,Player)
  23. CloseItemConversation(Item,Player)
  24. if HasItem(Player,2555) then
  25. RemoveItem(Player,2555,1)
  26. end
  27. end