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

OnGainExp(cid, value)

koete

New Member
Joined
Sep 6, 2010
Messages
6
Reaction score
2
TFS 0.3.5 (8.50)

Hello all, im using this system (Creatureevent OnGainExp) made by knightxd.
So i made this script.

creaturescripts.xml
XML:
<event type="gainexp" name="GainExpPrint" event="script" value="GainExpPrint.lua"/>

creaturescripts/scripts/GainExpPrint.lua
Lua:
function onGainExp(cid, value)
print(value)
end

creaturescripts/scripts/Login.lua
Lua:
registerCreatureEvent(cid, "GainExpPrint")


But when i do a login with any character in game, this returns a several times a variable number. Making the source crash.

01.png

maybe i'm using it in a wrong way?
It should be like this?
 
Back
Top