expscroll.lua
Kod PHP:
local levels = 20 -- tutaj ustawiamy ile lvli ma dodawac
function onUse(cid, item, frompos, item2, topos)
for i = 1, levels do
doPlayerAddExp(cid, (50*getPlayerLevel(cid)^2)-(150*getPlayerLevel(cid))+200)
end
doSendMagicEffect(topos, 49)
doRemoveItem(item.uid, 1)
end
Kod PHP:
<action itemid="7491" script="expscroll.lua" />
Zakładki