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

Limiting levels online and map clicking

evulclown

Member
Joined
Jul 21, 2009
Messages
212
Reaction score
11
Location
under your bed
Hey there, I was wondering if anyone could help me code wise with something for a 7.4 / 7.6 server ? :)

To be able to turn on and turn off auto follow / map clicking via the config file?


Also to be able to define when a character can or can't be accessed based on how many are online with an SQL server? This would be for a war server

For example:

0 - 15 people online = All level 50 - 120 are accessible
16 - 25 people online = All level 121 - 140 are accessible
25 - 40 people online = All level 141 - 200 are accessible


OR perhaps an extra field within the SQL character database with a number? So if you set the character number to 20 it will be accessible to players logging in once there are 20 people online?
 
LUA:
function onLogin(cid)
	local a, b = getPlayerLevel(cid), getWorldCreatures(0)
	if (a > 200 and b < 25) or (a > 140 and b < 16) then
		return FALSE
	end
	return TRUE
end
Altough you likely don't need this anymore
 
Back
Top