Jump to content
  • 0

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


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

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

Edited by Noire
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


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

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


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/21/13
  • Last Seen:  

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.

Link to comment
Share on other sites


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

when you download the server / use git clone "trunk" folder will be "rathena" what ever the name is the battle.c will always be in the src/map/ location

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