Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script LMS#disable -1,{
- OnInit:
- disablenpc "All Job Manager";
- end;
- }
- //--------------------------
- prontera,155,173,5 script All Job Manager 106,{
- mes "Do You want to join the Last Man Standing Event?";
- switch(select("No:Yes")){
- case 1:
- close;
- break;
- case 2:
- if (.start==0)
- {
- warp "guild_vs1",0,0;
- }
- else
- {
- mes "Sorry You can't join The Last Man Standing even since the game has already begun.";
- close;
- }
- break;
- }
- end;
- OnHour01:
- OnHour07:
- OnHour13:
- OnHour20:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon
- goto startlmsevent;
- startlmsevent:
- enablenpc "All Job Manager";
- announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
- sleep2 3000;
- announce "Mr. Manager: Those who want to play, please proceed to Prontera and talk to the All job Manager.",0;
- sleep2 3000;
- announce "Mr. Manager: After 1 Minute the portal will close.",0;
- sleep2 10000;
- announce "Mr. Manager: Please go to Prontera and talk to the All job Manager now if you want to join. The prize is 200m coin",0;
- sleep2 3000;
- announce "Mr. Manager: Last 30 seconds.",0;
- sleep2 5000;
- announce "Mr. Manager: If you want to join please talk to the All job Manager in Prontera.",0;
- sleep2 5000;
- announce "Mr. Manager: Last 10 seconds.",0;
- sleep2 5000;
- announce "Mr. Manager: 5.",0;
- sleep2 1000;
- announce "Mr. Manager: 4.",0;
- sleep2 1000;
- announce "Mr. Manager: 3.",0;
- sleep2 1000;
- announce "Mr. Manager: 2.",0;
- sleep2 1000;
- announce "Mr. Manager: 1.",0;
- sleep2 1000;
- announce "Mr. Manager: Time's up.",0;
- set .start,1;
- disablenpc "All Job Manager";
- goto L_startevent;
- end;
- L_startevent:
- pvpoff "guild_vs1";
- mapannounce "guild_vs1","Mr. Manager:The Last Man Standing Event will start shortly",0;
- sleep2 3000;
- mapannounce "guild_vs1","Mr. Manager:But before we start this is just a few reminders..",0;
- sleep2 3000;
- mapannounce "guild_vs1","Mr. Manager:Using all kinds of skill is allowed..",0;
- sleep2 3000;
- mapannounce "guild_vs1","Mr. Manager: Only the Last Man Standing will win this event!!",0;
- sleep2 3000;
- mapannounce "guild_vs1","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
- sleep2 3000;
- goto L_Start;
- end;
- L_Start:
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- if(getmapusers("guild_vs1") == 0) goto L_None;
- if(getmapusers("guild_vs1") > 1) {
- mapannounce "guild_vs1","Mr. Manager: Get ready at the count of 5 we will start!....",0;
- sleep2 1000;
- mapannounce "guild_vs1","Mr. Manager: 5",0;
- sleep2 1000;
- mapannounce "guild_vs1","Mr. Manager: 4",0;
- sleep2 1000;
- mapannounce "guild_vs1","Mr. Manager: 3",0;
- sleep2 1000;
- mapannounce "guild_vs1","Mr. Manager: 2",0;
- sleep2 1000;
- mapannounce "guild_vs1","Mr. Manager: 1",0;
- sleep2 1000;
- pvpon "guild_vs1";
- goto timer;
- end;
- }
- timer:
- sleep2 1000;
- if(getmapusers("guild_vs1") == 0) goto L_None;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- if(getmapusers("guild_vs1") > 2) goto timer;
- if(getmapusers("guild_vs1") == 2) goto l_champs;
- end;
- l_champs:
- announce "Mr. Manager: Last 2 Brave warriors are still alive in The Last Man Standing Event!",0;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- sleep2 1000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- if(getmapusers("guild_vs1") > 1) goto timer;
- end;
- L_Champ:
- pvpoff "guild_vs1";
- mapannounce "guild_vs1","Congratulations You are the Last Man Standing",0;
- announce "Mr. Manager: We have a winner! well done "+getvariableofnpc(.lmsplayer$[0], "LMSPC")+"! for Winning the Last Man Standing Event",0;
- atcommand "#item "+getvariableofnpc(.lmsplayer$[0], "LMSPC")+" 671 2";// change 671 to your item number and and change 2 for the ammount
- atcommand "#warp "+getvariableofnpc(.lmsplayer$[0], "LMSPC")+" prontera 156 191";
- disablenpc "All Job Manager";
- set .start,0;
- end;
- L_None:
- announce "No one joined the Last Man Standing Event",0;
- disablenpc "All Job Manager";
- set .start,0;
- pvpoff "guild_vs1";
- end;
- }
- - script LMSPC -1,{
- OnPCLoadMapEvent:
- getmapxy(.@map$,.@x,.@y,0);
- dispbottom "You are now in "+.@map$;
- if(.@map$=="guild_vs1")
- {
- set .@kill_point, 0;
- set .lmsplayer$[ getarraysize( .lmsplayer$ ) ],strcharinfo(0);
- announce ""+strcharinfo(0)+" Joined the Last Man Standing Event",bc_all;
- end;
- }
- end;
- OnPCLogoutEvent:
- OnPCDieEvent:
- getmapxy(.@map$,.@x,.@y,0);
- if(.@map$=="guild_vs1")
- {
- set .@kill_point, 0;
- announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
- warp "prontera",156,191;
- for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){
- if( strcharinfo(0) != .lmsplayer$[.@i] ) continue;
- deletearray .lmsplayer$[.@i],1;
- end;
- }
- }
- end;
- OnPCKillEvent:
- getmapxy(.@map$,.@x,.@y,0);
- if(.@map$=="guild_vs1")
- {
- set .@kill_point,.@kill_point+1;
- if ( #kill_point % 4 == 0) {
- announce ""+strcharinfo(0)+" have made 4 Consecutive Kills!!He will be granted an item",bc_all;
- getitem 673,1;
- end;
- }
- }
- end;
- }
- // == Mapflags
- guild_vs1 mapflag noreturn
- guild_vs1 mapflag noicewall
- guild_vs1 mapflag nowarpto
- guild_vs1 mapflag noteleport
- guild_vs1 mapflag nosave
- guild_vs1 mapflag nomemo
- guild_vs1 mapflag nobranch
- guild_vs1 mapflag pvp_noguild
- guild_vs1 mapflag pvp_noparty
- guild_vs1 mapflag loadevent
- guild_vs1 mapflag nocommand 60
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement