Jump to content
  • 0

Add race points for players inside left the map..


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

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;
    }
}



 

Edited by Emistry
codebox
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;
			break;
		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;
			break;
		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;
			break;
		case 4:
			initnpctimer;
		default:
			announce "[ Race Manager ] : Congratulation " + strcharinfo(0) + ", You have successfully finish all course you are the "+.winner_count+"th place !!",0;
			getitem 675,1;
			dispbottom "You earned 20 Race Points for being "+.winner_count+"th place.";
			set #racepoints,#racepoints+20;
			warp "prontera",150,150;
			break;
    }
	end;

	OnTimer30000:
		stopnpctimer;
        mapannounce "job_sword1","[ Race Manager ] : We already got our "+.winner_count+" 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;
}

30 seconds after 4th winner, 5th winners still can get the rewards.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 "+.winner_count+"th place !!",0;
        getitem 675,1;
        dispbottom "You earned 20 Race Points for being "+.winner_count+"th place.";
        set #racepoints,#racepoints+20;
        close;
    }
}

try

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

33 minutes ago, Emistry said:

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 "+.winner_count+"th place !!",0;
        getitem 675,1;
        dispbottom "You earned 20 Race Points for being "+.winner_count+"th place.";
        set #racepoints,#racepoints+20;
        close;
    }
}

try

uhmm i always ended up at default: line all my 5 characters,  i need like if the script already count the 4 winners all players who still inside the map will still get race points if they  still finish race for 30 seconds more after that all player who are not unable to finish it will be warp back to maintown.

Edited by Noire
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

thankks emisty!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...