9
3

OrcSmugglerRequisition_classic.lua 1.2 KB

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : ItemScripts/OrcSmugglerRequisition_classic.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.29 10:05:01
  5. Script Purpose :
  6. :
  7. --]]
  8. local LANGUAGE_QUEST = 5569
  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, "Compare the Norrathian and orcish symbols closely.", "Study")
  13. end
  14. AddConversationOption(conversation, "Hold on to the requisition order for use later.","CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "This smuggler requiisition appears to be written in Norrathian and pictograms from what is most likely orcish. If I found a few more of these orders I could understand some of the basics of the orcish language.")
  16. end
  17. function Study(Item,Player)
  18. CloseItemConversation(Item,Player)
  19. if not HasQuest(Player, LANGUAGE_QUEST) then
  20. OfferQuest(nil, Player, LANGUAGE_QUEST)
  21. else
  22. RemoveItem(Player,10202,1) --smuggler requisition
  23. SummonItem(Player,13529)-- studied smuggler requisition
  24. CloseItemConversation(Item,Player)
  25. end
  26. end