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

Max skills -- Read.

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hi there, I got hacked today, don't know how, but saw some player with magic level 30000+ and also all players level 8... The thing is that if the player does a lot of damage, then the server crashes...

The idea is to make something that checks players levels at login, if the player has level over 1000, then it get reduced to 1, and also the same with skills and magicleve... Can someone make this script?
 
LUA:
function onLogin(cid)
	for i = SKILL_FIST, SKILL__LEVEL do
		if getPlayerSkillLevel(cid, i - 1) >= 1000 then
			doPlayerAddSkill(cid, i - 1, -getPlayerSkillLevel(cid, i - 1) + 1)
		end
	end
	return true
end

Idk if "doPlayerAddSKill" function can be used to remove skills
 
Last edited:
LUA:
function onLogin(cid)
	for i = SKILL_FIST, SKILL__LEVEL do
		if getPlayerSkillLevel(cid, i - 1) >= 1000
			doPlayerAddSkill(cid, i - 1, -getPlayerSkillLevel(cid, i - 1) + 1)
		end
	end
	return true
end

Idk if "doPlayerAddSKill" function can be used to remove skills

You missed "then" at line 3.
 
Back
Top