Jump to content
  • 0

Added Costum Map @go, Then skill.c got error


Question

Posted (edited)

Anyone know how to fixed this?

I added 2 new costum map on mapindex.h then when compiling i got error like this

971619_266746706800985_102879251_n.jpg

 

skill.c error:

 

	case ECLAGE_RECALL:
		if( sd )
		{
			short x, y; // Destiny position.
			unsigned short mapindex; << this line and one line below (but i think its not necessary because its blank line)

			if ( skill_id == RETURN_TO_ELDICASTES )
			{
				x = 198;
				y = 187;
				mapindex  = mapindex_name2id(MAP_DICASTES);
			}
			else if ( skill_id == ALL_GUARDIAN_RECALL )
			{
				x = 44;
				y = 151;
				mapindex  = mapindex_name2id(MAP_MORA);
			}
			else if ( skill_id == ECLAGE_RECALL )
			{
				x = 47;
				y = 31;
				mapindex  = mapindex_name2id("ecl_in01");
			}

			if(!mapindex)
			{ //Given map not found?
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				map_freeblock_unlock();
				return 0;
			}
			pc_setpos(sd, mapindex, x, y, CLR_TELEPORT);
		}
		break;

 

Thanks for advice

Edited by Kaito Kid

8 answers to this question

Recommended Posts

Posted

I mean, your

unsigned short mapindex;

change it becomes

unsigned short mapindex = sd->bl.m;

or

unsigned short mapindex = 0;
Posted (edited)

I mean, your

 

unsigned short mapindex;

change it becomes

 

unsigned short mapindex = sd->bl.m;

or

 

unsigned short mapindex = 0;
working no error with:
unsigned short mapindex = 0;

Thanks for advice :D

Edited by Kaito Kid

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