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

Command !online, anyway to increase?

rockseller

Lua & .NET Programmer
Joined
May 10, 2008
Messages
159
Reaction score
9
Location
México
Is there any way to increase the limit of players displayed with the command !online?

i can see only up to 35~

thanks
 
The evolution has a command /bans

I had up to 200 names in that link, and all names was displayed in the "currently banned players".

How come evolution managed to pass this limit?
 
Who said evolution is sucky ot.... It is great but not updated. If any great programmer upgrade it It would come back to pwn.
It got many stuff but TFS 0.3 pwns I am using it :p
 
Well... If you a good compiling you can change the command so whenever you say !online it shows you the list but as if you're reading a letter and It will show all. BUT. WILL stop you from clicking the map or else until you close the pop up windows from the list.

Post this Idea I am sure you'll find someone that will give you a hint or a way on how to do it. :)
 
does anyone got a script when i say !online it appears a box saying the playe's name and lvl ? send me a private message at my profile if you got thanks ..
 
Is there any way to increase the limit of players displayed with the command !online?

i can see only up to 35~

thanks

1. Go to /data/talkactions/scripts/
2. Inside the folder, create a new lua file called "online.lua"
Insert this
Code:
local config = {
	showGamemasters = getBooleanFromString(getConfigInfo('displayGamemastersWithOnlineCommand'))
}

function onSay(cid, words, param)
	local players = getPlayersOnline()
	local strings = {}

	local i = 1
	local position = 1
	for _, pid in ipairs(players) do
		if(i > (position * 7)) then
			strings[position] = strings[position] .. ","
			position = position + 1
			strings[position] = ""
		else
			strings[position] = i == 1 and "" or strings[position] .. ", "
		end

		if((config.showGamemasters == TRUE or getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == TRUE or getPlayerCustomFlagValue(pid, PlayerCustomFlag_GamemasterPrivileges) ~= TRUE) and (isPlayerGhost(pid) ~= TRUE or getPlayerAccess(cid) > getPlayerAccess(pid))) then
			strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"
			i = i + 1
		end
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online:")
	for i, str in ipairs(strings) do
		if(str:sub(str:len()) ~= ",") then
			str = str .. "."
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str)
	end

	return TRUE
end
3. Then go to /data/talkactions and open talkactions.xml
4. Add this line:
Code:
<talkaction words="/online" script="online.lua"/>

This one will exceed the limit. Either delete, or replace with your current one.
 
Back
Top