From c3ce0fb9b04d4c51d632c21f24f7a348c2681bf2 Mon Sep 17 00:00:00 2001 From: Emistry Date: Sun, 6 Sep 2015 06:49:44 +0800 Subject: Revert "Updated getwaitingroomstate() script command." This reverts commit 1bd8e9d50ed6de9433c3d6ccb842491cdafcd0a1. --- doc/script_commands.txt | 7 +------ src/map/script.c | 16 +--------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 146e58a45..9d3673490 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6798,8 +6798,7 @@ if any. The valid information types are: - 0 - Number of users currently in the waiting room - $@chatmembers[] - list of user account_id + 0 - Number of users currently chatting. 1 - Maximum number of users allowed. 2 - Will return 1 if the waiting room has a trigger set. 0 otherwise. @@ -6812,10 +6811,6 @@ The valid information types are: 32 - Whether or not the waiting room is full. 33 - Whether the amount of users in the waiting room is higher than the trigger number. - 34 - Minimum Base Level to enter waiting room. - 35 - Maximum Base Level to enter waiting room. - 36 - Minimum Zeny to enter waiting room. - --------------------------------------- diff --git a/src/map/script.c b/src/map/script.c index e134730da..23cf034b8 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11420,10 +11420,6 @@ BUILDIN(disablewaitingroomevent) { /// =16 : the name of the waiting room event /// =32 : if the waiting room is full /// =33 : if there are enough users to trigger the event -/// -- Custom Added -/// =34 : minimum player of waiting room -/// =35 : maximum player of waiting room -/// =36 : minimum zeny required /// /// getwaitingroomstate(,"") -> /// getwaitingroomstate() -> @@ -11444,13 +11440,7 @@ BUILDIN(getwaitingroomstate) { } switch(type) { - case 0: - for (int i = 0; i < cd->users; i++) { - struct map_session_data *sd = cd->usersd[i]; - mapreg->setreg(reference_uid(script->add_str("$@chatmembers"), i), sd->bl.id); - } - script_pushint(st, cd->users); - break; + case 0: script_pushint(st, cd->users); break; case 1: script_pushint(st, cd->limit); break; case 2: script_pushint(st, cd->trigger&0x7f); break; case 3: script_pushint(st, ((cd->trigger&0x80)!=0)); break; @@ -11459,10 +11449,6 @@ BUILDIN(getwaitingroomstate) { case 16: script_pushstrcopy(st, cd->npc_event);break; case 32: script_pushint(st, (cd->users >= cd->limit)); break; case 33: script_pushint(st, (cd->users >= cd->trigger)); break; - - case 34: script_pushint(st, cd->minLvl); break; - case 35: script_pushint(st, cd->maxLvl); break; - case 36: script_pushint(st, cd->zeny); break; default: script_pushint(st, -1); break; } return true; -- cgit v1.2.3-70-g09d2