Jump to content
  • 0

How to check if MVP is summoned on a map?


Question

5 answers to this question

Recommended Posts

  • 0
Posted
16 minutes ago, Radian said:

@mobsearch ? or what do you mean by check if the MVP monster is summoned on the map? is it like an announcement that the monster was respawn?

Sorry incomplete question.

Via script cause I'm planning to create a script wherein if an MVP monster is summoned the PVP mapflag will be on. (example below)

mvp_room,0,0	boss_monster	Poring	1002,1,3600000,600000,"#mvp_room::OnMobKilled"

mvp_room,0,0,0	script	#mvp_room	-1,{
OnMobKilled:
	//mapflag pvp disable
end;
}

However, my next problem is that, the checking for the MVP mob once summoned.

By chance, do you have an idea how to do it @Radian?

  • 0
Posted (edited)

The best thing to do with it is to make a label where when the MVP respawns in the map you can use the setmapflag.

Edit: maybe make an event script for it?

-	script	respawn_mvp	FAKE_NPC,{

	switch(rand( getarraysize(.mons$) ) {
		case 1: // monster1 here
		case 2: // monster2 here
	}
	
OnInit:
	setarray .mons$, 1002, 1003;
	end;
}

 

Edited by Radian
  • 0
Posted
1 hour ago, Radian said:

The best thing to do with it is to make a label where when the MVP respawns in the map you can use the setmapflag.

Edit: maybe make an event script for it?


-	script	respawn_mvp	FAKE_NPC,{

	switch(rand( getarraysize(.mons$) ) {
		case 1: // monster1 here
		case 2: // monster2 here
	}
	
OnInit:
	setarray .mons$, 1002, 1003;
	end;
}

 

Not possible via event script. Since I want to use the tomb thus I'm using the normal monster spawn with boss_monster for it. Somehow the missing part is how to check if the mob is alive.

  • 0
Posted (edited)

you can follow the way how lhz mvp are summoned to control the pvp on/off. 

npc/re/mobs/dungeons/lhz_dun.txt

however this will render your convex mirror into useless since monster spawn by script doesn't have the required "boss_monster" flag.

using the permanent monster spawn script like above cant do what you want.

 

Edited by Emistry

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...