Jump to content
  • 0

Edit Landmine [ Renewal ]


Question

Posted

hello,

i want to ask, how do I change Landmine can damage on self like iRO

i was changed skill_unit_db like this

116,0x93, , 0, 1,1000,all, 0x006 //HT_LANDMINE

but nothing happen, but instead disappeared trap

thanks before

4 answers to this question

Recommended Posts

Posted

Search for the 'skill_unitsetting' function in skill.c, locate the case for HT_LANDMINE and change the target to BCT_ALL.

E.g. before:

...
case HT_SHOCKWAVE:
    val1=skilllv*15+10;
case HT_SANDMAN:
case MA_SANDMAN:
case HT_CLAYMORETRAP:
case HT_SKIDTRAP:
case MA_SKIDTRAP:
case HT_LANDMINE:
case MA_LANDMINE:
case HT_ANKLESNARE:
case HT_FLASHER:
...
case RA_ICEBOUNDTRAP:
 if( map_flag_gvg(src->m) || map[src->m].flag.battleground )
	  limit *= 4; // longer trap times in WOE [celest]
 if( battle_config.vs_traps_bctall && map_flag_vs(src->m) && (src->type&battle_config.vs_traps_bctall) )
	  target = BCT_ALL;
 break;

After:

...
case HT_SHOCKWAVE:
    val1=skilllv*15+10;
case HT_SANDMAN:
case MA_SANDMAN:
case HT_CLAYMORETRAP:
case HT_SKIDTRAP:
case MA_SKIDTRAP:
case HT_LANDMINE:
case MA_LANDMINE:
case HT_ANKLESNARE:
case HT_FLASHER:
...
case RA_ICEBOUNDTRAP:
 if( map_flag_gvg(src->m) || map[src->m].flag.battleground )
	  limit *= 4; // longer trap times in WOE [celest]
 if(skillid == HT_LANDMINE || skillid = MA_LANDMINE || battle_config.vs_traps_bctall && map_flag_vs(src->m) && (src->type&battle_config.vs_traps_bctall) )
	  target = BCT_ALL;
 break;

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