• 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!

Can someone help me

jbh1993

New Member
Joined
Jan 3, 2012
Messages
109
Reaction score
2
Can someone help me make this please!
Ok Well i need a exp scroll that gives 2x exp for 1 hour and then your exp will go back to normal i tryed looking but couldent find one if someone could find one for me or make one i would be really happy.

Item to use to get 2x exp id:8981

So like

When you click it it removes the scroll and says
[Player-name] you have gotten 2x exp for 1 hour. Hunt Wisely.
and when the last 10 minuts is left it says
[Player-name]You 2x exp is about to run out you have 10 minuts left.​
 
Lua:
-- Created using QtLuaPad on Mon Jan 9 2012
-- Written by: Someone on otland.
--Edited by: RuggedMage.

function UNAIDS (cid, item, frompos, item2, topos)
Local pause = 72 * 60 * 1000 - (3,600,000 = 1 hour) 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
doTimerSendTextMessage({[5 * 120000] = "You have 10 minutes left of x2 experience"}, MESSAGE_STATUS_WARNING)
end

This should work, I only edited the time it lasts, and the message at the last 10 minutes, if something is messed up, message me and I'll fix it
 
Last edited:
Lua:
Local pause = 72 * 60 * 1000 - (3,600,000 = 1 hour) time that will last
to
Lua:
local pause = 72 * 60 * 1000 - (3,600,000 = 1 hour) time that will last
it did not read it as a local!

then after that error i got this one!.
'>' Expected Near ',' and i cant figure it out lmao

and why is this like this
Lua:
textofinal = "It is just minutes." - Text when you finish the effect.
shouldent it be like this
Lua:
local textofinal = "It is just minutes." - Text when you finish the effect.

and this
Lua:
expfinal = 1
to this
Lua:
local expfinal = 1


and what does this mean...
Lua:
addEvent (potion, pause, cid)
potion is no were in the script but the one spot =/


I dont wana be mean or anything but i rlly need this script and this one was a big Cut that needs a huge bandaid
 
Ok, I'll try to fix it, like I said, I didn't make most of that script so I didn't know for sure if it worked or not
 
Lua:
-- Created using QtLuaPad on Mon Jan 9 2012
-- Written by: Someone on otland.
--Edited by: RuggedMage.

function UNAIDS (cid, item, frompos, item2, topos)
Local pause = 72 * 60 * 1000 - (3,600,000 = 1 hour) 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
doTimerSendTextMessage({[5 * 120000] = "You have 10 minutes left of x2 experience"}, MESSAGE_STATUS_WARNING)
end

This should work, I only edited the time it lasts, and the message at the last 10 minutes, if something is messed up, message me and I'll fix it


What the f..lying ducks!? is that a script o.0?

@jbh1993
Before you ask request something, use the search function :p.
http://otland.net/f163/mod-experience-scroll-time-expire-147551/
 
@Bogart
Im using 0.3.6, and when i use that script i use the scroll and it sets the whole server to 2x and people lvl insanely high
 
Back
Top