liqeen
Active Member
Hello, can someone help me adding the function like in the title into this script?
How can I add a attribute "criticalstrikechance" into this? I mean if player click the chest it gives him for example 5% permament critical strike chance.
Code:
local storage = 35432
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(35432) == 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "It's empty.")
return true
end
if(item.uid == 6663) then
player:setStorageValue(storage, 1)
player:addItem(11118, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You received xyz")
end
return true
end