Jump to content

brunoshp

Members
  • Posts

    180
  • Joined

  • Last visited

Everything posted by brunoshp

  1. i can pm you for about this? i need to understand!
  2. or it is possible to make point without killing? Solved
  3. the OnPCLogoutEvent is out arena! is waiting in queue. When player dead , the player return arena not prontera! thz for all!
  4. in this script : prontera,156,185,5 script kjdhfkdjsf 100,{ mes "wanna sign up"; if ( select( "yes", "no" ) == 2 ) close; else if ( .signup_count == 128 ) { mes "Sorry the whole queue is full"; close; } while ( .signup_aid[.@i] != getcharid(3) && .@i < .signup_count ) set .@i, .@i +1; if ( .@i < .signup_count ) { mes "you have already sign up in this event"; close; } set .signup_aid[ .signup_count ], getcharid(3); set .signup_count, .signup_count +1; mes "You are now signed to the BG event"; // set .@i, 0; // DEBUG // while ( .signup_aid[.@i] ) { // set .@signup_name$, .@signup_name$ +","+ rid2name( .signup_aid[.@i] ); // set .@i, .@i +1; // } // mes "[Debug] Currently have "+ .signup_count +" sign-in and they are "+ .@signup_name$; close2; L_start: if ( .signup_count < .min2start ) end; for ( set .@i, 0; .@i < .signup_count; set .@i, .@i +1 ) { if ( attachrid( .signup_aid[.@i] ) ) { if ( getmapflag( strcharinfo(3), mf_nowarp ) ) { // player has went into another event deletearray .signup_aid[.@i], 1; set .signup_count, .signup_count -1; set .@i, .@i -1; } } else { deletearray .signup_aid[.@i], 1; set .signup_count, .signup_count -1; set .@i, .@i -1; } } if ( .start || .signup_count < .min2start ) end; announce "event started", 0; set .start, 1; for ( set .@i, 0; .@i < .signup_count; set .@i, .@i +1 ) setbgid ( .@i %2 )? .red : .blue, .signup_aid[.@i]; deletearray .signup_aid, .min2start; set .signup_count, .signup_count - .min2start; bg_warp .red, "guild_vs3", 13,50; bg_warp .blue, "guild_vs3", 86,50; bg_updatescore "guild_vs3", 0,0; sleep .eventlasting * 1000; if ( .start == 1 ) { if ( .score[1] == .score[2] ) mapannounce "guild_vs3", "Draw !", 0; else if ( .score[1] > .score[2] ) { mapannounce "guild_vs3", " Red side wins !", 0; callsub L_reward, .red; } else if ( .score[1] < .score[2] ) { mapannounce "guild_vs3", " Blue side wins !", 0; callsub L_reward, .blue; } } bg_warp .red, "prontera", 155,182; bg_warp .blue, "prontera", 158,182; bg_kickall .red; bg_kickall .blue; set .start, 0; deletearray .score; goto L_start; L_reward: getbgusers getarg(0); for ( set .@i, 0; .@i < .signup_count; set .@i, .@i +1 ) getitem 501, 1, $@arenamembers[.@i]; // item reward return; Onredout: callsub L_out, 2; Onblueout: callsub L_out, 1; L_out: announce strcharinfo(0) +" is out from the match !", 1; bg_leave; warp "SavePoint", 0,0; set .score[ getarg(0) ], .score[ getarg(0) ] +1; bg_updatescore "guild_vs3", .score[1], .score[2]; if ( .score[ getarg(0) ] == .min2start /2 ) awake strnpcinfo(0); end; OnInit: set .eventlasting, 30 * 60; // how long would the event last or it auto-reset. 30 *60 = 30 mins set .min2start, 2; // minimum player to start set .red, createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onredout" ); set .blue, createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onblueout" ); end; } guild_vs3 mapflag battleground 2 guild_vs3 mapflag nosave SavePoint guild_vs3 mapflag nowarp guild_vs3 mapflag nowarpto guild_vs3 mapflag noteleport guild_vs3 mapflag nomemo guild_vs3 mapflag nopenalty guild_vs3 mapflag nobranch guild_vs3 mapflag noicewall I need to make only end round when red or blue team have 3 points. and add OnPCLogoutEvent.
  5. Thz now is OK! you are fine!
  6. Sorry , i got this error now, i dont understend ! http://imageshack.us/photo/my-images/20/imagemxdd.png/
  7. YEah i maked this modification!
  8. ok i fixed, but now is this! http://imageshack.us/photo/my-images/20/058z.png/
  9. now i have ths error. http://imageshack.us/photo/my-images/267/01bpm.png/
  10. in this script , i have 20 peoples registred, i will warp 3 only , others go to warp after round termined? prontera,156,185,5 script kjdhfkdjsf 100,{ mes "wanna sign up"; if ( select( "yes", "no" ) == 2 ) close; else if ( .signup_count == 128 ) { mes "Sorry the whole queue is full"; close; } while ( .signup_aid[.@i] != getcharid(3) && .@i < .signup_count ) .@i++; if ( .@i < .signup_count ) { mes "you have already sign up in this event"; close; } .signup_aid[ .signup_count ] = getcharid(3); .signup_count++; mes "You are now signed to the BG event"; // .@i = 0; // DEBUG // while ( .signup_aid[.@i] ) { // .@signup_name$[.@i] = rid2name( .signup_aid[.@i] ); // .@i++; // } // mes "[Debug] Currently have "+ .signup_count +" sign-in and they are "+ implode( .@signup_name$, "," ); close2; L_start: if ( .signup_count < .min2start ) end; for ( .@i = 0; .@i < .signup_count; .@i++ ) { if ( attachrid( .signup_aid[.@i] ) ) { if ( getmapflag( strcharinfo(3), mf_nowarp ) ) { // player has went into another event deletearray .signup_aid[.@i], 1; .signup_count--; .@i--; } } else { deletearray .signup_aid[.@i], 1; .signup_count--; .@i--; } } if ( .start || .signup_count < .min2start ) end; announce "event started", 0; .start = 1; for ( .@i = 0; .@i < .signup_count; .@i++ ) setbgid ( .@i %2 )? .red : .blue, .signup_aid[.@i]; deletearray .signup_aid, .min2start; bg_warp .red, "guild_vs3", 13,50; bg_warp .blue, "guild_vs3", 86,50; bg_updatescore "guild_vs3", 0,0; sleep .eventlasting * 1000; if ( .start == 1 ) { if ( .score[1] == .score[2] ) mapannounce "guild_vs3", "Draw !", 0; else if ( .score[1] > .score[2] ) { mapannounce "guild_vs3", " Red side wins !", 0; callsub L_reward, .red; } else if ( .score[1] < .score[2] ) { mapannounce "guild_vs3", " Blue side wins !", 0; callsub L_reward, .blue; } } bg_warp .red, "prontera", 155,182; bg_warp .blue, "prontera", 158,182; bg_kickall .red; bg_kickall .blue; .start = .score[1] = .score[2] = 0; goto L_start; L_reward: getbgusers getarg(0); for ( .@i = 0; .@i < $@arenamembersnum; .@i++ ) getitem 501, 1, $@arenamembers[.@i]; // item reward return; Onredout: callsub L_out, 2; Onblueout: callsub L_out, 1; L_out: announce strcharinfo(0) +" is out from the match !", 1; bg_leave; warp "SavePoint", 0,0; .score[ getarg(0) ]++; bg_updatescore "guild_vs3", .score[1], .score[2]; if ( .score[ getarg(0) ] == .min2start /2 ) awake strnpcinfo(0); end; OnInit: .eventlasting = 30 * 60; // how long would the event last or it auto-reset. 30 *60 = 30 mins .min2start = 2; // minimum player to start .red = createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onredout" ); .blue = createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onblueout" ); end; }
  11. thz, but i need to enter 3 player, after round enter more 3 was registred in queue ! max players registred are 128. first 3 enter , after round other 3. UP, i need so much!
  12. This script not warp player after number 3 in line! help me! i need to warp to player number 4 , 5 , 6 . this is queue for enter to event! prontera,152,186,4 script SpeedTest 123,{ mes "Wanna sign up"; if(select("yes:no")==2) close; if(getarraysize(.signup_A) == 128) {mes "Sorry the whole queue is full"; close; } set .signup_A[getarraysize(.signup_A)],getcharid(0); //Sets the player RID in the queue mes "You are now signed to the BG event"; dispbottom "Sua Posição na fila é : [ "+getarraysize(.signup_A)+" ]"; close2; if (.bgon>=1) {end; }//If battlegrounds is ongoing script stops. while (1) { set .@problem,0; if(getarraysize(.signup_A) >= 3) { //Check array size for ( set .@i,0; .@i<3; set .@i,.@i+1) { //Loop through the first three values if(!isloggedin(.signup_A[.@i])) { //Check if player is logged in, if not proceed to do the following. deletearray .signup[.@i],1; //Deletes the player from array and moves other values up set .@problem,1; //A check to indicate that someone in the first three spots wasn't logged. } } } else if (getarraysize(.signup_A) < 3){ end; }//If less than three people in array end the script. if (!.@problem){ break; }//Break out of the loop if there weren't any issues //Warp characters to BG map warpchar "izlude",155,187,.signup_A[0]; warpchar "izlude",155,187,.signup_A[1]; warpchar "izlude",155,187,.signup_A[2]; deletearray .signup_A[0],3; set .bgon,1; initnpctimer "MCTimer5m"; end; } } izlude,1,1,1 script MCTimer5m -1,{ OnTimer5000: end; OnTimer11000: initnpctimer "MCTimer5m2"; end; } izlude,1,1,1 script MCTimer5m2 -1,{ OnTimer1000: if( getmapusers("izlude") <= 1 ) goto L_WinR; initnpctimer "MCTimer5m"; end; L_WinR: stopnpctimer; set .bgon,0; announce "Outra partida!",8; mapwarp "izlude","prontera",155,180; end; }
  13. prontera,152,186,4 script SpeedTest 123,{ mes" hi"; callfunc("push", 1, 4, 1, 0); // for regist next; callfunc("pull", 2, 4, 2, 1); // fopr warp? close; Pls send me 1 exemple for player registre and warp for izlude.
  14. 1 example for registre w8 2 players and warp ! pls!
  15. Java your Windows are 64 bits or 32 bits?
  16. countpartyin and partycount are ok! now error is queue!
  17. this! http://imageshack.us/photo/my-images/5/error1.jpg/ http://imageshack.us/photo/my-images/404/error2dh.jpg/
  18. How can I fix these errors? arena_room,102,100,5 script 3vs3Party 822,{ //npctalk getpartymembercount(getcharid(1)); mes "[Arena Guide]"; mes "Welcome to the 3 vs 3 Party Arena!!!"; mes "Would you like to compete?"; next; menu "Oooh Yeeaahh!!!",L_Yes, "Nuuu", L_No; close; L_Yes: if (BaseLevel < 250 || Class==Job_Novice || Class==Job_Baby || Class==Job_Novice_High) goto L_Level; if (getpartymembercount(getcharid(1)) == 3 && getpartycount(getcharid(1)) == 3){ set .@myparty, getcharid(1); if(.@myparty==$PP1_Team1_id || .@myparty==$PP1_Team2_id || .@myparty==$PP2_Team1_id || .@myparty==$PP2_Team2_id){ mes "[Arena Guide]"; mes "Your party is already playing..."; close; } getmapxy(@PRTYPRTY_city$, @PRTYPRTY_x, @PRTYPRTY_y, 0); set .@pos, arena_queue_add(2); //sets @PRTYPRTY_active=1 as well mes "[Arena Guide]"; if(.@pos==0){ mes "The queue is full. Please wait a while and try again."; }else if(.@pos==-2){ mes "Sorry, you and your Party need to be at least level 200. No Novices allowed either."; }else if(.@pos==-1){ mes "You / your party already are on a waiting line..."; }else if(.@pos==2){ if($@PP1_running==0){ set $@PP1_running, 1; donpcevent "PARTYVSPARTY_WINR::onstart1"; }else if($@PP2_running==0){ set $@PP2_running, 1; donpcevent "PARTYVSPARTY_WINR::onstart2"; }else{ mes "Congratulations, you are now on the waiting line for 3vs3 Party!"; mes "Your position is: ^FF0000"+(.@pos-1)+"^000000"; next; mes "[Arena Guide]"; mes "^0000FFWhen it's your turn, you will be taken to the Arena even if you moved away from this map!"; mes "^FF0000But if you logout, you will be put out of the queue."; close; } }else{ mes "[Arena Guide]"; mes "Sorry, you do not meet the requirements, check that your party has exactly 3 people in it and try again."; } close; L_No: mes "[Arena Guide]"; mes "Okay, please come again!"; close; L_Level: mes "[Arena Guide]"; mes "Sorry, you need to be at least level 250."; close; }} izlude,135,114,5 duplicate(3vs3Party) 3vs3Party#2 822 payon, 158,233,5 duplicate(3vs3Party) 3vs3Party#3 822 ra_in01,318,291,2 duplicate(3vs3Party) 3vs3Party#4 822 //------------------------------------------------------------------------- // // ARENA 1 // //------------------------------------------------------------------------- guild_vs1.gat,0,0,0 script PARTYVSPARTY_TIMR1 -1,{ OnTimer10000: set $PP1_times_10s, $PP1_times_10s + 1; //4 minutes if ($PP1_times_10s==24){ mapannounce "guild_vs1.gat", "Everyone, you have one minute to finish this fight!!", 1; } //4.66 minutes if ($PP1_times_10s==28){ mapannounce "guild_vs1.gat", "Attention! The round is over in 20 seconds, the team with more people alive will win!", 1; } //5 minutes - time's over if ($PP1_times_10s>=30){ stopnpctimer; stopnpctimer "PPTimer1"; set .@PP1_Team1_alive, countpartyin("guild_vs1", $PP1_Team1_id); set .@PP1_Team2_alive, countpartyin("guild_vs1", $PP1_Team2_id); if(.@PP1_Team1_alive > .@PP1_Team2_alive){ //team1 wins if($PP1_Team2_x) warpparty $PP1_Team2_city$,$PP1_Team2_x,$PP1_Team2_y,$PP1_Team2_id; else warpparty "prontera",156,173,$PP1_Team2_id; if (getpartymembercount($PP1_Team1_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP1_Team1_id; else warpparty "prontera",156,173,$PP1_Team1_id; //they cheated mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP1_Team1_id)+" defeated "+getpartyname($PP1_Team2_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; }else if(.@PP1_Team2_alive > .@PP1_Team1_alive){ //team2 wins if($PP1_Team1_x) warpparty $PP1_Team1_city$,$PP1_Team1_x,$PP1_Team1_y,$PP1_Team1_id; else warpparty "prontera",156,173,$PP1_Team1_id; if (getpartymembercount($PP1_Team2_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP1_Team2_id; else warpparty "prontera",156,173,$PP1_Team2_id; //they cheated mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP1_Team2_id)+" defeated "+getpartyname($PP1_Team1_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; }else{ //draw if($PP1_Team1_x) warpparty $PP1_Team1_city$,$PP1_Team1_x,$PP1_Team1_y,$PP1_Team1_id; else warpparty "prontera",156,173,$PP1_Team1_id; if($PP1_Team2_x) warpparty $PP1_Team2_city$,$PP1_Team2_x,$PP1_Team2_y,$PP1_Team2_id; else warpparty "prontera",156,173,$PP1_Team2_id; mapannounce "arena_room", "The 3vs3 fight between party " +getpartyname($PP1_Team1_id)+" and "+getpartyname($PP1_Team2_id)+" was a draw!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; } end; } donpcevent "PARTYVSPARTY_WINR::OnCheckWinner1"; } guild_vs1.gat,1,1,1 script PPTimer1 -1,{ OnTimer10001: if (getpartycount($PP1_Team1_id) > 3){ set .@cheater, $PP1_Team1_id; goto L_Cheat; } if (getpartycount($PP1_Team2_id) > 3){ set .@cheater, $PP1_Team2_id; goto L_Cheat; } initnpctimer; end; L_Cheat: stopnpctimer; stopnpctimer "PARTYVSPARTY_TIMR1"; set $PP1_Team1_id, 0; set $PP1_Team2_id, 0; mapwarp "guild_vs1","prontera",156,173; mapannounce "arena_room", "Party " +getpartyname(.@cheater)+" tried to get more than 3 members during the 3vs3 fight. This match is cancelled!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; end; } //------------------------------------------------------------------------- // // ARENA 2 // //------------------------------------------------------------------------- guild_vs1-1.gat,0,0,0 script PARTYVSPARTY_TIMR2 -1,{ OnTimer10000: set $PP2_times_10s, $PP2_times_10s + 1; //4 minutes if ($PP2_times_10s==24){ mapannounce "guild_vs1-1.gat", "Everyone, you have one minute to finish this fight!!", 1; } //4.66 minutes if ($PP2_times_10s==28){ mapannounce "guild_vs1-1.gat", "Attention! The round is over in 20 seconds, the team with more people alive will win!", 1; } //5 minutes - time's over if ($PP2_times_10s>=30){ stopnpctimer; stopnpctimer "PPTimer2"; set .@PP2_Team1_alive, countpartyin("guild_vs1-1", $PP2_Team1_id); set .@PP2_Team2_alive, countpartyin("guild_vs1-1", $PP2_Team2_id); if(.@PP2_Team1_alive > .@PP2_Team2_alive){ //team1 wins if($PP2_Team2_x) warpparty $PP2_Team2_city$,$PP2_Team2_x,$PP2_Team2_y,$PP2_Team2_id; else warpparty "prontera",156,173,$PP2_Team2_id; if (getpartymembercount($PP2_Team1_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP2_Team1_id; else warpparty "prontera",156,173,$PP2_Team1_id; //they cheated mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP2_Team1_id)+" defeated "+getpartyname($PP2_Team2_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; }else if(.@PP2_Team2_alive > .@PP2_Team1_alive){ //team2 wins if($PP2_Team1_x) warpparty $PP2_Team1_city$,$PP2_Team1_x,$PP2_Team1_y,$PP2_Team1_id; else warpparty "prontera",156,173,$PP2_Team1_id; if (getpartymembercount($PP2_Team2_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP2_Team2_id; else warpparty "prontera",156,173,$PP2_Team2_id; //they cheated mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP2_Team2_id)+" defeated "+getpartyname($PP2_Team1_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; }else{ //draw if($PP2_Team1_x) warpparty $PP2_Team1_city$,$PP2_Team1_x,$PP2_Team1_y,$PP2_Team1_id; else warpparty "prontera",156,173,$PP2_Team1_id; if($PP2_Team2_x) warpparty $PP2_Team2_city$,$PP2_Team2_x,$PP2_Team2_y,$PP2_Team2_id; else warpparty "prontera",156,173,$PP2_Team2_id; mapannounce "arena_room", "The 3vs3 fight between party " +getpartyname($PP2_Team1_id)+" and "+getpartyname($PP2_Team2_id)+" was a draw!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; } end; } donpcevent "PARTYVSPARTY_WINR::OnCheckWinner2"; } guild_vs1-1.gat,1,1,1 script PPTimer2 -1,{ OnTimer10001: if (getpartycount($PP2_Team1_id) > 3){ set .@cheater, $PP2_Team1_id; goto L_Cheat; } if (getpartycount($PP2_Team2_id) > 3){ set .@cheater, $PP2_Team2_id; goto L_Cheat; } initnpctimer; end; L_Cheat: stopnpctimer; stopnpctimer "PARTYVSPARTY_TIMR2"; set $PP2_Team1_id, 0; set $PP2_Team2_id, 0; mapwarp "guild_vs1-1","prontera",156,173; mapannounce "arena_room", "Party " +getpartyname(.@cheater)+" tried to get more than 3 members during the 3vs3 fight. This match is cancelled!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; end; } //------------------------------------------------------------------------- // // GAME NPC // //------------------------------------------------------------------------- guild_vs1.gat,0,0,0 script PARTYVSPARTY_WINR -1,{ mes "[Arena Guide]"; mes "What are you doing here? "; close; OnInit: mapwarp "guild_vs1.gat","prontera",156,173; mapwarp "guild_vs1-1.gat","prontera",156,173; set $@PP1_running, 1; set $@PP2_running, 1; donpcevent "PARTYVSPARTY_WINR::onstart1"; donpcevent "PARTYVSPARTY_WINR::onstart2"; end; onstart1: set $PP1_Team1_id, 0; set $PP1_Team2_id, 0; set $PP1_times_10s, 0; set $PP1_Team1_city$, 0; set $PP1_Team1_x, 0; set $PP1_Team1_y, 0; set $PP1_Team2_city$, 0; set $PP1_Team2_x, 0; set $PP1_Team2_y, 0; if(warp_arena_queue(2,1,"guild_vs1",0,0,2) > 0){ //sets $team1id $team2id as well set $@PP1_running, 1; set $PP1_times_10s, 0; initnpctimer "PARTYVSPARTY_TIMR1"; initnpctimer "PPTimer1"; }else{ set $@PP1_running, 0; } end; onstart2: set $PP2_Team1_id, 0; set $PP2_Team2_id, 0; set $PP2_times_10s, 0; set $PP2_Team1_city$, 0; set $PP2_Team1_x, 0; set $PP2_Team1_y, 0; set $PP2_Team2_city$, 0; set $PP2_Team2_x, 0; set $PP2_Team2_y, 0; if(warp_arena_queue(2,2,"guild_vs1-1",0,0,2) > 0){ //sets $team1id $team2id as well set $@PP2_running, 1; set $PP2_times_10s, 0; initnpctimer "PARTYVSPARTY_TIMR2"; initnpctimer "PPTimer2"; }else{ set $@PP2_running, 0; } end; OnPCLogoutEvent: if(@PRTYPRTY_active==1) arena_queue_del(2); end; OnPCDieEvent: getmapxy(.@mapname$, .@mapx, .@mapy, 0); if(.@mapname$=="guild_vs1-1"){ if(@PRTYPRTY_x) warp @PRTYPRTY_city$,@PRTYPRTY_x,@PRTYPRTY_y; else warp "prontera",156,173; set @PRTYPRTY_city$, 0; set @PRTYPRTY_x, 0; set @PRTYPRTY_y, 0; sleep2 1000; alive; } end; OnCheckWinner1: set .@PP1_Team1_alive, countpartyin("guild_vs1", $PP1_Team1_id); set .@PP1_Team2_alive, countpartyin("guild_vs1", $PP1_Team2_id); if ( .@PP1_Team1_alive==0 && .@PP1_Team2_alive==0 ) goto L_NoWinner1; if ( .@PP1_Team1_alive == 0 ) { //team2 wins stopnpctimer "PARTYVSPARTY_TIMR1"; stopnpctimer "PPTimer1"; if($PP1_Team1_x) warpparty $PP1_Team1_city$,$PP1_Team1_x,$PP1_Team1_y,$PP1_Team1_id; else warpparty "prontera",156,173,$PP1_Team1_id; if (getpartymembercount($PP1_Team2_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP1_Team2_id; else warpparty "prontera",156,173,$PP1_Team2_id; //they cheated //declare winner mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP1_Team2_id)+" defeated "+getpartyname($PP1_Team1_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; }else if ( .@PP1_Team2_alive == 0){ //team1 wins stopnpctimer "PARTYVSPARTY_TIMR1"; stopnpctimer "PPTimer1"; if($PP1_Team2_x) warpparty $PP1_Team2_city$,$PP1_Team2_x,$PP1_Team2_y,$PP1_Team2_id; else warpparty "prontera",156,173,$PP1_Team2_id; if (getpartymembercount($PP1_Team1_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP1_Team1_id; else warpparty "prontera",156,173,$PP1_Team1_id; //they cheated //declare winner mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP1_Team1_id)+" defeated "+getpartyname($PP1_Team2_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; }else{ initnpctimer "PARTYVSPARTY_TIMR1"; } end; L_NoWinner1: stopnpctimer "PARTYVSPARTY_TIMR1"; stopnpctimer "PPTimer1"; mapannounce "arena_room", "The 3vs3 fight between party " +getpartyname($PP1_Team1_id)+" and "+getpartyname($PP1_Team2_id)+" was a draw!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart1"; end; OnCheckWinner2: set .@PP2_Team1_alive, countpartyin("guild_vs1-1", $PP2_Team1_id); set .@PP2_Team2_alive, countpartyin("guild_vs1-1", $PP2_Team2_id); if ( .@PP2_Team1_alive==0 && .@PP2_Team2_alive==0 ) goto L_NoWinner2; if ( .@PP2_Team1_alive == 0 ) { //team2 wins stopnpctimer "PARTYVSPARTY_TIMR2"; stopnpctimer "PPTimer2"; if($PP2_Team1_x) warpparty $PP2_Team1_city$,$PP2_Team1_x,$PP2_Team1_y,$PP2_Team1_id; else warpparty "prontera",156,173,$PP2_Team1_id; if (getpartymembercount($PP2_Team2_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP2_Team2_id; else warpparty "prontera",156,173,$PP2_Team2_id; //they cheated //declare winner mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP2_Team2_id)+" defeated "+getpartyname($PP2_Team1_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; }else if ( .@PP2_Team2_alive == 0){ //team1 wins stopnpctimer "PARTYVSPARTY_TIMR2"; stopnpctimer "PPTimer2"; if($PP2_Team2_x) warpparty $PP2_Team2_city$,$PP2_Team2_x,$PP2_Team2_y,$PP2_Team2_id; else warpparty "prontera",156,173,$PP2_Team2_id; if (getpartymembercount($PP2_Team1_id) <= 3) warpparty "lhz_cube.gat",122,74,$PP2_Team1_id; else warpparty "prontera",156,173,$PP2_Team1_id; //they cheated //declare winner mapannounce "arena_room", "We have a winner for this 3vs3 fight! Party " +getpartyname($PP2_Team1_id)+" defeated "+getpartyname($PP2_Team2_id)+"!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; }else{ initnpctimer "PARTYVSPARTY_TIMR2"; } end; L_NoWinner2: stopnpctimer "PARTYVSPARTY_TIMR2"; stopnpctimer "PPTimer2"; mapannounce "arena_room", "The 3vs3 fight between party " +getpartyname($PP2_Team1_id)+" and "+getpartyname($PP2_Team2_id)+" was a draw!!", 1; sleep 10000; donpcevent "PARTYVSPARTY_WINR::onstart2"; end; } // // Prize NPC // lhz_cube.gat,124,74,3 script winnerPrize#3vs3 818,2,2,{ sc_end SC_ALL; mes "[Winner Prize]"; mes "Congratulations, you're the winners! Here's your prize ~ "; next; getitem 22555,1; percentheal 100,100; if(@PRTYPRTY_x) warp @PRTYPRTY_city$,@PRTYPRTY_x,@PRTYPRTY_y; else warp "prontera",156,173; set @PRTYPRTY_city$, 0; set @PRTYPRTY_x, 0; set @PRTYPRTY_y, 0; end; }
  19. Java can you post this script? i have this ctf but have sou much bugs! add and i will up for you [email protected]
  20. This error happens when I choose any card. Versio 14589
×
×
  • Create New...