finish assasin outfit part

This commit is contained in:
ErikasKontenis
2019-12-23 19:39:22 +02:00
parent aa8d10ece1
commit b55a17c735
7 changed files with 89 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition)
local chestQuestNumber = item:getAttribute(ITEM_ATTRIBUTE_CHESTQUESTNUMBER)
if chestQuestNumber == 0 then
return false
end
if player:getStorageValue(chestQuestNumber) > 0 then
player:sendTextMessage(MESSAGE_INFO_DESCR, "The " .. item:getName() .. " is empty.")
return true