Something to modify.. please help

daim

New member
Messages
130
Points
0
Hi all

i would like to add another code similiar as this 

ATK_ADDRATE(map_flag_gvg(src->m)?25:100); //+25% dmg on woe/+100% dmg on nonwoe
what i want try to do is add check if player equip certain weapon id and it  will do the damage % cap like above code. Let say if the player using infiltrator item id 1267, it will give atk_addrate 25%. how can i accomplish this?

thanks

 
Anyone can help me with this? For your info that code is under spirit assasin, which i would like to modify if user wear INFILTRATOR then the bonus only will be 25% instead 100%

 
@@daim

Original Code

ATK_ADDRATE(map_flag_gvg(src->m)?25:100); //+25% dmg on woe/+100% dmg on nonwoe
Change to this

ATK_ADDRATE(map_flag_gvg(src->m)?25:25); //+25% dmg on woe/+100% dmg on nonwoe
if you want to reduce it, just change the value 25:25

BTW as you can see
25:100 is the percent in boosting the sonic blow when soul link
25 for War of Emperium

100 for PVP
and already mentioned in the comment line //+25% dmg on woe/+100% dmg on nonwoe

 
Last edited by a moderator:
@@daim

Original Code

ATK_ADDRATE(map_flag_gvg(src->m)?25:100); //+25% dmg on woe/+100% dmg on nonwoe
Change to this

ATK_ADDRATE(map_flag_gvg(src->m)?25:25); //+25% dmg on woe/+100% dmg on nonwoe
if you want to reduce it, just change the value 25:25

BTW as you can see

25:100 is the percent in boosting the sonic blow when soul link

25 for War of Emperium

100 for PVP

and already mentioned in the comment line //+25% dmg on woe/+100% dmg on nonwoe
Hi thanks,

But i would like the modifier based on weapon they using sir.

Anyone can help?

thanks.

 
Back
Top