Jump to content
  • 0

Custom Skill Problem


ohyono

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   15
  • Joined:  01/10/12
  • Last Seen:  

I try to modificate the skill  "KO_GENWAKU", i want this skill give any points of stats(it's working) and switch whit other player(not work). My skill change position with mobs but not work for players and i no idea whats happen. My configurations are:

 

The skill.c:

	case RC_SWITCH:
		if ( !map_flag_gvg(src->m) ) {
			int x = src->x, y = src->y;
			
			if( sd && rnd()%100 > ((45+5*skill_lv) - status_get_int(bl)/10) ){//[(Base chance of success) - (Intelligence Objectives / 10)]%.
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);			
				break;
			}

			if (unit_movepos(src,bl->x,bl->y,0,0)) {
				clif_skill_nodamage(src,src,skill_id,skill_lv,1);
				clif_slide(src,bl->x,bl->y) ;
				sc_start(src,src,SC_CHANGE,80,skill_lv,skill_get_time(skill_id,skill_lv));
			if (unit_movepos(bl,x,y,0,0))
				{
					clif_skill_damage(bl,bl,tick, status_get_amotion(src), 0, -30000, 1, skill_id, -1, 6);
					if( bl->type == BL_PC && pc_issit((TBL_PC*)bl))
						clif_sitting(bl,true); //Avoid sitting sync problem
					clif_slide(bl,x,y) ;
					sc_start(src,bl,SC_CHANGE,80,skill_lv,skill_get_time(skill_id,skill_lv));
						}
			}
		}
		break;

 

Skill_db.txt:

1106,5:6:7:8:9,6,16,0,0x1,0,5,1,no,0,0x400,0,none,0,	RC_SWITCH,Switch

 

skill_require.txt

1106,0,0,40:44:48:52:56,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0	//RC_SWITCH#Switch#

 

skill_cast.txt

//-- RC_SWITCH
1106,500,0,0,5000,0,0,0

 

I hope the information be suficient, if you need more data only say it  

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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