Hi otland, I need a script that increases 1% of experience for each storage stored, an example storage xxxx,1 = 1% more experience and if the storage increases to 2 then it would be 2% more exp and so on until the storage is 100 well It would be double the exp you would get.
this my script
Thank you, I hope you can help me
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 40000
if isPlayer then
setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage)+1)
doCreatureSay(cid, "Congrats!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 28)
doRemoveItem(item.uid,1)
end
return TRUE
end
this my script
Thank you, I hope you can help me