This is my first (working) script!
I've tested it and it works.
When you use poweritem you will get 5x extra exprate.
I've tested it and it works.
When you use poweritem you will get 5x extra exprate.
PHP:
local poweritem = 1958
local rate = 5
function onUse(cid, item)
if doPlayerRemoveItem(cid, poweritem, 1) == 1 then
setPlayerExtraExpRate(cid, getPlayerextraExpRate(cid) + rate)
doSendAnimatedText(getThingPos(cid), "Power!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid,19, 'Your extra exprate is now ' .. rate .. '!')
end
return TRUE
end
Last edited: