Nokia Posted March 14, 2012 Posted March 14, 2012 topic says, just 1 npc which warps random into the bg, something like this i found: //Conquest Randomizer bat_room,135,175,4 script Conquest I::ConR_Random 466,{ end; OnInit: waitingroom "Conquest",1,"ConR_RANDOM::OnDoB_CONQ",1; end; } - script ConR_RANDOM -1,{ OnDoB_CONQ: if( $@Conquest == 1 ) { // set .@Guillaume, bg_get_data($@Conquest_id1, 0); set .@Croix, bg_get_data($@Conquest_id2, 0); if( .@Guillaume < .@Croix ) waitingroom2bg_single $@Conquest_id1,.Castle$,.GX,.GY,"ConR_Random"; else if( .@Guillaume > .@Croix ) waitingroom2bg_single $@Conquest_id2,.Castle$,.CX,.CY,"ConR_Random"; else { set .@GuillaumeR, getwaitingroomstate(0,"ConR_Random"); set .@CroixR, getwaitingroomstate(0,"ConR_Random"); if( .@GuillaumeR <= .@CroixR ) set .@Limit, .@GuillaumeR; else set .@Limit, .@CroixR; if( .@Limit + .@Guillaume > 50 ) set .@Limit, 50 - .@Guillaume; if( .@Limit <= 0 ) end; for( set .@i, 0; .@i < .@Limit; set .@i, .@i + 1 ) { waitingroom2bg_single $@Conquest_id1,.Castle$,.GX,.GY,"ConR_Random"; waitingroom2bg_single $@Conquest_id2,.Castle$,.CX,.CY,"ConR_Random"; } set .@Guillaume, .@Guillaume + .@Limit; set .@Croix, .@Croix + .@Limit; mapannounce "bat_room","Battleground -- Conquest [80-99] G: " + .@Guillaume + "/50, C: " + .@Croix + "/50 (Playing)",1,0xFFA500; } end; } } but its not working on rathena, nothing happens if i enter the waitingroom. Quote
Jezu Posted March 15, 2012 Posted March 15, 2012 topic says, just 1 npc which warps random into the bg, something like this i found: //Conquest Randomizer bat_room,135,175,4 script Conquest I::ConR_Random 466,{ end; OnInit: waitingroom "Conquest",1,"ConR_RANDOM::OnDoB_CONQ",1; end; } - script ConR_RANDOM -1,{ OnDoB_CONQ: if( $@Conquest == 1 ) { // set .@Guillaume, bg_get_data($@Conquest_id1, 0); set .@Croix, bg_get_data($@Conquest_id2, 0); if( .@Guillaume < .@Croix ) waitingroom2bg_single $@Conquest_id1,.Castle$,.GX,.GY,"ConR_Random"; else if( .@Guillaume > .@Croix ) waitingroom2bg_single $@Conquest_id2,.Castle$,.CX,.CY,"ConR_Random"; else { set .@GuillaumeR, getwaitingroomstate(0,"ConR_Random"); set .@CroixR, getwaitingroomstate(0,"ConR_Random"); if( .@GuillaumeR <= .@CroixR ) set .@Limit, .@GuillaumeR; else set .@Limit, .@CroixR; if( .@Limit + .@Guillaume > 50 ) set .@Limit, 50 - .@Guillaume; if( .@Limit <= 0 ) end; for( set .@i, 0; .@i < .@Limit; set .@i, .@i + 1 ) { waitingroom2bg_single $@Conquest_id1,.Castle$,.GX,.GY,"ConR_Random"; waitingroom2bg_single $@Conquest_id2,.Castle$,.CX,.CY,"ConR_Random"; } set .@Guillaume, .@Guillaume + .@Limit; set .@Croix, .@Croix + .@Limit; mapannounce "bat_room","Battleground -- Conquest [80-99] G: " + .@Guillaume + "/50, C: " + .@Croix + "/50 (Playing)",1,0xFFA500; } end; } } but its not working on rathena, nothing happens if i enter the waitingroom. This script is for eamod only. It will only work on the source code of eAmod. Quote
Nokia Posted March 15, 2012 Author Posted March 15, 2012 hmm, can i do this by just warping the people random into the waiting rooms? like this: bat_room,156,160,3 script Register 416,{ switch( select("Tierra") ) { case 1: switch( rand(1,2) ){ case 1: warp "bat_room", 57, 223; end; //blue team waiting room case 2: warp "bat_room", 57, 207; end; //red team waiting room } } } i probably need some checks there, like stop warping if there are 3 users in the watingroom, this will probably not work becasue all waiting rooms are an the same map Quote
ossi0110 Posted March 22, 2012 Posted March 22, 2012 (edited) Heyya Rathena i have a question about a script , Im Searched in the Eathena and Rathena forum but found no hint about it . Im Looking for a PVP Script for the KVM and Tierra Battle . I Want that the Team Members are SPlittet up in Random Teams . Example: A wating room for 10 Players for KVM 5vs5 , When the 10 Players are in the CHatRoom/or on a Special Map the Script will Select Random 5er Teams from the 10 PPls on the map or Chatroom. And will start the KVM then Im not sure if this is Possibel any Help would be Pretty nice whit this Edited March 22, 2012 by Brian *merged topics Quote
Nokia Posted March 22, 2012 Author Posted March 22, 2012 http://rathena.org/board/topic/60229-bg-random-team-chooser/ i also need something like that. Quote
Question
Nokia
topic says, just 1 npc which warps random into the bg, something like this i found:
but its not working on rathena, nothing happens if i enter the waitingroom.
5 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.