Jump to content
  • 0

can you check my element magnus


itsmeyoe

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   1
  • Joined:  05/19/12
  • Last Seen:  

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.
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   1
  • Joined:  05/19/12
  • Last Seen:  

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.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   1
  • Joined:  05/19/12
  • Last Seen:  


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.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   1
  • Joined:  05/19/12
  • Last Seen:  

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