Jump to content
  • 0

how prevent "Triple Attack of Monk" hitting on Emperium via Normal Attack


Question

Posted (edited)

Can anyone help me how prevent "Triple Attack of Monk" hitting on Emperium via Normal Attack. ( Only inside SIEGE/WOE castles )

Edited by Noire

3 answers to this question

Recommended Posts

Posted (edited)

this is kinda late but.... 

 

 

In rathena/src/map/battle.c

Find:

if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0) {

Replace the whole code section with:

if(sd && (skillv = pc_checkskill(sd,MO_TRIPLEATTACK)) > 0 && 
	!(t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->class_ == MOBID_EMPERIUM) ) {
    int triple_rate= 30 - skillv; //Base Rate
    if (sc && sc->data[SC_SKILLRATE_UP] && sc->data[SC_SKILLRATE_UP]->val1 == MO_TRIPLEATTACK) {
        triple_rate+= triple_rate*(sc->data[SC_SKILLRATE_UP]->val2)/100;
        status_change_end(src, SC_SKILLRATE_UP, INVALID_TIMER);
    }
    if (rnd()%100 < triple_rate) {
		if( skill_attack(BF_WEAPON,src,src,target,MO_TRIPLEATTACK,skillv,tick,0) )
            return ATK_DEF;
            return ATK_MISS;
    }
}

this would supposedly cancel the chance for doing a "triple attack" when attacking emp, haven't tested this yet though :),

Edited by chowking
Posted

Im a noob at all this but I'm trying to learn. Can you tell me where I can find rathena/src/map/battle.c for my server? Or where I can find the skill list to edit it? I think the server is not on rAthena. Where can I find this if it's on something else? Please and thank you.

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