Can someone add for this script, if the NPC already count the 4 winners i want everybody from the map who is still inside will be warp-out back to prontera and still get some race points excluding the winners.
job_sword1,223,167,4 script Race Prizer 45,1,1,{
switch ( .winner_count++ ) {
case 1:
announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 1st place !!",0;
getitem 7227,1;
dispbottom "You earned 80 Race Points for being first place.";
set #racepoints,#racepoints+80;
warp "prontera",150,150;
close;
case 2:
announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 2nd place !!",0;
getitem 7227,1;
dispbottom "You earned 50 Race Points for being second place.";
set #racepoints,#racepoints+50;
warp "prontera",150,150;
close;
case 3:
announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 3rd place !!",0;
mapannounce "job_sword1","[ Race Manager ] : Hurry up for 4th Place Guys Go go go go !!!",0;
getitem 7227,1;
dispbottom "You earned 35 Race Points for being third place.";
set #racepoints,#racepoints+35;
warp "prontera",150,150;
close;
default:
announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 4th place !!",0;
getitem 675,1;
dispbottom "You earned 20 Race Points for being fourth place.";
set #racepoints,#racepoints+20;
mapannounce "job_sword1","[ Race Manager ] : We already got our 4 winners better luck next time, Race Event is now over warping all back to town those who left inside the map !!",bc_map;
set .winner_count,0;
mapwarp "job_sword1","prontera",150,150;
mapwarp "arena_room","prontera",150,150;
disablenpc "Race Prizer";
disablenpc "RaceGO";
close;
}
}
Question
Noire
Can someone add for this script, if the NPC already count the 4 winners i want everybody from the map who is still inside will be warp-out back to prontera and still get some race points excluding the winners.
job_sword1,223,167,4 script Race Prizer 45,1,1,{ switch ( .winner_count++ ) { case 1: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 1st place !!",0; getitem 7227,1; dispbottom "You earned 80 Race Points for being first place."; set #racepoints,#racepoints+80; warp "prontera",150,150; close; case 2: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 2nd place !!",0; getitem 7227,1; dispbottom "You earned 50 Race Points for being second place."; set #racepoints,#racepoints+50; warp "prontera",150,150; close; case 3: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 3rd place !!",0; mapannounce "job_sword1","[ Race Manager ] : Hurry up for 4th Place Guys Go go go go !!!",0; getitem 7227,1; dispbottom "You earned 35 Race Points for being third place."; set #racepoints,#racepoints+35; warp "prontera",150,150; close; default: announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the 4th place !!",0; getitem 675,1; dispbottom "You earned 20 Race Points for being fourth place."; set #racepoints,#racepoints+20; mapannounce "job_sword1","[ Race Manager ] : We already got our 4 winners better luck next time, Race Event is now over warping all back to town those who left inside the map !!",bc_map; set .winner_count,0; mapwarp "job_sword1","prontera",150,150; mapwarp "arena_room","prontera",150,150; disablenpc "Race Prizer"; disablenpc "RaceGO"; close; } }
codebox
Link to comment
Share on other sites
4 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.