Jump to content
  • 0

NPC that have pub


isaw4sal3

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  40
  • Reputation:   0
  • Joined:  12/10/11
  • Last Seen:  

how to use this script? can anyone helo with this one

waitingroom "ChatRoom name",<limit>{,"Event Label",<trigge};
Edited by isaw4sal3
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

just put that in your script......

waitingroom "Name",0;

the limit refer to how many users can get into the "chatroom"

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/script_commands.txt

*waitingroom "<chatroom name>",<limit>{,<event label>,<trigge,<required zeny>,<min lvl>,<max lvl>};
This command will create a chat room, owned by the NPC object running this
script and displayed above the NPC sprite.
The maximum length of a chat room name is 60 letters.
The limit is the maximum number of people allowed to enter the chat room. If the
optional event and trigger parameters are given, the event label
("<NPC object name>::<label name>") will be invoked as if with a 'doevent' upon
the number of people in the chat room reaching the given triggering amount.
// The NPC will just show a box above its head that says "Hello World", clicking
// it will do nothing, since the limit is zero.
   waitingroom "Hello World",0;
// The NPC will have a box above its head, it will say "Disco - Waiting Room"
// and will have 8 waiting slots. Clicking this will enter the chat room, where
// the player will be able to wait until 8 people accumulate. Once this happens,
// it will cause the NPC "Bouncer" run the label "OnStart"
   waitingroom "Disco - Waiting Room",8,"Bouncer::OnStart",8;
// The NPC will have a box above its head, it will say "Party - Waiting Room"
// and will have 8 waiting slots. Clicking this will allow a player who has
// 5000 zeny and lvl 50~99 to enter the chat room, where the player will be
// able to wait until 8 people accumulate. Once this happens, it will cause
// the NPC "Bouncer" run the label "OnStart"
   waitingroom "Party - Waiting Room",5,"Bouncer::OnStart",8,5000,50,99;
Creating a waiting room does not stop the execution of the script and it will
continue to the next line.
For more examples see the 2-1 and 2-2 job quest scripts which make extensive use
of waiting rooms.

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