Jump to content
  • 0

help me with this in src =(


Question

12 answers to this question

Recommended Posts

Posted

Can you revert that for me sir? Since I've uploaded my files here? Coz when I tried reverting it, it has 1 error in battle.c and I dont know how to debug it =(

24nnsiv.png

This is the error sir

Posted (edited)

I didn't test, but, try it(It would only work on recent versions, rAthena 15185+):

Open:

src/map/battle.c

Find:

if( sc && sc->data[sC_DEVOTION] && damage > 0 && skill_id != PA_PRESSURE && skill_id != CR_REFLECTSHIELD )
 damage = 0;

Change it to:

if( sc && sc->data[sC_DEVOTION] && damage > 0)
 damage = 0;

Open:

src/map/skill.c

Find:

 if( !sc || (!sc->data[sC_DEVOTION] && skillid != CR_REFLECTSHIELD) )

Change it to:

if( !sc || (!sc->data[sC_DEVOTION] )

Find:

battle_delay_damage(tick, dmg.amotion,bl,src,0,CR_REFLECTSHIELD,0,rdamage,ATK_DEF,0);

Change it to:

battle_delay_damage(tick, dmg.amotion,bl,src,0,0,0,rdamage,ATK_DEF,0);

Find:

if( sc && sc->data[sC_DEVOTION] && skillid != PA_PRESSURE )

Change it to:

if( sc && sc->data[sC_DEVOTION] )

Edited by MarkZD
Posted

Doesn't work, Mark. It has an error.

skill.c: In function âskill_attackâ:

skill.c:2539: error: expected â)â before âstatus_damageâ

skill.c:2544: error: expected expression before â}â token

make[1]: *** [obj_sql/skill.o] Error 1

make[1]: Leaving directory `/eathena/src/map'

make: *** [map_sql] Error 2

[root@elite-ro eathena]#

line 2539: status_fix_damage(src,bl,damage,dmg.dmotion); //Deal damage before knockback to allow stuff like firewall+storm gust combo.

line 2544: }

Please help me sir =(

Sir I've implemented your battle.c and It somehow solves my problem. Here's the new situation after implementing your battle.c

2 pally, 2 champ.

Let: Party1 = pally1 + champ 1

Party2 = pally2 + champ 2

this is what is happening now, assuming that Champ 1 gets a Devotion from his party member (pally1), then, champ2 (wearing Orc Lord Card Armor) also gets devoted by his pally, when Champ1 asura champ2 (who is wearing Orc Lord Card), the champ2's pally died, but the problem is, my pally didn't receive any damage at all.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...