rhay18 0 Posted February 25, 2014 can i request script for npc w/ waiting room... 2 NPC w/ waiting room can enter 5player's when the first 1 npc w/ waiting room is full they wait to full the 1 more npc w/ waiting room... thanks Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 25, 2014 - script main -1,{OnInit: .minplayer2start = 5; end;OnStart: if ( getwaitingroomstate( 0, "left" ) < .minplayer2start || getwaitingroomstate( 0, "right" ) < .minplayer2start ) end; announce "blahblah start !", bc_all; donpcevent "left::OnStart"; donpcevent "right::OnStart"; delwaitingroom "left"; delwaitingroom "right"; disablenpc "left"; disablenpc "right"; end;}prontera,157,187,5 script left 100,{ end;OnInit: sleep 1; waitingroom strnpcinfo(0), getvariableofnpc( .minplayer2start, "main" ) +1, "main::OnStart", getvariableofnpc( .minplayer2start, "main" ); end;OnStart: warpwaitingpc "guild_vs2", 9, 50; end;}prontera,160,187,5 script right 100,{ end;OnInit: sleep 1; waitingroom strnpcinfo(0), getvariableofnpc( .minplayer2start, "main" ) +1, "main::OnStart", getvariableofnpc( .minplayer2start, "main" ); end;OnStart: warpwaitingpc "guild_vs2", 90, 50; end;}same people ?http://rathena.org/board/topic/92911-what-is-the-problem/ 1 rhay18 reacted to this Quote Share this post Link to post Share on other sites
0 rhay18 0 Posted February 25, 2014 yeah... thanks Annie <3 Quote Share this post Link to post Share on other sites
0 rhay18 0 Posted February 25, 2014 (edited) how about w/ 1 party only can enter in waiting room?? then if 1 member leave in party will go back to town... and when 1 member leave in chat room will broadcast like 6/7 other party 7/7 Edited February 25, 2014 by rhay18 Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 25, 2014 no such thing if you want the waitingroom can only accept the same party members, you have to do source modifications and ... I don't like party vs party script ... use battleground ... Quote Share this post Link to post Share on other sites
0 rhay18 0 Posted February 25, 2014 (edited) ahh ok thanks hmmm.... in broadcast like 7/7 when 1 member leave in char room will be 6/7 then sa other party is 7/7 like in bg blue team 0/7 red team 0/7 like that about 1 member leaving in party or logout?? the other party members will going back to town...? Edited February 25, 2014 by rhay18 Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 26, 2014 http://rathena.org/board/topic/92930-about-party/?p=246451 I think already answered over there ... partylock already prevent the players from leaving the party but for logout, well, just very simple script - script kjdhfkjshfs -1,{OnPCLogoutEvent: if ( strcharinfo(3) != "guild_vs2" ) end; if ( !getcharid(1) ) end; // some gm will bypass nowarpto mapflag ... getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) warp "Save", 0,0; } } // warpparty "SavePoint", 0,0, getcharid(1), "guild_vs2"; // EDIT: forgot warpparty doesn't work on noreturn mapflag end;}guild_vs2 mapflag partylock 1 rhay18 reacted to this Quote Share this post Link to post Share on other sites
0 rhay18 0 Posted February 26, 2014 sorry... im here only in hercules because of fast reply let me try... thanks Quote Share this post Link to post Share on other sites
0 rhay18 0 Posted February 26, 2014 (edited) so this script... when the party member logout will going back to town the other member, about in /leave party in in partylock only and disable the /leave because in that script? Edited February 26, 2014 by rhay18 Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 27, 2014 so this script... when the party member logout will going back to town the other member,yes. . about in /leave party in in partylock only and disable the /leave because in that script?yes, it disable map-wise because of the mapflagusing partylock or guildlock is meant for event script where you don't want players to invite/leave the party/guild to exploit the events http://rathena.org/wiki/Mapflag#partylock Quote Share this post Link to post Share on other sites
0 fulldevilman 0 Posted February 27, 2014 but why when i put some map in partylock in mapflag is not working?? have something wrong in my mapflag?? Quote Share this post Link to post Share on other sites
can i request script for npc w/ waiting room...
2 NPC w/ waiting room can enter 5player's when the first 1 npc w/ waiting room is full they wait to full the 1 more npc w/ waiting room... thanks
Share this post
Link to post
Share on other sites