I'm trying to make it so when a player uses an item, he gets +2x EXP.
I've mashed some code together with some stuff I found on here, and it's not working.
When I comment out
In actions.xml:
It sends the message just fine, but not when it's uncommented D:
Help :O
I've mashed some code together with some stuff I found on here, and it's not working.
Code:
local expitem = 9969
local extrarate = 7
function onUse(cid, item)
setPlayerExtraExpRate(cid, extrarate)
doPlayerSendTextMessage(cid,19, 'Your EXP rate is now ' .. rate .. '!')
end
When I comment out
Code:
setPlayerExtraExpRate(cid, extrarate)
In actions.xml:
Code:
<action itemid="9969" script="other/expring.lua"/>
It sends the message just fine, but not when it's uncommented D:
Help :O