Jump to content
  • 0

auto-warg src edit


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  35
  • Reputation:   1
  • Joined:  10/22/20
  • Last Seen:  

bump on this,

how can i adjust the auto warg damage?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Your ((((LUK Stat x 10) / 3)+1)/1000)=%.

Ex: 99x10=990/3=330+1=331/1000=.331=33.1%

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