Jump to content
  • 0

[Solved] Get a char ID from a waiting room


Jowy129

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/20/13
  • Last Seen:  

Hello !

I'm trying to figure how to find a char ID from a player who joins a waiting room via this code :

waitingroom "Join Blue Team", 2, "battle#join::OnStart", 1;

How can I have the char ID of the first one to join ? And finally the others ?

I thought strcharinfo(0); would do the job. But I just have a "buildin_strcharinfo: fatal error ! player not attached!" error.

Thank you.

 

Edit : Nvm. I found this : 

*getwaitingroomusers "<NPC object name>";

This command get all the characters in the waiting room of the given NPC and stores
their gids in the array .@waitingroom_users[]. Also, stores the the number of characters
in the variable .@waitingroom_usercount

 

Edited by Jowy129
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...