brunoshp Posted May 3, 2014 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted May 3, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share 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 Link to comment Share on other sites More sharing options...
brunoshp Posted May 3, 2014 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 180 Reputation: 7 Joined: 12/19/12 Last Seen: November 21, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.