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

Lua WAR about players!

Oscar Lyis

Donator
Joined
May 30, 2008
Messages
633
Reaction score
1
Location
Sweden
OK, so I don't really know what prefix I gotta use for this question..

So here is the question..

At the moment I'm making alot of char of diffrent lvl and stuff to make an war server and my question if you example gain lvl and then die it will go back to regular lvl, how can i do it??

thanks in advance!
 
It's easy to make script for this, this function will help you:

Code:
function doPlayerSetLevel(cid, level)
    return doPlayerAddExperience(cid, (getExperienceForLevel(level) - getPlayerExperience(cid)))
end
 
It's easy to make script for this, this function will help you:

Code:
function doPlayerSetLevel(cid, level)
    return doPlayerAddExperience(cid, (getExperienceForLevel(level) - getPlayerExperience(cid)))
end

Oh, thank you!

Code:
function doPlayerSetLevel(cid, level)
    return doPlayerAddExperience(cid, 129192391491413  (getExperienceForLevel(201) - getPlayerExperience(cid)))
end
BTW, where can I put player's name?
 
Last edited:
Back
Top