summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorKisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-04-05 06:00:20 +0000
committerKisuka <Kisuka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-04-05 06:00:20 +0000
commitd841fc529949f361e915b73a073d1fa9d4ec60f7 (patch)
tree6a9a34b176f00c6178700a46c01d1c752821d40e /doc/script_commands.txt
parent1bea10f578d4e8119659a0373c0a9213fdaab4d4 (diff)
downloadhercules-d841fc529949f361e915b73a073d1fa9d4ec60f7.tar.gz
hercules-d841fc529949f361e915b73a073d1fa9d4ec60f7.tar.bz2
hercules-d841fc529949f361e915b73a073d1fa9d4ec60f7.tar.xz
hercules-d841fc529949f361e915b73a073d1fa9d4ec60f7.zip
- Completed L0ne's 2007 request for 'waitingroom' to support required zeny and level.
- Updated NPC files which required the waitingroom update. - Added Poring War script. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14765 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 2c8662cca..978e48183 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -166,6 +166,8 @@
//= Added 'bg_getareausers' and 'bg_get_data' commands. [Ai4rei]
//= Updated description of 'waitingroom2bg_single' command.
//= Documented optional parameter 'npc name' of 'waitingroom2bg' command.
+//= 3.40.20110404
+//= Updated description of 'waitingroom' command to include required zeny/lvl. [Kisuka]
//=========================================================
This document is a reference manual for all the scripting commands and functions
@@ -5708,7 +5710,7 @@ The function returns 0 if the shop was not found, 1 otherwise.
---------------------------------------
-*waitingroom "<chatroom name>",<limit>{,<event label>,<trigger>};
+*waitingroom "<chatroom name>",<limit>{,<event label>,<trigger>,<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.
@@ -5719,9 +5721,6 @@ 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.
-It's funny, but for compatibility with jAthena, you can swap the event label and
-the trigger parameters, and it will still work.
-
// 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;
@@ -5733,6 +5732,14 @@ the trigger parameters, and it will still work.
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.