Hi, my exp scroll is bugged the double exp works fine but it dissapears on logout :S heres the script
Code:
function UNAIDS (cid, item, frompos, item2, topos)
Local pause = 72 * 60 * 1000 - (1000 = 1 second) time that will last
local text = "You Received '.. exp ..' x the experience to kill a monster for 'pausa/60/1000 .. ..' minutes." - Text comes out to use the item.
textofinal = "It is just minutes." - Text when you finish the effect.
local exp = 2 - Because the experience is multiplied.
expfinal = 1
Then if item.itemid 7723 ==
doRemoveItem (item.uid, 1)
doPlayerSetExperienceRate (cid, exp)
doSendMagicEffect (frompos, 13)
doPlayerSendTextMessage (cid, 22, text)
addEvent (potion, pause, cid)
end
end
potion function (pos, cid)
doPlayerSetExperienceRate (pos, expfinal)
doPlayerSendTextMessage (pos, 22, textofinal)
end