Jump to content
  • 0

can you check my element magnus


Question

Posted (edited)

i coded magnus exorcismus like this one, if someone use ghostring & evil druid it will damage you.

 

original is this

if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON)

and i made it like this one

if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON||RC_GHOST)

or it should be like this?

if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON && tstatus->race!=RC_GHOST)

Thank you for helping me :)

Edited by Emistry
Please use CODEBOX.

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

About snap is this right or wrong? 

case MO_BODYRELOCATION:
if( sc && sc->data[SC_CLOSECONFINE2] || sc->data[SC_ANKLE] || sc->data[SC_SPIDERWEB] ){
clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0);
}

 

if player has been closeconfine/anklesnare/spiderweb he/she can't use snap skill?

Edited by Emistry
Please use CODEBOX.
  • 0
Posted

About snap is this right or wrong? 

case MO_BODYRELOCATION:
if( sc && sc->data[SC_CLOSECONFINE2] || sc->data[SC_ANKLE] || sc->data[SC_SPIDERWEB] ){
clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0);
}

 

if player has been closeconfine/anklesnare/spiderweb he/she can't use snap skill?

 

Next time please make a new topic because this is only for your magnus problem.

 

And yes, It'll fail if there's those 3 are inflicted on the target.

  • Upvote 1
  • 0
Posted (edited)


if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON && tstatus->race!=RC_GHOST 


skill.c: In function 'skill_castend_pos2':

skill.c:11539: warning: suggest parentheses around '&&' within '||'

skill.c:11540: error: 'skillid' undeclared (first use in this function)

skill.c:11540: error: (Each undeclared identifier is reported only once

skill.c:11540: error: for each function it appears in.)

skill.c: In function 'skill_unit_onplace_timer':

skill.c:13298: error: 'RC_GHOST' undeclared (first use in this function)

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

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

make: *** [map] Error 2

Edited by Emistry
Please use CODEBOX.
  • 0
Posted (edited)

Here is the code for demon i don't know how to input the Ghost property


 




case UNT_MAGNUS:
if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON)
break;
skill_attack(BF_MAGIC,ss,&unit->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
break;

Edited by Emistry
Please use CODEBOX.

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