mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
finish assasin outfit part
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user