Meister Posted May 24, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Share Posted May 24, 2012 (edited) Kindly check the attached photo. Edited May 24, 2012 by emong Quote Link to comment Share on other sites More sharing options...
Bahmut Posted May 24, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted May 24, 2012 Could you please post the script where the function "KDR" is defined. Quote Link to comment Share on other sites More sharing options...
Meister Posted May 24, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted May 24, 2012 //Ghost's KDR Algorithm function script KDR_Calc { if(!getarg(1)) { debugmes "Error in KDR function, getarg(1) invalid value"; return 0; } // [Lighta] if(getarg(0) >= getarg(1)){ if(getarg(1)){ set .@i, getarg(0)/getarg(1); if((getarg(0)%getarg(1)) == 0){ return .@i+".00"; } set .@j, (getarg(0)%getarg(1))*100/getarg(1); return .@i+"."+.@j; } else { return getarg(0)+".00"; } } if(getarg(0) < getarg(1)){ if(getarg(0)){ set .@i, (getarg(0)*10)/getarg(1); set .@j, ((getarg(0)*10)%getarg(1))*10/getarg(1); return "0."+.@i +.@j; } else { return "0.00"; } } } here sir.. Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted May 24, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted May 24, 2012 maybe this topic can help you http://rathena.org/board/topic/60024-error-in-kdr-function/ Quote Link to comment Share on other sites More sharing options...
Meister Posted May 24, 2012 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Author Share Posted May 24, 2012 Done. fixed thank you.. Thank you for all of your response.. Quote Link to comment Share on other sites More sharing options...
Question
Meister
Kindly check the attached photo.

Edited by emongLink to comment
Share on other sites
4 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.