Jump to content
  • 0

How i do make a invencible mob?


Question

Posted

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 = $@mobid[.@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;
}

 

5 answers to this question

Recommended Posts

  • 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
  • 0
Posted
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.

  • 0
Posted

There's also that invincible spell:

1929,Great Demon Baphomet@NPC_INVINCIBLE,idle,685,1,10000,1000,60000,no,self,always,0,,,,,,,19
1929,Great Demon Baphomet@NPC_INVINCIBLE,chase,685,1,10000,1000,60000,no,self,always,0,,,,,,,19
1929,Great Demon Baphomet@NPC_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.

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