Jump to content
  • 0

How to check if MVP is summoned on a map?


Foob

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

As the title says, how to check if MVP mob is summoned on a map?

The script mobcount doesn't count.

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

@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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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