Jump to content
  • 0
Sign in to follow this  
daim

Something to modify.. please help

Question

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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%

Share this post


Link to post
Share on other sites
  • 0

@@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

Edited by Zhao Chow

Share this post


Link to post
Share on other sites
  • 0

@@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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.