ChiranniteThreatTotem.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : ItemScripts/ChiranniteThreatTotem.lua
  3. Script Purpose : Offers quest "Bark Like a Gnoll"
  4. Script Author : premierio015/Dorbin(classic)
  5. Script Date : 04.06.2020
  6. Script Notes :
  7. --]]
  8. local LANGUAGE_QUEST = 5567
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. if not HasQuest(Player, LANGUAGE_QUEST) or GetQuestStep(Player,LANGUAGE_QUEST)==1 then
  12. AddConversationOption(conversation, "Closely examine the chirannite totem.", "Study")
  13. end
  14. AddConversationOption(conversation, "Hold on to the totem for use later","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "The deep slashed markings on this gnollish totem are intriguing. They appear to have been carved into Examining others for comparison could help me comprehend their meaning.")
  16. end
  17. function Study(Item,Player)
  18. if not HasQuest(Player, LANGUAGE_QUEST) then
  19. CloseItemConversation(Item,Player)
  20. OfferQuest(nil, Player, LANGUAGE_QUEST)
  21. else
  22. CloseItemConversation(Item,Player)
  23. RemoveItem(Player,4963,1) --fabric patch
  24. SummonItem(Player,13525)-- studied fabric patch
  25. end
  26. end
  27. --[[ New Quest Version (post DoF)
  28. local quest = 563
  29. function examined(Item, Player)
  30. if not HasQuest(Player, quest) and not HasCompletedQuest(Player, quest) then
  31. OfferQuest(nil, Player, quest)
  32. elseif HasCompletedQuest(Player, quest) then
  33. RemoveItem(Player, 4963)
  34. end
  35. end]]--