Jump to content
  • 0
johnbond

auto-warg src edit

Question

I would like to ask which of the "warg skills" is used for the "auto-warg" of rangers wherein the warg automatically charges during normal attacks?

2242,0,6,4,0,0x2,1,1,0,no,0,0,0,weapon,0,	RA_WUGDASH,Warg Dash
2243,9,8,1,-1,0,0,5,1,no,0,0,0,weapon,0,	RA_WUGSTRIKE,Warg Strike
2244,9,8,1,-1,0,0,5,1,no,0,0,0,weapon,0,	RA_WUGBITE,Warg Bite

I plan to reduce its chance to auto-warg by less 25%, where and how can I adjust it in SRC?
 

 

Thank you guys! :)

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

src\map\skill.c

					// Automatic trigger of Warg Strike [Jobbie]
					if( pc_iswug(sd) && (sd->status.weapon == W_BOW || sd->status.weapon == W_FIST) && (skill=pc_checkskill(sd,RA_WUGSTRIKE)) > 0 && rnd()%1000 <= sstatus->luk*10/3+1 )
						skill_castend_damage_id(src,bl,RA_WUGSTRIKE,skill,tick,0);
Chance is "sstatus->luk*10/3+1"
Link to comment
Share on other sites

src\map\skill.c

					// Automatic trigger of Warg Strike [Jobbie]
					if( pc_iswug(sd) && (sd->status.weapon == W_BOW || sd->status.weapon == W_FIST) && (skill=pc_checkskill(sd,RA_WUGSTRIKE)) > 0 && rnd()%1000 <= sstatus->luk*10/3+1 )
						skill_castend_damage_id(src,bl,RA_WUGSTRIKE,skill,tick,0);
Chance is "sstatus->luk*10/3+1"

 

 

 

Umm so can you give me an example on how to reduce its chance to auto-attack by -25%?

Thank you my friend. :)

Link to comment
Share on other sites

You just need to change the formula.

sstatus->luk*10/3+1 //Original. At 99 Luk, this gives players a 34% chance to auto-warg.
sstatus->luk*7/3+1 //Edited. At 99 Luk this gives players a 23% Chance to auto-warg. That's essentially a 30% reduction OF 35%.
Link to comment
Share on other sites

 

You just need to change the formula.

sstatus->luk*10/3+1 //Original. At 99 Luk, this gives players a 34% chance to auto-warg.
sstatus->luk*7/3+1 //Edited. At 99 Luk this gives players a 23% Chance to auto-warg. That's essentially a 30% reduction OF 35%.

 

 

How were you able to compute it?

Link to comment
Share on other sites

I mean please elaborate on how this is computed so I can do the computations by myself someday if I wanted to change the chances again.

 

Thank you.

Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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