Jump to content
  • 0

Feint Bomb inside Land Protector


Question

Posted

how can i disable feint bomb while inside the land protector example when a shadow chaser feint bomb inside the area of land protector the skill feint bomb will be "Skill is Failed"

5 answers to this question

Recommended Posts

Posted

there is a part from skill.c that checks cells for land protector,

copy that and modify it to work for feint bomb

then clif_displaymessage(sd->fd,"skill has failed.");

Posted (edited)

try this:

 

index: src/map/skill.c

case SC_FEINTBOMB:
if( map_getcell(src->m, x, y, CELL_CHKLANDPROTECTOR) ) {
                clif_skill_fail(sd,skill_id,USESKILL_FAIL,0);
                return 0;
}
else {
        clif_skill_nodamage(src,src,skill_id,skill_lv,1);
        skill_unitsetting(src,skill_id,skill_lv,x,y,0); // Set bomb on current Position
        if( skill_blown(src,src,6,unit_getdir(src),0) )
            skill_castend_nodamage_id(src,src,TF_HIDING,1,tick,0);
}
break;
 

don't forget to recompile

Edited by chowking
Posted

not working



>..\src\map\skill.c(10231): warning C4013: 'map_getcell' undefined; assuming extern returning int
1>..\src\map\skill.c(10232): warning C4013: 'clif_skill_fail' undefined; assuming extern returning int
1>..\src\map\skill.c(10236): warning C4013: 'clif_skill_nodamage' undefined; assuming extern returning int

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