Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.55 KB | None | 0 0
  1. Command:
  2. waitingroom
  3.  
  4. Syntax:
  5. * waitingroom "ChatRoom name",<limit>{,"Event Label",<trigger>};
  6.  
  7. Description:
  8. This command will create a chat room, owned by the NPC object running this script and displayed above the NPC sprite.
  9.  
  10. The maximum length of a chatroom name is 60 letters.
  11.  
  12. 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.
  13.  
  14. It's funny, but for compatibility with jAthena, you can swap the event label and the trigger parameters, and it will still work.
  15.  
  16.  
  17.  
  18. Sample Code:
  19. // The NPC will just show a box above its head that says "Hello World", clicking
  20. // it will do nothing, since the limit is zero.
  21. waitingroom "Hello World",0;
  22.  
  23. // The NPC will have a box above its head, it will say "Disco - Waiting Room"
  24. // and will have 8 waiting slots. Clicking this will enter the chat room, where
  25. // the player will be able to wait until 8 people accumulate. Once this happens,
  26. // it will cause the NPC "Bouncer" run the label "OnStart"
  27. waitingroom "Disco - Waiting Room",8,"Bouncer::OnStart",8;
  28.  
  29. References:
  30. Creating a waiting room does not stop the execution of the script and it will
  31. continue to the next line.
  32.  
  33. For more examples see the 2-1 and 2-2 job quest scripts which make extensive use
  34. of waiting rooms.
  35.  
  36. ////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement