Jump to content
  • 0

How i do make a invencible mob?


luizragna

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

UMOB_DMGIMMUNE
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

16 hours ago, Stolao said:

UMOB_DMGIMMUNE

In case, I can not attack mob.

I want to attack mob and he gets 0 damage.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  800
  • Reputation:   227
  • Joined:  01/30/13
  • Last Seen:  

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.

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