itsmeyoe Posted November 5, 2016 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
0 Emistry Posted November 5, 2016 Posted November 5, 2016 if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON && tstatus->race!=RC_GHOST) Quote
0 itsmeyoe Posted November 5, 2016 Author 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
0 Scylla Posted November 6, 2016 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
0 itsmeyoe Posted November 7, 2016 Author 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
0 itsmeyoe Posted November 7, 2016 Author 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
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.
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.