• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Exp booster

Kaorus

Unleash Dreams Staff
Joined
May 18, 2008
Messages
1,174
Solutions
1
Reaction score
149
Someone scriptwriter can create this script:

-Only for lvl 25
-Only premium account
-Add 5x Bonus experience
-A animation On and off
-Only can use for 10 minutes

The id of the amulet is 2133
 
mmm...
With empty help :D
Code:
function onUse(cid, item, fromPosition, toPosition)
if isPremium(cid) then
if getPlayerLevel(cid) >= 25 then
local time = 1000*60*10
	fireworksEffect = math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)
	doSendMagicEffect(fromPosition, fireworksEffect)
	doSendAnimatedText(getPlayerPosition(cid), "Congratulations!", TEXTCOLOR_RED) 
	setPlayerExtraExpRate(cid, 5)
	addEvent(resetExpRate, time)
end
end
end

function resetExpRate(cid, item, fromPosition, toPosition)
	setPlayerExtraExpRate(cid,0)
end

It should be works ^.-
 
Last edited:
mmm...
With empty help :D
Code:
function onUse(cid, item, fromPosition, toPosition)
if isPremium(cid) then
if getPlayerLevel(cid) >= 25 then
local time = 1000*60*10
	fireworksEffect = math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)
	doSendMagicEffect(fromPosition, fireworksEffect)
	doSendAnimatedText(getPlayerPosition(cid), "Congratulations!", TEXTCOLOR_RED) 
	setPlayerExtraExpRate(cid, 5)
	addEvent(resetExpRate, time)
end
end
end

function resetExpRate(cid, item, fromPosition, toPosition)
	setPlayerExtraExpRate(cid,0)
end

It should be works ^.-

Do you think this work ? copy the most from you ;P

Code:
function onEquip(cid, item, slot)

         z.item = 1000 -- ID of your item .
         msg = "2x more experience now."
         firework = math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)

if item.itemid == z.item then
if isPremium(cid) then
if getPlayerLevel(cid) >= 25 then

         doCreatureSay(cid, msg)
		 setPlayerExtraExpRate(cid, 2)
         doSendMagicEffect(fromPosition, firework)
	     end
	 return TRUE
end
end
 
mmm...
With empty help :D
Code:
function onUse(cid, item, fromPosition, toPosition)
if isPremium(cid) then
if getPlayerLevel(cid) >= 25 then
local time = 1000*60*10
	fireworksEffect = math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)
	doSendMagicEffect(fromPosition, fireworksEffect)
	doSendAnimatedText(getPlayerPosition(cid), "Congratulations!", TEXTCOLOR_RED) 
	setPlayerExtraExpRate(cid, 5)
	addEvent(resetExpRate, time)
end
end
end

function resetExpRate(cid, item, fromPosition, toPosition)
	setPlayerExtraExpRate(cid,0)
end

It should be works ^.-

What if the player will logout? -.^

Btw, he didnt want an action (onUse), but an exp booster (onEquip), with movement you dont need to use addEvent.
 
Nope... fromPosition is nil, doCreatureSay is not properly scripted :P

Code:
local config = {
	level = 25,
	msg = "Double Experience!",
	effect = math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE)
}
function onEquip(cid, item, slot)
	if isPremium(cid) == TRUE and getPlayerLevel(cid) >= config.level then
		doCreatureSay(cid, config.msg, TALKTYPE_ORANGE_1)
		setPlayerExtraExpRate(cid, 2)
		doSendMagicEffect(getPlayerPosition(cid), config.effect)
	end
	return TRUE
end

function onDeEquip(cid, item, slot)
	if isPremium(cid) == TRUE and getPlayerLevel(cid) >= config.level then
		setPlayerExtraExpRate(cid, 1)
	end
	return TRUE
end
 
The script had 4 error:

Free can use
Send 2x Msg
The exp is 2x no 5x (I configure the script) (I test the script with a rotworm, this give 400 exp, no 1000 exp)
You can use infite time
 
Last edited:

Ok you tested my script or you know if its work ?

Edit:
Code:
function onDeEquip(cid, item, slot)

         msg = "You removed your item"
		 z.item = 1000

if item.itemid == z.item then
if isPremium(cid) then
         doCreatureSay(cid, msg)
		 setPlayerExtraExpRate(cid, 0)
		 end
	 return TRUE
end
 
Last edited:
Back
Top