Jump to content
  • 0

Need help > Last Man Standing Script


mikemike

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

anyone can help me to fix my LMS script ? bcoz when we're going to the LMS map. all players can get the Winning prizes they're only click the mr.banker.. how does it happens? how to fix it ? before they click it need to be finish first the fight?

 

 

//*--kaiGAMING LMS TriggerScript--*//

-	script	LMS#disable	-1,{

OnInit:
disablenpc "Mr. Banker";
disablenpc "All Job Manager";
end;
}

sec_pri,27,38,4	script	LMS Trigger	106,{

if (getgmlevel() >= 99) goto LMS_Admin;
	mes "[Minion]";
	mes "Hello " + strcharinfo(0) + ", my master is busy.";
	mes "*sigh*";
	close;

LMS_Admin:
	mes "[LMS Trigger]";
	mes "Hello " + strcharinfo(0) + ", would you like me to call my Boss?";
	mes "He is the only one who can start it!";
	menu "Start Event",startlmsevent2,"No Thanks",leave;
	startlmsevent2:
		next;
		mes "[LMS Trigger]";
		mes "Ok, I'll call him this instant.";
		close2;
		goto startlmsevent;


leave:
		next;
		mes "[LMS Trigger]";
		mes "Ok " + strcharinfo(0) +", nice seeing you.";
		close;

OnClock0000:
OnClock0100:
OnClock0300:
OnClock0500:
OnClock0700:
OnClock0900:
OnClock1100:
OnClock1300:
OnClock1500:
OnClock1700:
OnClock1900:
OnClock2100:
OnClock2300:// 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;
pvpoff "poring_c01";
announce "Mr. Manager: Those who want to play, please proceed to the middle of maintown and Register.",0;
sleep2 10000;
announce "Mr. Manager: After 1 Minute the Registration will close.",0;
sleep2 10000;
announce "Mr. Manager: Please go to Middle in maintown and Register now if you want to join.",0;
enablenpc "All Job Manager";
initnpctimer;
end;

OnTimer30000:
announce "Mr. Manager: Last 30 seconds.",0;
sleep2 5000;
announce "Mr. Manager: If you want to join please Register Middle in maintown.",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 "Mr. Banker::OnEnable";
stopnpctimer;
end;
}
//---------All Job Registration---------------
caspen,140,217,5	script	All Job Manager	106,{
OnTouch:
if(BaseLevel < 99) goto leave;
mes "[Mr. Manager]";
mes "Hello What can I do for you?";
if(BaseLevel >= 99)
{
mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
warp "poring_c01",103,98;
close;
}
else
{
mes "You have to be level 99.!";
close;
}
what:
mes "[Mr. Manager]";
mes "LMS is also known as Last Man Standing Event";
next;
mes "[Mr. Manager]";
mes "LMS is also like a PvP.";
mes "The only difference is at LMS you will get 20 Badges if you are the Last Man Standing at the arena.";
next;
mes "[Mr. Manager]";
mes "That's all";
close;
leave:
mes "[Mr. Manager]";
mes "I hope you will register next time";
close;


}

//--------------------------

//--------------------------
poring_c01,104,109,4	script	Mr. Banker	56,{

mes "[Banker]";
mes "Congrats. You've won.";
next;
announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;
getitem 7828,20;  // Change This item id to what ever you want . item id,amount
dispbottom "You won 20 Badges";
mes "You will return now";
warp "prontera",156,181;
disablenpc "Mr. Banker";
close;
end;
OnEnable:
pvpoff "poring_c01";
mapannounce "poring_c01","Mr. Manager:The Last Man Standing Event will start shortly",0;
sleep2 10000;
mapannounce "poring_c01","Mr. Manager:But before we start this is just a few reminders..",0;
sleep2 10000;
mapannounce "poring_c01","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
sleep2 10000;
mapannounce "poring_c01","Mr. Manager: Only the Last Man Standing will win this event!!",0;
sleep2 10000;
mapannounce "poring_c01","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
sleep2 10000;
goto L_Start;
end;
L_Start:
if(getmapusers("poring_c01") == 1) goto L_Champ;
if(getmapusers("poring_c01") == 0) goto L_None;
if(getmapusers("poring_c01") > 1) {
mapannounce "poring_c01","Mr. Manager: Get ready at the count of 5 we will start!....",0;
sleep2 10000;
mapannounce "poring_c01","Mr. Manager: 5",0;
sleep2 5000;
mapannounce "poring_c01","Mr. Manager: 4",0;
sleep2 4000;
mapannounce "poring_c01","Mr. Manager: 3",0;
sleep2 3000;
mapannounce "poring_c01","Mr. Manager: 2",0;
sleep2 2000;
mapannounce "poring_c01","Mr. Manager: 1",0;
sleep2 1000;
pvpon "poring_c01";
goto timer;
end;
}
timer:
initnpctimer;
end;

OnTimer1000:
end;

OnTimer1100:
if(getmapusers("poring_c01") == 1) goto L_Champ;
if(getmapusers("poring_c01") > 2) goto timer;
if(getmapusers("poring_c01") == 2) goto champ;
stopnpctimer;
end;

champ:
announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
sleep2 10000;
if(getmapusers("poring_c01") == 1) goto L_Champ;
if(getmapusers("poring_c01") > 1) goto timer;
end;

L_Champ:
mapannounce "poring_c01","Mr. Banker: Please talk to me to get your prize..",2500000;
pvpoff "poring_c01";
enablenpc "Mr. Banker";
end;

L_None:
disablenpc "Banker";
pvpoff "poring_c01";
end;
}
//----- Die = warp prt -----
-	script	Killa_warp	-1,{

OnPCDieEvent:
	getmapxy(.@map$,.@x,.@y,0);
	if(.@map$=="poring_c01")
	{
		set #kill_point, 0;
		announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
		warp "prontera",156,181;
		sleep2 1000;
		atcommand "@alive";
		end;
	}
OnPCKillEvent:
	getmapxy(.@map$,.@x,.@y,0);
	if(.@map$=="poring_c01")
	{
	set #kill_point,#kill_point+1;
	if ( #kill_point % 4 == 0) {
	getitem 7828, 5;
	end;
	}
	}
}


// == Mapflags
poring_c01	mapflag	nowarp
poring_c01	mapflag	nowarpto
poring_c01	mapflag	noteleport
poring_c01	mapflag	nosave
poring_c01	mapflag	nomemo
poring_c01	mapflag	nobranch
poring_c01	mapflag	pvp_noparty
poring_c01	mapflag	restricted	1
poring_c01	mapflag	pvp_noguild 

 

 

 
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

Posted · Hidden by Capuche, September 8, 2013 - No reason given
Hidden by Capuche, September 8, 2013 - No reason given

bump 

Link to comment

  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

-	script	LMS#disable	-1,{

OnInit:
disablenpc "Mr. Banker";
disablenpc "All Job Manager";
end;
}

-	script	LMS	-1,{

OnClock0310:
OnClock0610:
OnClock0910:
OnClock1210:
OnClock1510:
OnClock1810:
OnClock2110:
OnClock2310:

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 register.",0;
sleep2 10000;
announce "Mr. Manager: After 1 Minute the Registration will close.",0;
sleep2 10000;
announce "Mr. Manager: Please go to Prontera and Register now if you want to join.",0;
enablenpc "All Job Manager";
initnpctimer;
end;

OnTimer30000:
announce "Mr. Manager: Last 30 seconds.",0;
sleep2 5000;
announce "Mr. Manager: If you want to join please Register 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 "Mr. Banker::OnEnable";
stopnpctimer;
end;
}
//---------All Job Registration---------------
prontera,155,169,5	script	All Job Manager	106,{

mes "[Mr. Manager]";
mes "Hello What can I do for you?";
next;
menu "Register",-,"What is LMS?",what,"Leave",leave;
next;
mes "[Mr. Manager]";
mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
warp "quiz_02",264,343;
end;
what:
mes "[Mr. Manager]";
mes "LMS is also known as Last Man Standing Event";
next;
mes "[Mr. Manager]";
mes "LMS is also like a PvP.";
next;
mes "[Mr. Manager]";
mes "That's all";
close;
leave:
mes "[Mr. Manager]";
mes "I hope you will register next time";
close;


}

//--------------------------

//--------------------------
guild_vs1,50,51,6	script	Mr. Banker	56,{

mes "[Banker]";
mes "Congrats. You've won.";
next;
announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;
getitem item_id, amount; // Change This item id to what ever you want . item id,amount
set class_s,class_s+8;
mes "You will return now";
warp "prontera",0,0;
disablenpc "Mr. Banker";
close;
end;

OnEnable:
pvpoff "guild_vs1";
mapannounce "quiz_02","Mr. Manager:The Last Man Standing Event will start shortly",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager:But before we start this is just a few reminders..",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager: Only the Last Man Standing will win this event!!",0;
sleep2 10000;
mapannounce "quiz_02","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
areawarp "quiz_02",252,357,275,334,"guild_vs1",0,0;
sleep2 10000;
goto L_Start;
end;
L_Start:
if(getmapusers("guild_vs1") == 1) { goto L_nocontest;
} else if(getmapusers("guild_vs1") == 0) { goto L_None;
} else {
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") == 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.. Im in the middle",0;
pvpoff "guild_vs1";
enablenpc "Mr. Banker";
end;

L_None:
disablenpc "Banker";
pvpoff "guild_vs1";
end;

L_nocontest:
mapannounce "guild_vs1","Since only you joined, there will be no event. BUT you will be given 50 zeRO points!",0;
enablenpc "Mr. Banker";
end;
}
//----- Die = warp prt -----
-	script	Killa_warp	-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",0,0;
		end;
	}
	end;
}


// == Mapflags
guild_vs1	mapflag	nowarp
guild_vs1	mapflag	nowarpto
guild_vs1	mapflag	noteleport
guild_vs1	mapflag	nosave
guild_vs1	mapflag	nomemo
guild_vs1	mapflag	nobranch
guild_vs1	mapflag	pvp_noparty
guild_vs1	mapflag	restricted	1
guild_vs1	mapflag	nocommand	90
quiz_02	mapflag	nowarp
quiz_02	mapflag	nowarpto
quiz_02	mapflag	noteleport
quiz_02	mapflag	nosave
quiz_02	mapflag	nomemo
quiz_02	mapflag	nobranch
quiz_02	mapflag	pvp_noparty
quiz_02	mapflag	restricted	1
quiz_02	mapflag	nocommand	90

try this one

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...