itsmeyoe Posted November 5, 2016 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 54 Reputation: 1 Joined: 05/19/12 Last Seen: March 17, 2023 Share Posted November 5, 2016 (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 November 5, 2016 by Emistry Please use CODEBOX. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted November 5, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 5, 2016 if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON && tstatus->race!=RC_GHOST) Quote Link to comment Share on other sites More sharing options...
0 itsmeyoe Posted November 5, 2016 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 54 Reputation: 1 Joined: 05/19/12 Last Seen: March 17, 2023 Author Share Posted November 5, 2016 (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 November 5, 2016 by Emistry Please use CODEBOX. Quote Link to comment Share on other sites More sharing options...
0 Scylla Posted November 6, 2016 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 374 Reputation: 47 Joined: 03/27/13 Last Seen: 15 hours ago Share Posted November 6, 2016 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. 1 Quote Link to comment Share on other sites More sharing options...
0 itsmeyoe Posted November 7, 2016 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 54 Reputation: 1 Joined: 05/19/12 Last Seen: March 17, 2023 Author Share Posted November 7, 2016 (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 November 7, 2016 by Emistry Please use CODEBOX. Quote Link to comment Share on other sites More sharing options...
0 itsmeyoe Posted November 7, 2016 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 54 Reputation: 1 Joined: 05/19/12 Last Seen: March 17, 2023 Author Share Posted November 7, 2016 (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 November 7, 2016 by Emistry Please use CODEBOX. Quote Link to comment Share on other sites More sharing options...
Question
itsmeyoe
i coded magnus exorcismus like this one, if someone use ghostring & evil druid it will damage you.
original is this
and i made it like this one
or it should be like this?
Thank you for helping me
Edited by EmistryPlease use CODEBOX.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.