Achhandrian Posted September 29, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 51 Reputation: 2 Joined: 07/31/12 Last Seen: September 23, 2020 Share Posted September 29, 2012 ok guys, i really need your help, im searching like crazy and cant find it. Where the hell can i find the formula of atk and matk in the src code to change it ? Quote Link to comment Share on other sites More sharing options...
Cydh Posted September 30, 2012 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted September 30, 2012 map\battle.c Quote Link to comment Share on other sites More sharing options...
Achhandrian Posted September 30, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 51 Reputation: 2 Joined: 07/31/12 Last Seen: September 23, 2020 Author Share Posted September 30, 2012 can you maybe give me the line ? Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 30, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted September 30, 2012 (edited) If not mistaken, it's under line of /*========================================== * Calculates the standard damage of a normal attack assuming it hits, * it calculates nothing extra fancy, is needed for magnum break's WATK_ELEMENT bonus. [skotlex] *------------------------------------------ * Pass damage2 as NULL to not calc it. * Flag values: * &1: Critical hit * &2: Arrow attack * &4: Skill is Magic Crasher * &8: Skip target size adjustment (Extremity Fist?) *&16: Arrow attack but BOW, REVOLVER, RIFLE, SHOTGUN, GATLING or GRENADE type weapon not equipped (i.e. shuriken, kunai and venom knives not affected by DEX) */ Edited September 30, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Cydh Posted September 30, 2012 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted September 30, 2012 find skill do u want to change the formula inside these function. Find use skill name (in db\skill_db.txt) as keyword. Skill that use weapon (too) static struct Damage battle_calc_weapon_attack(struct block_list *src, struct block_list *target, int skill_num, int skill_lv, int wflag){ ... } magic skills struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list *target,int skill_num,int skill_lv,int mflag){ ... } and this is for misc skill attack struct Damage battle_calc_misc_attack(struct block_list *src,struct block_list *target,int skill_num,int skill_lv,int mflag){ ... } Quote Link to comment Share on other sites More sharing options...
Question
Achhandrian
ok guys, i really need your help, im searching like crazy and cant find it.
Where the hell can i find the formula of atk and matk in the src code to change it ?
Link 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.