(Using pagesize 2 with 3 players online.)
You need to install this in order to use this talkaction: https://otland.net/threads/tfs-1-2-modal-window-helper-lib.238773/
Lib: http://pastebin.com/vP76PWdb
Talkaction:
Code:
function onSay(player, words, param)
player:sendOnlineModalWindow(param)
return false
end
Current filters are (you may only use 1 filter at a time):
Code:
Vocation Filters (!online (knight, paladin, druid, sorcerer) )
Level Filter: Hard coded, will sort the list in descending order by level. (!online level)
Min Level Filter: Hard coded, will remove all players from the list that are lower than this level. (!online 200)
Name Filters: Will return a list with all the players starting with this name (!online m returns the players starting with this letter, !online mka returns all players starting with "mka" and so on.)
All filter: Optional, you can use either !online all or just !online and it will be the same.
You can easily add more filters and more information to the player window, information about that can be found in the lib as comment.
Requested by @Itutorial here.
Edit: I'm thinking about making it so that it displays the info about the player without showing the modal window if he is the only one that matches the filter requirements, so if you do something like !online Mkalo, and there is only 1 player with this name (there could be more like "Mkalo Junior" in this case it would show both), then it shows the information text. Post your opinions below and I may do it.
Last edited: