Jump to content
  • 0

H> Undeclared Identifier


Erba

Question


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

I tried adding 

 

Coup de Grace by Goddameit

Wind Run by Madalilang

 

but all i got was undeclared Identifier.

 

 

now i tried to Mimic Hallucination Walk of Guillotine Cross and rename it to Wind Run but as i recompile i always got these erros:

Error:
2	error C2065: 'RA_WINDRUN' : undeclared identifier	D:\Gaming\revision17049\src\map\status.c	550	1	map-server_sql (Visual Studio 2010)
	
4	IntelliSense: argument of type "int" is incompatible with parameter of type "sc_type"	d:\Gaming\revision17049\src\map\status.c	10259	5	map-server_sql (Visual Studio 2010)
	
3	IntelliSense: identifier "RA_WINDRUN" is undefined	d:\Gaming\revision17049\src\map\status.c	550	10	map-server_sql (Visual Studio 2010)

This is what ive done:

 

Skill.c

	case GC_HALLUCINATIONWALK:
		{
	int heal = status_get_max_hp(bl) / 10;
	if( status_get_hp(bl) < heal ) { // if you haven't enough HP skill fails.
	if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0);
		break;
		}
		if( !status_charge(bl,heal,0) )
			{
	if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0);
		break;
			}
clif_skill_nodamage(src,bl,skillid,skilllv,sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
		}
		break;
		
	case RA_WINDRUN:
		{
			int heal = status_get_max_hp(bl) / 10;
			if( status_get_hp(bl) < heal ) { // if you haven't enough HP skill fails.
				if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0);
				break;
			}
			if( !status_charge(bl,heal,0) )
			{
				if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0);
				break;
			}
			clif_skill_nodamage(src,bl,skillid,skilllv,sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
		}
		break; 

Skill.h

EL_STONE_RAIN,
RA_WINDRUN = 8443, // i added this one

Status.c

set_sc( GC_HALLUCINATIONWALK , SC_HALLUCINATIONWALK, SI_HALLUCINATIONWALK, SCB_FLEE );
set_sc( RA_WINDRUN , SC_HALLUCINATIONWALK, SI_HALLUCINATIONWALK, SCB_FLEE );   //i added this one

Waiting for help.. thank you!


please mark this solve! thank you

Edited by Erba
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...