luizragna Posted May 15, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 107 Reputation: 28 Joined: 02/12/14 Last Seen: January 9, 2023 Share Posted May 15, 2018 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; } Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted May 15, 2018 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: April 9 Share Posted May 15, 2018 UMOB_DMGIMMUNE 1 Quote Link to comment Share on other sites More sharing options...
0 luizragna Posted May 16, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 107 Reputation: 28 Joined: 02/12/14 Last Seen: January 9, 2023 Author Share Posted May 16, 2018 16 hours ago, Stolao said: UMOB_DMGIMMUNE In case, I can not attack mob. I want to attack mob and he gets 0 damage. Quote Link to comment Share on other sites More sharing options...
0 pajodex Posted May 16, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: Monday at 05:33 PM Share Posted May 16, 2018 (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 May 16, 2018 by pajodex Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted May 16, 2018 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 127 Joined: 04/04/16 Last Seen: Sunday at 02:20 PM Share Posted May 16, 2018 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. Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted May 17, 2018 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 896 Reputation: 248 Joined: 01/30/13 Last Seen: Saturday at 08:29 PM Share Posted May 17, 2018 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. Quote Link to comment Share on other sites More sharing options...
Question
luizragna
Hello everyone, How do I make this unit invincible?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.