Jump to content

Getusersname command


Emistry

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

i was refering to this script command...

*getusersname;

This command will give the invoking character a list of names of the connected
characters (including themselves) into an NPC script message window (see 'mes')
paging it by 10 names as if with the 'next' command.
You need to put a 'close' after that yourself.

i didnt saw any script that used this script command ? /hmm thus this script command become kinda useless ?

i have never see member create any script that have included this script command ( never...since i joined eA till now.. ) ...even wiki also didnt have documentation for it.

since it's useles....perhap we can just drop this or maybe customiz it ?

if we are not going to drop it....could we just customize it to something like this ?

getusersname( <type>,{mapname} )
0 = all user name
1 = mapname

which work to retrieve all online player name that exist in the map specified...or all users that are currently online..

and save it into a temporary array ? like getpartymember did ?

i think it could be useful in certain script that required to attach / check players that stay in certain map..

i know we can done above trick by using attachrid...strcharinfo...getmapxy.....

but if we can customize the getusersname into something like this...isnt it more useful than current state ?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

I completely agree - the command has about 1 possible use as is, and really should not be a script command at all. Creating account ID arrays of a map or the entire server would be very useful.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

for me ... just once XD

http://www.eathena.ws/board/index.php?s=&showtopic=165050&view=findpost&p=910278

and yeah ... this command is useless because the updated script for it looks like this ...

http://www.eathena.ws/board/index.php?s=&showtopic=239535&view=findpost&p=1307075

so yeah, vote +1 to remove it

Creating account ID arrays of a map or the entire server would be very useful.
... better not,

or a better solution is use addrid script command ...

but somehow it also looks custom ...

better don't do something about adding this feature yet until a very confirm solution has found by community

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

It's a good way to retrive who's on the map for script; like each 10s the people on this map are...

That the most simpler/efficient? way in npc, otherwise idk wich iterator you'll use to do so. take all player, attach ? check map ??

Nope, I used back then for statistic.

What I agree is that he could be updated to provide other functionnality / option.

Actually I added type so he could return char_id, account_id etc for user on map. => think it as list for iterator.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Well, I'd have to agree as well, but I vote for the customization, as it would be useful in the future after it's been through the needed "upgrades".

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

Agree with Emistry, the code wasn't really working properly (with > 20 player ingame it would pop up two next buttons, and so on each 10 players O.o)

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

So, considering we already implemented Addrid, does anyone have further thoughts? I'm leaning towards removing it...

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

×
×
  • Create New...