Jump to content
  • 0

Desperado Skill Mod


Question

Posted

in skill unit on place timer

 

i commented out  if (rnd()%100 < src->val1)

case GS_DESPERADO:
                   //  if (rnd()%100 < src->val1)
                        skill_attack(BF_WEAPON,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
 

now all within the range will be hit, but all were being hit 8-10 times,

 

how to make desperado skill hit all within range and will hit only once, like magnum break

 

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

as long as interval is HIGHER/GREATER then the DURATION that the UNT is taking the time for...

 

it might be duration1

 

then the splash will only apply 1 time 

 

i use this on my server

 406,0x86,    ,  0, 3,1000,enemy, 0x010    //ASC_METEORASSAULT
406,1400,300,0,200,0,0
406,9,6,2,0,0x1,0,5,2,no,0,0,0,weapon,0,0x0,    ASC_METEORASSAULT,Meteor Assault
 

	case ASC_METEORASSAULT:
		if (unit_movepos(src,x,y,1,1)) {
			clif_snap(src, src->x, src->y);
			skill_unitsetting(src,skill_id,skill_lv,x,y,0);
			clif_specialeffect(src, 923, AREA);
			} else {
			if (sd)
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
		}
		break;
		case UNT_DUMMYSKILL:
			switch (sg->skill_id) {
				case ASC_METEORASSAULT:
					skill_attack(BF_WEAPON,ss,&unit->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
					clif_specialeffect(bl, 677, AREA);
					break;
				case SG_SUN_WARM: //SG skills [Komurka]
				case SG_MOON_WARM:
				case SG_STAR_WARM: {
					int count = 0;
					const int x = bl->x, y = bl->y;

comment out all the old meteor assault stuff and replace it with this

 

then re read what i said , 

 

Edited by Naruto

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