Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script LMS#disable -1,{
- OnInit:
- disablenpc "All Job Manager";
- end;
- }
- - script LMS -1,{
- OnHour01:
- OnHour07:
- OnHour13:
- OnHour20:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon
- goto startlmsevent;
- startlmsevent:
- announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
- sleep2 10000;
- announce "Mr. Manager: Those who want to play, please proceed to Prontera and enter the portal.",0;
- enablenpc "All Job Manager";
- sleep2 10000;
- announce "Mr. Manager: After 1 Minute the portal will close.",0;
- sleep2 10000;
- announce "Mr. Manager: Please go to Prontera and enter the portal now if you want to join. The prize is 200m coin",0;
- sleep2 10000;
- initnpctimer;
- end;
- OnTimer30000:
- announce "Mr. Manager: Last 30 seconds.",0;
- sleep2 10000;
- announce "Mr. Manager: If you want to join please enter the portal in Prontera.",0;
- end;
- OnTimer50000:
- announce "Mr. Manager: Last 10 seconds.",0;
- end;
- OnTimer55000:
- announce "Mr. Manager: 5.",0;
- end;
- OnTimer56000:
- announce "Mr. Manager: 4.",0;
- end;
- OnTimer57000:
- announce "Mr. Manager: 3.",0;
- end;
- OnTimer58000:
- announce "Mr. Manager: 2.",0;
- end;
- OnTimer59000:
- announce "Mr. Manager: 1.",0;
- end;
- OnTimer60000:
- announce "Mr. Manager: Time's up.",0;
- end;
- OnTimer61000:
- disablenpc "All Job Manager";
- donpcevent "lmscheck::OnEnable";
- stopnpctimer;
- end;
- }
- //---------All Job Registration---------------
- prontera,156,173,0 warp All Job Manager 2,2,guild_vs1,0,0
- //--------------------------
- - script lmscheck -1,{
- OnEnable:
- pvpoff "guild_vs1";
- mapannounce "guild_vs1","Mr. Manager:The Last Man Standing Event will start shortly",0;
- sleep2 10000;
- mapannounce "guild_vs1","Mr. Manager:But before we start this is just a few reminders..",0;
- sleep2 10000;
- mapannounce "guild_vs1","Mr. Manager:Using all kinds of skill is allowed..",0;
- sleep2 10000;
- mapannounce "guild_vs1","Mr. Manager: Only the Last Man Standing will win this event!!",0;
- sleep2 10000;
- mapannounce "guild_vs1","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
- sleep2 10000;
- 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 10000;
- mapannounce "guild_vs1","Mr. Manager: 5",0;
- sleep2 5000;
- mapannounce "guild_vs1","Mr. Manager: 4",0;
- sleep2 4000;
- mapannounce "guild_vs1","Mr. Manager: 3",0;
- sleep2 3000;
- mapannounce "guild_vs1","Mr. Manager: 2",0;
- sleep2 2000;
- mapannounce "guild_vs1","Mr. Manager: 1",0;
- sleep2 1000;
- pvpon "guild_vs1";
- goto timer;
- end;
- }
- timer:
- initnpctimer;
- end;
- OnTimer1000:
- end;
- OnTimer1100:
- 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 champ;
- stopnpctimer;
- end;
- champ:
- announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
- sleep2 10000;
- if(getmapusers("guild_vs1") == 1) goto L_Champ;
- if(getmapusers("guild_vs1") > 1) goto timer;
- end;
- L_Champ:
- mapannounce "guild_vs1","Mr. Banker: Please talk to me to get your prize..",0;
- pvpoff "guild_vs1";
- announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;
- getitem 671,2; // Change This item id to what ever you want . item id,amount
- dispbottom "You just won the event";
- mes "You will return now";
- warp "prontera",156,191;
- stopnpctimer;
- end;
- L_None:
- pvpoff "guild_vs1";
- stopnpctimer;
- end;
- }
- //----- Die = warp prt -----
- - script Killa_warp1 -1,{
- 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;
- atcommand "@alive";
- 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;
- }
- }
- }
- // == 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 nocommand 60
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement