Jump to content
  • 0

Coma on melee only.


rqueen

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

		case SC_COMA: //Coma. Sends a char to 1HP. If val2, do not zap sp
			status_zap(bl, status->hp-1, val2?0:status->sp);
			return 1;
			break;

 

 

So yeah, as it stands now, certain skills - i.e; Soul Breaker, Shield Boomerang, Acid Terror, etc. can proc the Coma status. This becomes terribly op in our high rate, no delay server, so I'd like to modify it so that it only procs on normal melee attacks, as in *hold click*, just to clarify.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

 

Thanks! But *IF* I wanted to edit it via source, would you happen to know how?

 

skill.c  inside int skill_additional_effect{.. } ,try to find  and replace with

 

        if( sd && sd->special_state.bonus_coma && skill_id==0 )        {            rate  = sd->weapon_coma_ele[tstatus->def_ele];            rate += sd->weapon_coma_race[tstatus->race];            rate += sd->weapon_coma_race[tstatus->mode&MD_BOSS?RC_BOSS:RC_NONBOSS];            if (rate)                status_change_start(bl, SC_COMA, rate, 0, 0, 0, 0, 0, 0);        }

 

Hi, I tried it out. I'm getting this error:

skill.c:1234:45: error: âskill_idâ undeclared (first use in this function)
skill.c:1234:45: note: each undeclared identifier is reported only once for each function it appears in

 

 

in EA is  skillid

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can just adjust this through db/re/item_db,txt

try

bonus3 bWeaponComaRace,RC_NonBoss,500,ATF_SHORT; 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Thanks! But *IF* I wanted to edit it via source, would you happen to know how?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

Thanks! But *IF* I wanted to edit it via source, would you happen to know how?

 

skill.c  inside int skill_additional_effect{.. } ,try to find  and replace with

 

if( sd && sd->special_state.bonus_coma && skill_id==0 ) {
    rate = sd->weapon_coma_ele[tstatus->def_ele];             
    rate += sd->weapon_coma_race[tstatus->race];             
    rate += sd->weapon_coma_race[tstatus->mode&MD_BOSS?RC_BOSS:RC_NONBOSS];             
    if (rate)                 
        status_change_start(bl, SC_COMA, rate, 0, 0, 0, 0, 0, 0);         
}
Edited by Patskie
Change to code
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Thanks! But *IF* I wanted to edit it via source, would you happen to know how?

 

skill.c  inside int skill_additional_effect{.. } ,try to find  and replace with

 

        if( sd && sd->special_state.bonus_coma && skill_id==0 )        {            rate  = sd->weapon_coma_ele[tstatus->def_ele];            rate += sd->weapon_coma_race[tstatus->race];            rate += sd->weapon_coma_race[tstatus->mode&MD_BOSS?RC_BOSS:RC_NONBOSS];            if (rate)                status_change_start(bl, SC_COMA, rate, 0, 0, 0, 0, 0, 0);        }

 

Hi, I tried it out. I'm getting this error:
skill.c:1234:45: error: âskill_idâ undeclared (first use in this function)
skill.c:1234:45: note: each undeclared identifier is reported only once for each function it appears in

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Thanks!

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