luizragna Posted May 15, 2018 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
0 luizragna Posted May 16, 2018 Author 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
0 pajodex Posted May 16, 2018 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
0 Technoken Posted May 16, 2018 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
0 Playtester Posted May 17, 2018 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
Question
luizragna
Hello everyone, How do I make this unit invincible?
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.