Jump to content
  • 0

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


Kaito Kid

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

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
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

I mean, your

unsigned short mapindex;

change it becomes

unsigned short mapindex = sd->bl.m;

or

unsigned short mapindex = 0;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  429
  • Reputation:   60
  • Joined:  08/19/12
  • Last Seen:  

in adding custom @go 
you only need to edit 
mapindex.h
and atcommand.c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

I am sorry for my bad english.... I mean... after i follow steps from http://rathena.org/wiki/@go i got errors from skill.c

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

did u try this one?

unsigned short mapindex = sd->bl.m;[code]

[code]unsigned short mapindex = 0;[code]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

did u try this one?

unsigned short mapindex = sd->bl.m;[code=auto:0]

[code=auto:0]unsigned short mapindex = 0;[code=auto:0]

where did i should put that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   4
  • Joined:  12/05/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

I got the same problem @Cydh.
I'm unable to fix it.

Link to comment
Share on other sites

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