Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script LMS#disable -1,{
- OnInit:
- disablenpc "Mr. Banker";
- disablenpc "All Job Manager";
- end;
- }
- - script LMS -1,{
- OnClock0100:
- OnClock0400:
- OnClock0700:
- OnClock1000:
- OnClock1300:
- OnClock1600:
- OnClock1900:
- OnClock2200:
- startlmsevent:
- announce "LMS: The Last Man Standing event will be starting shortly.",0;
- sleep2 10000;
- announce "LMS: Those who want to play, please proceed to Prontera and Register.",0;
- sleep2 10000;
- announce "LMS: After 1 Minute the Registration will close.",0;
- sleep2 10000;
- announce "LMS: Please go to Prontera and Register now if you want to join.",0;
- enablenpc "All Job Manager";
- initnpctimer;
- end;
- OnTimer30000:
- announce "LMS: Last 30 seconds.",0;
- sleep2 5000;
- announce "LMS: If you want to join please Register in Prontera.",0;
- end;
- OnTimer50000:
- announce "LMS: Last 10 seconds.",0;
- end;
- OnTimer55000:
- announce "LMS: 5.",0;
- end;
- OnTimer56000:
- announce "LMS: 4.",0;
- end;
- OnTimer57000:
- announce "LMS: 3.",0;
- end;
- OnTimer58000:
- announce "LMS: 2.",0;
- end;
- OnTimer59000:
- announce "LMS: 1.",0;
- end;
- OnTimer60000:
- announce "LMS: Time's up.",0;
- end;
- OnTimer61000:
- disablenpc "All Job Manager";
- donpcevent "Mr. Banker::OnEnable";
- stopnpctimer;
- end;
- }
- //---------All Job Registration---------------
- umbala,95,153,4 script All Job Manager 106,{
- if( Class == Job_Novice ){ mes "Novice cant join."; close; }
- mes "[LMS]";
- mes "Hello What can I do for you?";
- next;
- menu "Register",-,"What is LMS?",what,"Leave",leave;
- next;
- mes "[LMS]";
- mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
- warp "pvp_n_2-5",99,101;
- end;
- what:
- mes "[LMS]";
- mes "LMS is also known as Last Man Standing Event";
- next;
- mes "[LMS]";
- mes "LMS is also like a PvP.";
- mes "The only difference is at LMS you will get 5pcs. of Poring Coins if you are the Last Man Standing at the arena.";
- next;
- mes "[LMS]";
- mes "That's all";
- close;
- leave:
- mes "[LMS]";
- mes "I hope you will register next time";
- close;
- }
- //--------------------------
- //--------------------------
- pvp_n_2-5,99,100,3 script Mr. Banker 56,{
- mes "[Banker]";
- mes "Congrats. You've won.";
- next;
- announce "LMS: We have a winner! well done "+strcharinfo(0)+".",0;
- getitem 7539, 5;// Change This item id to what ever you want . item id,amount
- dispbottom "5 pcs of Poring Coins";
- mes "You will return now";
- warp "prontera",156,180;
- disablenpc "Mr. Banker";
- close;
- end;
- OnEnable:
- pvpoff "pvp_n_1-5";
- mapannounce "pvp_n_2-5","LMS: The Last Man Standing Event will start shortly",0;
- sleep2 10000;
- mapannounce "pvp_n_2-5","LMS: But before we start this is just a few reminders..",0;
- sleep2 10000;
- mapannounce "pvp_n_2-5","LMS: Using Cloaking , Hiding is strictly not allowed..",0;
- sleep2 10000;
- mapannounce "pvp_n_2-5","LMS: Only the Last Man Standing will win this event!!",0;
- sleep2 10000;
- mapannounce "pvp_n_2-5","LMS: What are we waiting for? Let's Get Ready to Rumble!!...",0;
- sleep2 10000;
- goto L_Start;
- end;
- L_Start:
- if(getmapusers("pvp_n_2-5") == 1) goto L_exit;
- if(getmapusers("pvp_n_2-5") == 0) goto L_None;
- if(getmapusers("pvp_n_2-5") > 1) {
- mapannounce "pvp_n_2-5","LMS: Get ready at the count of 5 we will start!....",0;
- sleep2 10000;
- mapannounce "pvp_n_2-5"," LMS: 5",0;
- sleep2 5000;
- mapannounce "pvp_n_2-5","LMS: 4",0;
- sleep2 4000;
- mapannounce "pvp_n_2-5","LMS: 3",0;
- sleep2 3000;
- mapannounce "pvp_n_2-5","LMS: 2",0;
- sleep2 2000;
- mapannounce "pvp_n_2-5","LMS: 1",0;
- sleep2 1000;
- pvpon "pvp_n_2-5";
- goto timer;
- end;
- }
- timer:
- initnpctimer;
- end;
- OnTimer1000:
- end;
- OnTimer1100:
- if(getmapusers("pvp_n_2-5") == 1) goto L_Champ;
- if(getmapusers("pvp_n_2-5") > 2) goto timer;
- if(getmapusers("pvp_n_2-5") == 2) goto champ;
- stopnpctimer;
- end;
- champ:
- announce "LMS: Last 2 Brave warriors are still alive!",0;
- sleep2 10000;
- if(getmapusers("pvp_n_2-5") == 1) goto L_Champ;
- if(getmapusers("pvp_n_2-5") > 1) goto timer;
- end;
- L_Champ:
- mapannounce "pvp_n_2-5","LMS: Please talk to me to get your prize..",0;
- pvpoff "pvp_n_2-5";
- enablenpc "Mr. Banker";
- end;
- L_None:
- disablenpc "Mr. Banker";
- pvpoff "pvp_n_2-5";
- end;
- L_exit:
- announce "Only 1 Joins LMS",0;
- sleep2 3000;
- announce "I'm not in the mood to play the event",0;
- sleep2 3000;
- announce "The event is over , NO WINNER",0;
- sleep2 3000;
- announce "Tnx for playing",0;
- mapwarp "pvp_n_2-5","prontera",156,180;
- end;
- }
- //----- Die = warp prt -----
- - script Killa_warp -1,{
- OnPCDieEvent:
- getmapxy(.@map$,.@x,.@y,0);
- if(.@map$=="pvp_n_2-5")
- {
- set #kill_point, 0;
- announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
- warp "prontera",156,180;
- end;
- }
- OnPCKillEvent:
- getmapxy(.@map$,.@x,.@y,0);
- if(.@map$=="pvp_n_2-5")
- {
- 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;
- }
- }
- }
- // == Mapflags
- pvp_n_1-5 mapflag nowarp
- pvp_n_1-5 mapflag nowarpto
- pvp_n_1-5 mapflag noteleport
- pvp_n_1-5 mapflag nosave
- pvp_n_1-5 mapflag nomemo
- pvp_n_1-5 mapflag nobranch
- pvp_n_1-5 mapflag pvp_noparty
- pvp_n_1-5 mapflag restricted 1
- pvp_n_1-5 mapflag gvg off
- //pvp_n_1-5 mapflag pvp
- pvp_n_1-5 mapflag nocommand 40
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement