Zolly 0 Posted June 17 Share Posted June 17 Hello.I have a big problem with my bosses.I ve set 99% resistance against sword, 2 hand etc. but if the player attacks with fist(no weapon equiped) and has strong against esoterics(which is the needed bonus) , the damage is normal , so the resistances are not taken into account.For example if the player has the wepon equiped he will deal 10,000 damage but if he unequips the weapon he is going to deal 50,000 damage.Is there any way to fix this from source, quest or db(i am using sql)?Thank you. Link to comment Share on other sites More sharing options...
AbeilleTurbulante 3 Posted June 17 Share Posted June 17 Monsters have fist resistance bonus too, just put it to 99%... Link to comment Share on other sites More sharing options...
Zolly 0 Posted June 17 Author Share Posted June 17 This is all i have: Resist_sword Resist_twohand Resist_dagger Resist_bell Resist_fan Resist_bow Resist_fire Resist_magic Resist_wind Resist_poison They re all set to 99 Link to comment Share on other sites More sharing options...
Solution Zolly 0 Posted June 17 Author Solution Share Posted June 17 I solved the problem by checking if the character has a weapon equipped and I set the damage to 0 if he does not have a weapon equipped in char_battle.cpp. Thank you Yakuza. Link to comment Share on other sites More sharing options...
HueHue 0 Posted Monday at 04:14 PM Share Posted Monday at 04:14 PM On 6/17/2024 at 2:17 PM, Zolly said: I solved the problem by checking if the character has a weapon equipped and I set the damage to 0 if he does not have a weapon equipped in char_battle.cpp. Thank you Yakuza. Would you be able to post it here or give a hint where I can find it in char_battle.cpp. Link to comment Share on other sites More sharing options...
Zolly 0 Posted Tuesday at 09:53 PM Author Share Posted Tuesday at 09:53 PM (edited) On 6/24/2024 at 7:14 PM, HueHue said: Would you be able to post it here or give a hint where I can find it in char_battle.cpp. I no longer use that method because it created other problems.Instead, I use a quest check, if the player attacks the boss without an equipped weapon, he is instantly teleported outside of the dungeon.I don't know if it's the best method, but it works for me because I have few bosses with resistances like this. Edited Tuesday at 09:53 PM by Zolly Link to comment Share on other sites More sharing options...
Premium Syreldar 1892 Posted Thursday at 12:41 AM Premium Share Posted Thursday at 12:41 AM (edited) I know that might sound crazy to you, but have you thought about (take a deep breath, it's coming) implementing an actual fist resistance bonus you can use for monsters/characters ? (I know, crazy, right?) Spoiler Like.. I almost had an aneurysm looking at the solution you applied. There are so many guides on how to implement a bonus from scratch.. Edited Thursday at 12:42 AM by Syreldar "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now