Jump to content

Recommended Posts

Posted

hello :) im new here in rAthena i started a server this September 13, 2013

and here's my first Ported Skill Wind Run (From DotA)

 

1382160_680580755287758_852516658_n.jpg

 

Skill.c

case SM_ENDURE: //find
	clif_skill_nodamage(src,bl,skill_id,skill_lv, //find
		sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv))); //find
	if (sd) //find
		skill_blockpc_start (sd, skill_id, skill_get_time2(skill_id,skill_lv)); //find
	break; //find

case WIND_RUN: //add
		clif_skill_nodamage(src,bl,skill_id,skill_lv, //add
		sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv))); //add
		clif_specialeffect(src,120,AREA); //add
		clif_specialeffect(src,389,AREA); //add
	break; //add

Skill.h

WIND_RUN = 997, //add
NV_BASIC = 1, //find

 

Status.c

	set_sc( SM_ENDURE            , SC_ENDURE          , SI_ENDURE          , SCB_MDEF|SCB_DSPD ); //find
	set_sc( WIND_RUN            , SC_WINDRUN          , SI_WINDRUN          , SCB_SPEED|SCB_FLEE2 ); //add

	if(sc->data[SC__UNLUCKY])//find
		flee2 -= flee2 * sc->data[SC__UNLUCKY]->val2 / 100;//find
		
	if(sc->data[SC_WINDRUN]) //add
		flee2 += 1000; //add (+100 Perfect dodge)
		
		
	if( sc->data[SC_SPEEDUP1] ) //find 
		val = max( val, 50 ); //find
	if(sc->data[SC_WINDRUN]) //add
		val = max( val, 50 ); //add (+50% movement speed)

Status.h

SI_WINDRUN = 116, //add
SI_BLANK = -1, //find

db\pre-re\skill_db,txt

 

997,0,6,4,0,0x1,0,10,1,no,0,0,0,weapon,0,0x0,    WIND_RUN,Wind Run

db\pre-re\skill_require_db.txt

 

997,0,0,10,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 //WIND_RUN
 


db\pre-re\skill_cast_db.txt

997,0,0,0,4500,0,14000

 

data\lua files\skillinfoz\skillid.lua

 

WIND_RUN = 997,

 

data\lua files\skillinfoz\skillinfolist.lua


 

    [SKID.WIND_RUN] = {
        "WIND_RUN";
        SkillName = "Wind Run",
        MaxLv = 1,
        SpAmount = { 10 },
    },
 

 

 

data.rar

  • Upvote 3
  • Like 1
  • 3 weeks later...
Posted (edited)

Got this error after compiling. Help please..

 

status.c: In function \u2018initChangeTables\u2019:
status.c:199: error: \u2018SC_WINDRUN\u2019 undeclared (first use in this function)
status.c:199: error: (Each undeclared identifier is reported only once
status.c:199: error: for each function it appears in.)
status.c: In function \u2018status_calc_flee2\u2019:
status.c:4979: error: \u2018SC_WINDRUN\u2019 undeclared (first use in this function)
status.c: In function \u2018status_calc_speed\u2019:
status.c:5316: error: \u2018SC_WINDRUN\u2019 undeclared (first use in this function)
Edited by Lord Ganja
  • 4 weeks later...
  • 2 weeks later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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