K well I made a script that partially work's but when you have exp and type /checklvl it show's the lvl as "Lvl:" with no number even with 50+ or 0+
//ExpTest
function serverCmdCheckExp(%client)
{
messageClient(%client,'','\c5Exp: %1',%client.Exp);
}
function serverCmdCheckLvl(%client)
{
messageClient(%client,'','\c5Lvl: %1',%client.Lvl);
}
function Rpgset(%client,%Exp)
{
If(%Client.exp >= 0);
%Client.Lvl = 1;
If(%Client.exp >= 50);
%Client.Lvl = 2;
}
function serverCmdGrantExp(%client,%victim,%amount)
{
if(%amount<=0||%Amount>%client.Exp)
%victim = findClientByBL_ID(%victim);
if(!isobject(%victim)){return;}
%victim.Exp+=%amount;
messageClient(%client,'','Gave 2% %1',%client.Exp,%amount);
}