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

Item EXP+

ticueba

New Member
Joined
Nov 16, 2011
Messages
1
Reaction score
0
hi there.. im new on this forum but i rly find very nice things here.. and im posting my first thread to see if somebody can help me..

i need a item on my vip shop i have the idea to create a gem that whos equip this gem or use it.. wins "X"% + of experience for "X" time...

EXAMPLE.: an red gem.. and when i put it on the ring slot or use it.. ill receive 50% of experience more from monsters.

i dont know if im posting in the correct place but i rly need it.. so if you can do it or if u already have it.. please share... thank you so much and sorry for bad english ::huh:
 
Movements.xml

XML:
<movevent type="Equip" itemid="2123" slot="ring" event="script" value="ring.lua"/>
<movevent type="Equip" itemid="7708" slot="ring" event="script" value="ring.lua"/>
<movevent type="DeEquip" itemid="7708" slot="ring" event="script" value="ring2.lua"/>

Ring.lua
LUA:
local rate = 1.5
function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "xp raise in + "..((rate - 1)*100).."%.")
doPlayerSetExperienceRate(cid, rate)
doDecayItem(item.uid)
doTransformItem(item.uid, 7708)
return true
end

Ring2.lua

LUA:
function onDeEquip(cid, item, slot)
doPlayerSetExperienceRate(cid, 1.0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Xp end.")
doTransformItem(item.uid, 2123)
return true
end

~50% exp change not test~

Credits To: Milice http://otland.net/f16/double-exp-ring-not-working-134489/
 
Back
Top