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

I want my characters to spawn with same items and level

gurden

i need support for my server, good scripter!
Joined
May 19, 2009
Messages
519
Reaction score
5
Location
Sweden
Hey i want my server to be a war server so if someone dies and login he's same level with same items in the temple. I have "Save" "1" on the character.
 
I think that you're wrong. You have 130lvl , you died and u still have 130 lvl? i think that you want to say levellock so minimal lvl is 120 and maximal level is maybe 150 :)
try this for min lvl

function onLogin(cid)

if getPlayerLevel(cid) < 120 then
doPlayerAddExperience(cid, (getExperienceForLevel(120) - getPlayerExperience(cid)))
end
return TRUE
 
Lua:
function onLogIn(cid)
    for dropLoot = false do
    if getCeatureLevel(cid) < 100 and isCreature then
return doCreatureSetDropLoot(cid, false) and doCreatureAddExperience(cid, (getExperienceForLevel(120) - getCeatureExperience(cid)))
end
 
Lua:
function onLogIn(cid)
    for dropLoot = false do
    if getCeatureLevel(cid) < 100 and isCreature then
return doCreatureSetDropLoot(cid, false) and doCreatureAddExperience(cid, (getExperienceForLevel(120) - getCeatureExperience(cid)))
end

Why'd you use getCreatureLevel?, shoulda used getPlayerLevel(cid) and isPlayer
 
Back
Top