brunoshp Posted May 3, 2014 Posted May 3, 2014 (edited) Hi all! i need one script basead in Miss Annie System queue! 3 peoples enter in room but only 1 win, others dead go to prontera and winner go to izlude. Edited May 3, 2014 by brunoshp Quote
Patskie Posted May 3, 2014 Posted May 3, 2014 - script Sample -1,{ function push; function pull; function display; function size; OnPCLoadMapEvent: getmapxy( .@map$, .@x, .@y, 0 ); if ( .@map$ == "prontera" ) push( getcharid( 3 ) ); end; OnPCDieEvent: if ( strcharinfo( 3 ) != "prontera" ) end; warp "SavePoint", 0, 0; pull( getcharid( 3 ) ); end; OnPCKillEvent: if ( size() == 1 && strcharinfo( 3 ) == "prontera" ) display(); end; function display { for ( .@x = 0; .@x < getarraysize( .Queue ); .@x++ ) announce "" + rid2name( .Queue[ .@x ] ) + "", 0; return; } function size { return getarraysize( .Queue ); } function push { for ( .@i = 0; .@i < getargcount(); .@i++ ) { for ( .@x = 0; .@x < getarraysize( .Queue ); .@x++ ) { if ( .Queue[ .@x ] == getarg( .@i ) ) deletearray .Queue[ .@x ], 1; } .Queue[ getarraysize( .Queue ) ] = getarg( .@i ); } return; } function pull { for ( .@i = 0; .@i < getargcount(); .@i++ ) { for ( .@x = 0; .@x < getarraysize( .Queue ); .@x++ ) { if ( .Queue[ .@x ] == getarg( .@i ) ) deletearray .Queue[ .@x ], 1; } } return; } } prontera mapflag loadevent Not tested though. Change prontera to your desired map Quote
brunoshp Posted May 3, 2014 Author Posted May 3, 2014 i use miss AnnieRuru System http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/ how i do? for enter 3 players and only one win? Quote
Question
brunoshp
Hi all!
i need one script basead in Miss Annie System queue!
3 peoples enter in room but only 1 win, others dead go to prontera and winner go to izlude.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.