Untitled
unknown
plain_text
2 years ago
685 B
3
Indexable
local skillBoost = Action() function skillBoost.onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(Storage.skillBoost) > os.time() then player:sendCancelMessage('Kolejnego skill boosta bedziesz mogl uzyc gdy skonczy Ci sie poprzedni.') player:getPosition():sendMagicEffect(CONST_ME_POFF) return true end player:setStorageValue(Storage.skillBoost, os.time() + 3600) player:sendCancelMessage('Gratulacje. Skill boost zostal aktywowany.') player:getPosition():sendMagicEffect(CONST_ME_CRITICAL_DAMAGE) item:remove(1) return true end skillBoost:id(651) skillBoost:register()
Editor is loading...