Famous Posted February 14, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share Posted February 14, 2013 [Error]: Zero range by 653:NPC_EARTHQUAKE, divide per 0 avoided! How to fix this? Quote Link to comment Share on other sites More sharing options...
Yonko Posted February 15, 2013 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Share 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 Link to comment Share on other sites More sharing options...
Famous Posted February 26, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted February 26, 2013 I already tried this but still error Quote Link to comment Share on other sites More sharing options...
Playtester Posted February 26, 2013 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: 1 hour ago Share 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 Link to comment Share on other sites More sharing options...
Famous Posted March 1, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted March 1, 2013 aa see thanks but how to remove the error? what should I remove from there? Quote Link to comment Share on other sites More sharing options...
Erba Posted December 26, 2013 Group: Members Topic Count: 84 Topics Per Day: 0.02 Content Count: 550 Reputation: 9 Joined: 11/06/12 Last Seen: August 14, 2014 Share Posted December 26, 2013 bump Quote Link to comment Share on other sites More sharing options...
Lighta Posted December 26, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted December 26, 2013 comment the else part 1 Quote Link to comment Share on other sites More sharing options...
Question
Famous
How to fix this?
Link to comment
Share on other sites
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.