Jump to content
  • 0

Asura Miss on a 500/120 server


crowmaster

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   18
  • Joined:  11/19/11
  • Last Seen:  

Lol. I made the topic in the wrong section, my bad. Any mods please move this to Source Support, thanks xD

A champ doing asura with 0 dmg/miss/or doesn't even show anything. I already capped the damage to 500k and 6k sp, but sometimes when players stack certain cards and they went asura, miss >:

Using rA revision 19xxx, can't remember lel

These are the codes

battle.c (battle_calc_damage)

if (skill_num == MO_EXTREMITYFIST )
        damage = cap_value(damage,0,500000);
case MO_EXTREMITYFIST: {
                        if(sstatus->sp <= 6000)
                            skillratio += 100 * (7 + sstatus->sp / 10);
                        else
                            skillratio += 100 * (7 + 6000 / 10);
                        status_set_sp(src, 0, 0);
                    }
                    break;

battle.c (battle_calc_attack)

if (skill_num == MO_EXTREMITYFIST && d.damage > 500000) d.damage = 500000; 

Please, anyone?

 

Edited by crowmaster
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

First, comment out your damage cap codes.

Try my code, find this code at battle.cpp:

wd = battle_calc_weapon_final_atk_modifiers(wd, src, target, skill_id, skill_lv);

under that, add this:

// Damage Cap Values here Add below
	if (skill_id == MO_EXTREMITYFIST) 
		wd.damage = cap_value(wd.damage, INT_MIN, 500000); //  capped to 500,000

I've been using that code a long time ago. So far, I haven't encountered any problem yet. 

Edited by pajodex
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   18
  • Joined:  11/19/11
  • Last Seen:  

12 hours ago, pajodex said:

First, comment out your damage cap codes.

Try my code, find this code at battle.cpp:


wd = battle_calc_weapon_final_atk_modifiers(wd, src, target, skill_id, skill_lv);

under that, add this:


// Damage Cap Values here Add below
	if (skill_id == MO_EXTREMITYFIST) 
		wd.damage = cap_value(wd.damage, INT_MIN, 500000); //  capped to 500,000

I've been using that code a long time ago. So far, I haven't encountered any problem yet. 

Alrighty mate, let me try. Thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   18
  • Joined:  11/19/11
  • Last Seen:  

Unfortunately my source doesn't have battle_calc_weapon_attack battle_calc_weapon_final_atk_modifiers >:

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