OKay Okay.. I surrender. This is the script that I am using and I quite modify this one. This is a Dice Event that I just change in a different way, specially the location.
prontera,141,174,4 script Dice Event 4W_M_01,{ .@deName$ = "[^FF0000Dice Event^000000]"; .@menu$ = "Join the event:Cancel"; if (getgmlevel() >= .gmsetting) { .@menu$ = .@menu$ + ":Start Event"; } switch(select(.@menu$)){ case 1: if ( .dEstart == 1 ) { $@area = rand (1,4); if ( $@area == 1 ) warp "dice",49,59; if ( $@area == 2 ) warp "dice",59,49; if ( $@area == 3 ) warp "dice",49,40; if ( $@area == 4 ) warp "dice",40,50; if (getgmlevel() >= .gmsetting ) warp "dice",49,49; set .player$,strcharinfo(0); set .winner$,getcharid(3); end; } else if ( .dEstart == 2 ) { mes .@deName$; mes "Too late, the event has already started"; close; } mes .@deName$; mes "No Event right now"; close; case 2: end; case 3: mes .@deName$; mes "start the event"; donpcevent strnpcinfo(0)+"::OnStart"; close; }OnStart: .dEstart = 1; announce "Dice Event: We are going to have a Dice Event",bc_all,0xFF7F50; sleep 1 * .seconds; announce "Dice Event: For those who want to join, please meet me @ the MARKET Place right side.",bc_all,0xFF7F50; //Edit to where would you place the warper sleep 1 * .seconds; announce "Dice Event: The Warper would be open for 1 minute",bc_all,0xFF7F50; sleep 30 * .seconds; announce "Dice Event: Last 30 Seconds.",bc_all,0xFF7F50; sleep 30 * .seconds;OnEnable: if((getareausers("dice",36,63,63,36)) - (getareausers("dice",46,53,53,46))== 1 ){ mapannounce "dice","Dice: The Game will start minimum of TWO player...",bc_all,0xFF7F50; sleep 5 * .seconds; announce "Dice Event: Last Call. We are waiting for another challenger..",bc_all,0xFF7F50; sleep 10 * .seconds; announce "Dice Event: For those who want to join, please meet me @ the MARKET Place right side.",bc_all,0xFF7F50; //Edit to where would you place the warper sleep 20 * .seconds; announce "Dice Event: The Warper would be open for 1 minute",bc_all,0xFF7F50; sleep 30 * .seconds; announce "Dice Event: Last 30 Seconds.",bc_all,0xFF7F50; sleep 30 * .seconds; announce "Dice Event: Warper Closed.",bc_all,0xFF7F50; sleep 5 * .seconds; if((getareausers("dice",36,63,63,36)) - (getareausers("dice",46,53,53,46)) == 1 ){ mapannounce "dice","Dice: The Dice event is HALTED...",bc_all,0xFF7F50; sleep 5 * .second; areawarp "dice",36,63,43,56,"prontera",156,191; areawarp "dice",44,63,55,56,"prontera",156,191; areawarp "dice",56,63,63,56,"prontera",156,191; areawarp "dice",63,55,56,44,"prontera",156,191; areawarp "dice",63,43,56,36,"prontera",156,191; areawarp "dice",55,36,44,43,"prontera",156,191; areawarp "dice",43,36,36,43,"prontera",156,191; areawarp "dice",36,44,43,55,"prontera",156,191; end; } } .dEstart = 2; mapannounce "dice","Dice: We are about to start the Dice event.",0;sleep2 10000; mapannounce "dice","Dice: But before we start the event here's how to play the game. . .",0;sleep2 10000; mapannounce "dice","Dice: I'm only gonna say this once so read carefully.",0;sleep2 10000; mapannounce "dice","Dice: I'm going to pick a number, 1 to 4. Then I'll do a count down from 5 to 0.",0;sleep2 10000; mapannounce "dice","Dice: All you have to do is go to the box of the number you want.",0;sleep2 10000; mapannounce "dice","Dice: Example, If I get the number of 4, All the players standing on number 4 will be out.",0;sleep2 10000; mapannounce "dice","Dice: We will do it again and again until we only have 1 player left on the map.",0;sleep2 10000; mapannounce "dice","Dice: Oh yeah! Before I forget you MUST GO INSIDE THE BOX, because if you're caught standing outside the box you'll be automatically disqualified.",0;sleep2 10000; mapannounce "dice","Dice: That's it.. Now let's play...",0;sleep2 10000; goto L_Start;end; L_Start: if((getareausers("dice",36,63,63,36)) - (getareausers("dice",46,53,53,46)) == 1 ) goto L_Champ; if((getareausers("dice",36,63,63,36)) - (getareausers("dice",46,53,53,46)) == 0) goto L_None; if((getareausers("dice",36,63,63,36)) - (getareausers("dice",46,53,53,46)) > 1) { announce "Dice: . . . . .",0; $@number = rand(1,4);sleep2 10000; announce "Dice: I have a number now. Please go to the box of the number you want.... GO!",0;sleep2 10000; announce "Dice: 5",0;sleep2 5000; announce "Dice: 4",0;sleep2 4000; announce "Dice: 3",0;sleep2 3000; announce "Dice: 2",0;sleep2 2000; announce "Dice: 1",0;sleep2 1000; announce "Dice: Time's up.",0; donpcevent "evnt#1::OnEnable"; announce "Dice: Losing number "+$@number+".",0; if( $@number == 1 ) goto L_Lose1; if( $@number == 2 ) goto L_Lose2; if( $@number == 3 ) goto L_Lose3; if( $@number == 4 ) goto L_Lose4; end;} L_Lose1: monster "dice",37,62,"Detonator",3931,1; monster "dice",42,62,"Detonator",3931,1; monster "dice",37,57,"Detonator",3931,1; monster "dice",42,57,"Detonator",3931,1; sleep2 5000; areawarp "dice",36,63,43,56,"dice",50,66; recovery 3,"dice"; .dEstart = 0; goto L_Start;end; L_Lose2: monster "dice",57,62,"Detonator",3931,1; monster "dice",62,62,"Detonator",3931,1; monster "dice",57,57,"Detonator",3931,1; monster "dice",62,57,"Detonator",3931,1; sleep2 5000; areawarp "dice",56,63,63,56,"dice",50,66; recovery 3,"dice"; .dEstart = 0; goto L_Start;end; L_Lose3: monster "dice",57,42,"Detonator",3931,1; monster "dice",62,42,"Detonator",3931,1; monster "dice",57,37,"Detonator",3931,1; monster "dice",62,37,"Detonator",3931,1; sleep2 5000; areawarp "dice",56,43,63,36,"dice",50,66; recovery 3,"dice"; .dEstart = 0; goto L_Start;end; L_Lose4: monster "dice",37,42,"Detonator",3931,1; monster "dice",42,42,"Detonator",3931,1; monster "dice",37,37,"Detonator",3931,1; monster "dice",42,37,"Detonator",3931,1; sleep2 5000; areawarp "dice",36,43,43,36,"dice",50,66; recovery 3,"dice"; .dEstart = 0; goto L_Start;end; L_Champ: mapannounce "dice","Dice: We have a winner. "+.player$+" wins the Dice Event.",0; getitem 505,10,.winner$; mapannounce "dice","Dice: Thank you for playing the Dice Event.",0; sleep2 2000; areawarp "dice",28,71,71,64,"prontera",156,182; areawarp "dice",71,63,64,28,"prontera",156,182; areawarp "dice",63,28,28,35,"prontera",156,182; areawarp "dice",28,36,34,63,"prontera",156,182; areawarp "dice",36,63,43,56,"prontera",156,182; areawarp "dice",44,63,55,56,"prontera",156,182; areawarp "dice",56,63,63,56,"prontera",156,182; areawarp "dice",63,55,56,44,"prontera",156,182; areawarp "dice",63,43,56,36,"prontera",156,182; areawarp "dice",55,36,44,43,"prontera",156,182; areawarp "dice",43,36,36,43,"prontera",156,182; areawarp "dice",36,44,43,55,"prontera",156,182; end; L_None: announce "No One Wins the Dice Event. Thank you for playing this Event.",0; sleep2 2000; areawarp "dice",28,71,71,64,"prontera",156,182; areawarp "dice",71,63,64,28,"prontera",156,182; areawarp "dice",63,28,28,35,"prontera",156,182; areawarp "dice",28,36,34,63,"prontera",156,182; areawarp "dice",36,63,43,56,"prontera",156,182; areawarp "dice",44,63,55,56,"prontera",156,182; areawarp "dice",56,63,63,56,"prontera",156,182; areawarp "dice",63,55,56,44,"prontera",156,182; areawarp "dice",63,43,56,36,"prontera",156,182; areawarp "dice",55,36,44,43,"prontera",156,182; areawarp "dice",43,36,36,43,"prontera",156,182; areawarp "dice",36,44,43,55,"prontera",156,182; end; OnInit: .gmsetting = 60; // in which level the GMs can control this event ? .seconds = 1000; // for debug purpose only, how many mili-second = 1 second ? .player$ = 0; .winner$ = 0; .round = 0;} - script evnt#1 -1,{ OnEnable:areawarp "dice",44,63,55,56,"dice",50,66;areawarp "dice",63,55,56,44,"dice",66,48;areawarp "dice",55,36,44,43,"dice",49,33;areawarp "dice",36,44,43,55,"dice",33,50;end;} // -- Mapflagsdice mapflag nowarpdice mapflag nowarptodice mapflag noteleportdice mapflag nosavedice mapflag nomemodice mapflag nobranchdice mapflag nolootdice mapflag noskilldice mapflag nopenalty
And the map is this :
Here's what I want to this one. The players who want to join the event will be warped to this map. When the event start the NPC will pick a number from 1 to 4. and once the NPC picked a number all the players that are inside the box will not be able to get out that by setting the setcell (please inclue that as well, dont know how to do it.) and after that an explosive monster will appear inside the box to kill the players that are standing on the selected number. And those who are standing outside the box will be disqualified and they will be teleported in the Dead Player Area as well.
Once the players are dead they will be teleported to the Dead player Area automatically and the game will begin again until one player left in the Playing Area.
The last player standing in the Playing Area will get a prize automatically. And after that all the players will be warp back in prontera.
*************************************************
On the script above, the thing that is happening is, the player who enters last will receive the prize even if that player was already been killed and sent to the Dead Player Area. this is not what I want.
Can you please help me fix this script?