Jump to content
  • 0

Boss / MVP Time attack script


erick26

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   0
  • Joined:  02/08/21
  • Last Seen:  

Hi everyone,

I was wondering how to make this script to summon the next round once all the mvp are killed and per round will summon 2 mvp monsters and will have 1 timer also for the whole event.

What currently happening is MVP's are getting doubled each time.

pvp_2vs2,40,18,4	script	BTA	736,{
	if (getgmlevel() == 99) goto BTA_Admin;
	mes "[ BTA ]";
	mes "Hello " + strcharinfo(0) + ", You dont have the power to command me.";
	mes "Go away you weakling";
	close;
	
BTA_Admin:
	mes "[ BTA ]";
	mes "Hello " + strcharinfo(0) + ", what do you want to do?";
	menu "Begin The Event",startbtaevent,"Kill MVP(s)",endBTA;
		
	startbtaevent:
		next;
		mes "[ BTA ]";
		mes "All monster(s) have been summoned";
		close2;
		goto Round1;
	
	Round1:	
		mapannounce "pvp_2vs2","Boss Time Attack: Orc Hero in 5.",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 4",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 3",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 2",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 1",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: GO!",0;
		sleep2 1000;
		set .MOBStartTick, gettimetick(2);
		set .MOBKillTime, 0;
		monster "pvp_2vs2",40,33,"BTA Event",1159,1,"BTA::OnMVPKilled";
		monster "pvp_2vs2",40,46,"BTA Event",1087,1,"BTA::OnMVPKilled";
		end;
	
	Round2:	
		mapannounce "pvp_2vs2","Boss Time Attack: Atroce in 5.",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 4",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 3",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 2",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 1",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: GO!",0;
		sleep2 1000;
		set .MOBStartTick, gettimetick(2);
		set .MOBKillTime, 0;
		monster "pvp_2vs2",40,33,"BTA Event",1112,1,"BTA::OnMVPKilled2";
		monster "pvp_2vs2",40,46,"BTA Event",1147,1,"BTA::OnMVPKilled2";
		end;
		
	Round3:
		mapannounce "pvp_2vs2","Boss Time Attack: RSX-0806 in 5.",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 4",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 3",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 2",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: 1",0;
		sleep2 1500;
		mapannounce "pvp_2vs2","Boss Time Attack: GO!",0;
		sleep2 1000;
		set .MOBStartTick, gettimetick(2);
		set .MOBKillTime, 0;
		monster "pvp_2vs2",40,33,"BTA Event",1190,1,"BTA::OnMVPKilled3";
		monster "pvp_2vs2",40,46,"BTA Event",1038,1,"BTA::OnMVPKilled3";
		end;



OnMVPKilled:
	set .MOBKillTime, gettimetick(2) - .MOBStartTick;
		mapannounce "pvp_2vs2","Boss Time Attack: Time " + (.MOBKillTime /60)+ "min " + (.MOBKillTime % 60) + "sec",0;
		sleep2 3000;
		goto Round2;
	end;

OnMVPKilled2:
	set .MOBKillTime, gettimetick(2) - .MOBStartTick;
		mapannounce "pvp_2vs2","Boss Time Attack: Time " + (.MOBKillTime /60)+ "min " + (.MOBKillTime % 60) + "sec",0;
		sleep2 3000;
		goto Round3;
	end;

OnMVPKilled3:
	set .MOBKillTime, gettimetick(2) - .MOBStartTick;
		mapannounce "pvp_2vs2","Boss Time Attack: Time " + (.MOBKillTime /60)+ "min " + (.MOBKillTime % 60) + "sec",0;
	end;	

endBTA:
		next;
		mes "[ BTA ]";
		mes "All monster(s) have been erase";
		killmonster "pvp_2vs2","All";
		close;
	}
Edited by erick26
title update and body of message
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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