• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Windows Player Return to lvl 100

blazzinn

New Member
Joined
Dec 24, 2012
Messages
68
Reaction score
1
ok guys so i got these scripts and i kinda need some help when a character dies they restart at lvl 100 or what ever level u set it at.. iv tried removing this action and the server crashes im not sure what server it is i beleave its alissow server? anyways i want it so when u die u just lose a lvl or so and not auto restart at lvl 100 so if somone is familiar with this or thinks they can fix these please let me know

feel free to add me on skype to screen view if needed

Skype: blazzinn4201
 
XML:
<event type="login" name="level" event="script" value="level.lua"/>
LUA:
function onLogin(cid)
local setPlayerLevelOnLogin = 100
 
	if(getPlayerLevel(cid) < 150) then
		doPlayerAddExperience(cid, (getExperienceForLevel(setPlayerLevelOnLogin) - getPlayerExperience(cid)))
	end
	return true
end
Edit as you want.
 
so how does this read?

when they login they r lvl 100 and when they get past lvl 150 and die or relog it takes them back to lvl 100? or how does this work whats with the 150

- - - Updated - - -

what i am saying is when u die in my server it takes u back to lvl 1 and when u login it takes u to lvl 100

i want it so when u die u just lose exp or maybe a lvl not all ur lvls
 
Back
Top