Jump to content

  •  

Mary Magdalene

Member Since 27 Nov 2014
Offline Last Active Nov 15 2016 06:49 AM
-----

Posts I've Made

In Topic: Damage depending on distance

15 September 2015 - 04:39 PM

Why not makes this skill similar of Blitz Beat? (Autocast)
 

In skill.c

switch(skill_id) {		case 0: { // Normal attacks (no skill used)			if( attack_type&BF_SKILL )				break; // If a normal attack is a skill, it's splash damage. [Inkfish]			if(sd) {				// Automatic trigger of Blitz Beat				if (pc_isfalcon(sd) && sd->status.weapon == W_BOW && (temp=pc->checkskill(sd,HT_BLITZBEAT))>0 &&					rnd()%1000 <= sstatus->luk*3 ) {					rate = sd->status.job_level / 10 + 1;					skill->castend_damage_id(src,bl,HT_BLITZBEAT,(temp<rate)?temp:rate,tick,SD_LEVEL);				}

Add:

if((temp=pc->checkskill(sd,CS_CUSTOMSKILL))>0 && rnd()%1000 <= sstatus->luk*3 ) {skill->castend_damage_id(src,bl,CS_CUSTOMSKILL,temp,tick,0);}

rnd()%1000 <= sstatus->luk*3: This is the chance of autocast, there chance aument of luk*3.

Change this as you wish.

 

This is a good idea, with just small modifications like making it 100% chance. I'll be trying this one,

 

Thank you!

 

EDIT: Ah nah, i don't think that's gonna work well since it won't auto-cast if I'm gonna use a skill. And by the way it's some sort of a buff skill not an attack skill XD


In Topic: Damage depending on distance

15 September 2015 - 02:06 PM

Thanks for the replies but i made it much more simple tho the only problem is i dunno how to make it as a passive skill.

 

So what i did is:

 

battle.c

		if (sc){		if(sc->data[SC_CUSTOMSKILL] ) {		int range = distance_bl(src, target);		int skilllv = sc->data[SC_CUSTOMSKILL]->val1;		if(range == 1){		ATK_ADDRATE(skilllv * 10);		}		}		}

 

So it clearly states when you're 1 cell apart from your enemy, you'll get additional bonus of custom skill level * 10 damage.


In Topic: auto reward online players

15 September 2015 - 04:34 AM

[font="'comic sans ms', cursive;"][color=rgb(238,130,238);]Thank you for answering.[/color][/font]

 

[font="'comic sans ms', cursive;"][color=rgb(238,130,238);]Yeah but the problem is that I cant update it :blush:[/color][/font]

 

http://upaste.me/c56521482f94be780

 

You mean it's not compatible in hercules?


In Topic: auto reward online players

14 September 2015 - 06:31 PM

An old NPC from eAthena

 

http://www.eathena.w...howtopic=246599


In Topic: Damage depending on distance

13 September 2015 - 04:34 PM

The skill Charge Attack of Knight increment the damage by distance, try check in Battle.c this:

 

case KN_CHARGEATK:					{						int k = (flag-1)/3; //+100% every 3 cells of distance						if( k > 2 ) k = 2; // ...but hard-limited to 300%.						skillratio += 100 * k;					}					break;

 

Thanks for the reply, but i don't understand this formula:

 

int k = (flag-1)/3;