a_locked_chest.lua 434 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : ItemScripts/a_locked_chest.lua
  3. Script Purpose :
  4. Script Author : Ememjr
  5. Script Date : 2019-10-07
  6. Script Notes :
  7. --]]
  8. local quest = 480
  9. function examined(Item, Player)
  10. if not HasQuest(Player, quest) and not HasCompletedQuest(Player, quest) then
  11. OfferQuest(nil, Player, quest)
  12. end
  13. end
  14. function obtained(Item, Player)
  15. if HasItem(Player, 2115) then
  16. RemoveItem(Player, 2115)
  17. end
  18. end