Jump to content
  • 0

Arrow shower does not push traps


Question

Posted

Tried to push ancle snare trap with arrow shower. No effect. I use rathena with commented out renewal mechanics..

Any help?

Also - sorry for my bad english.

6 answers to this question

Recommended Posts

Posted

Actually it's only Ankle snare the one that can not be pushed :/ I guess that's how the official is or at least I read that somewhere.

Well for my preference (not official) If someone knows how to make 'em pushable, all of them, without receiving any damage, would be nice ^_~

Posted

After browsing skill.c I now know how to do it, here it is.

To allow Ankle Snare to be pushed back.

src > map > skill.c

find:


case BL_SKILL:
su = (struct skill_unit *)target;
if( su && su->group && su->group->unit_id == UNT_ANKLESNARE )
return 0; // ankle snare cannot be knocked back
break;

replace / comment with:

/*case BL_SKILL: //[og2]
su = (struct skill_unit *)target;
if( su && su->group && su->group->unit_id == UNT_ANKLESNARE )
return 0; // ankle snare cannot be knocked back
break;
*/

Also to remove certain traps for being damage.

find:

int skill_unit_ondamaged (struct skill_unit *src, struct block_list *bl, int damage, unsigned int tick)

remove in the list below.

switch( sg->unit_id ) {
case UNT_BLASTMINE:
case UNT_SKIDTRAP:
case UNT_LANDMINE:
case UNT_SHOCKWAVE:
case UNT_SANDMAN:
case UNT_ANKLESNARE:
case UNT_FLASHER:
case UNT_CLAYMORETRAP:
case UNT_FREEZINGTRAP:
case UNT_TALKIEBOX:
case UNT_ICEWALL:
case UNT_REVERBERATION:
case UNT_WALLOFTHORN:
src->val1-=damage;
break;
default:
damage = 0;
break;
}
return damage;

To remove, just commend the case of the trap you don't want damaged.

example:

//case UNT_ANKLESNARE:

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