Achhandrian Posted September 29, 2012 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
Achhandrian Posted September 30, 2012 Author Posted September 30, 2012 can you maybe give me the line ? Quote
Bin4ry Posted September 30, 2012 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
Cydh Posted September 30, 2012 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
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 ?
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.