Jump to content
  • 0

NPC Shows Online Player List


Question

Posted

Hello,

 

Does this kind NPX exist? Im looking for it but not found so far.. 

 

This NPC Works like this.. Each time player use it, it will shows current player on this server with their name.. Then, also can shows their map and job but in other category.. /thx

2 answers to this question

Recommended Posts

Posted

Like this?

prontera,150,150,0    script    Sample    100,{


    query_sql "SELECT `name` , `class` FROM `char` WHERE `online` = '1'", .@name$, .@class;
    mes "-----------------------------------";
    mes "Online Users: " + getusers(1);
    mes "-----------------------------------";
    for( set .@a,0; .@a < getarraysize(.@name$); set .@a,.@a + 1)
        mes .@name$[.@a]+ " | Job: " +jobname(.@class[.@a]);
    mes "-----------------------------------";
    close;
}
  • Upvote 1
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...