Famous Posted February 14, 2013 Posted February 14, 2013 [Error]: Zero range by 653:NPC_EARTHQUAKE, divide per 0 avoided! How to fix this? Quote
Yonko Posted February 15, 2013 Posted February 15, 2013 please check the skill_db info of earthquake i think you make this to 0653,0,8,4,0,0x6,5:7:9:11:13:5:7:9:11:13,10,1,no,0,0x2,0,magic,0, NPC_EARTHQUAKE,Earthquake if i'm wrong maybe on your src.because i encountered that also when change to 0 but when i restore it to normal no more errors of your occurs 1 Quote
Famous Posted February 26, 2013 Author Posted February 26, 2013 I already tried this but still error Quote
Playtester Posted February 26, 2013 Posted February 26, 2013 The damage of earthquake is the divided by the number of players hit by the skill. If there are no players hit by it, there is a division by 0. It's in trunk/src/map/battle.c (line 4157) if (skill_id == NPC_EARTHQUAKE) { //Adds atk2 to the damage, should be influenced by number of hits and skill-ratio, but not mdef reductions. [Skotlex] //Also divide the extra bonuses from atk2 based on the number in range [Kevin] if(mflag>0) ad.damage+= (sstatus->rhw.atk2*skillratio/100)/mflag; else ShowError("Zero range by %d:%s, divide per 0 avoided!\n", skill_id, skill_get_name(skill_id)); } 1 Quote
Famous Posted March 1, 2013 Author Posted March 1, 2013 aa see thanks but how to remove the error? what should I remove from there? Quote
Question
Famous
How to fix this?
6 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.