• 0
Sign in to follow this  
luizragna

How i do make a invencible mob?

Question

Hello everyone, How do I make this unit invincible?

payon,172,218,4	script	monstertest	52,{
		monster "payon",167,215,"Bigfoot (Weakened)",1060,.amount,strnpcinfo(0)+"::OnDead";
		for (.@i = 0; .@i < .amount; .@i++) {
		.mid = [email protected][.@i];
		setunitdata .mid,UMOB_MAXHP,10000;
		setunitdata .mid,UMOB_ATKMIN,10000;
		setunitdata .mid,UMOB_ATKMAX,21000;
		setunitdata .mid,UMOB_MATKMIN,10000;
		setunitdata .mid,UMOB_MATKMAX,21000;
		setunitdata .mid,UMOB_HIT,10000;
		setunitdata .mid,UMOB_ATKRANGE,5;
		setunitdata .mid,UMOB_ADELAY,100;
		getunitdata .mid,.@param;
		setunitdata .mid,UMOB_HP,.@param[UMOB_MAXHP];
		}
OnDead:
end;
		
OnInit:
	set .amount,3;
	end;
}

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
UMOB_DMGIMMUNE
  • Like 1

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, Stolao said:
UMOB_DMGIMMUNE

In case, I can not attack mob.

I want to attack mob and he gets 0 damage.

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
57 minutes ago, luizragna said:

In case, I can not attack mob.

I want to attack mob and he gets 0 damage.

Set defense to max.. Wont get 0 but only 1.. 

I never tested it.. But it should work

Edited by pajodex

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, luizragna said:

I want to attack mob and he gets 0 damage.

So it would be like every attack will miss considered as 0 damage?

Using setunitdata, you can try to alter the mob mode to MD_SKILL_IMMUNE so skills won't affect it and set perfect dodge to 100 dodge normal attacks.

Share this post


Link to post
Share on other sites
  • 0

There's also that invincible spell:

1929,Great Demon [email protected]_INVINCIBLE,idle,685,1,10000,1000,60000,no,self,always,0,,,,,,,19
1929,Great Demon [email protected]_INVINCIBLE,chase,685,1,10000,1000,60000,no,self,always,0,,,,,,,19
1929,Great Demon [email protected]_INVINCIBLE,attack,685,1,10000,1000,60000,no,self,always,0,,,,,,,19

Or just make the monster cast NPC_ALLHEAL when wounded.

Usually plant mode (all the MD_IGNORE bitsets) and sufficient HP should really do the trick though. That's how they do it on official servers too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this