• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

EXP Scroll

Tyhawk master

New Member
Joined
Jan 10, 2015
Messages
149
Reaction score
4
is there a Script that anyone has made that when (CTRL, left click) on a scroll it will give the Player a Double exp boost for like 30 seconds?
the script i want this for is Tibia 8.6 Crying damson 0.3.6
 
Maybe this would work for you:
Add this on actions.xml.
Code:
<action itemid="XXXX" event="script" value="2exp.lua"/>
note: make sure you put your item id instead of "XXXX".
Add this on actions/scripts.
Code:
function onUse(cid, item, frompos, item2, topos)
local pausa = 30*60*1000 -- (1000 = 1 segundos) Tiempo que durara
local texto = "Ha recibido el Exp 2 al matar alos  Moster corre Tiempo." -- Texto que sale al usar el objeto.
textofinal = "Se encuentra a pocos minutos." -- Texto cuando se acabe el efecto.
local exp = 2 -- Por cuanto se multiplica la experiencia.
expfinal = 1
if item.itemid == XXXX then
doRemoveItem(item.uid,1)
doPlayerSetExperienceRate(cid,exp)
doSendMagicEffect(frompos,13)
doPlayerSendTextMessage(cid,22,texto)
addEvent(potion,pausa,cid)
end
end
function potion(pos, cid)
doPlayerSetExperienceRate(pos,expfinal)
doPlayerSendTextMessage(pos,22,textofinal)
end
 
instead of doPlayerSetExperienceRate(cid,exp) use this function
Code:
doPlayerSetExtraExpRate(cid, exp)
and instead of doPlayerSetExperienceRate(cid,expfinal)
Code:
doPlayerSetExtraExpRate(cid, 0)
 
Last edited:
instead of doPlayerSetExperienceRate(cid,exp) use this function
Code:
doPlayerSetExtraExpRate(cid, exp)
and instead of doPlayerSetExperienceRate(cid,expfinal)
Code:
doPlayerSetExtraExpRate(cid, 0)
Interesting function. A shame it's not working on tfs 1.x+
 
Back
Top