Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Feint Bomb inside Land Protector


Myth

Question


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

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"

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  178
  • Reputation:   17
  • Joined:  06/25/12
  • Last Seen:  

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.");

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

specific code?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  178
  • Reputation:   17
  • Joined:  06/25/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  178
  • Reputation:   17
  • Joined:  06/25/12
  • Last Seen:  

then try your other post /heh

 

http://rathena.org/board/topic/85483-land-protector/?hl=%2Bfeint+%2Bbomb\

 

just noticed that our fix was just the same :/

 

i'll do some tests about this (you do some too) if i've got time :)

Edited by chowking
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...