Jump to content
  • 0

clif.c Error: BOUND_DISPYELLOW


Nerfwood

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

Not sure what's happening here since I didn't change anything with the file (using latest clone).

 

ERROR:

        CC      clif.c
clif.c: In function âclif_additemâ:
clif.c:2256: error: âBOUND_DISPYELLOWâ undeclared (first use in this function)
clif.c:2256: error: (Each undeclared identifier is reported only once
clif.c:2256: error: for each function it appears in.)
clif.c: In function âclif_item_sub_v5â:
clif.c:2325: error: âBOUND_DISPYELLOWâ undeclared (first use in this function)
make[1]: *** [obj/clif.o] Error 1
make[1]: Leaving directory `***********'
make: *** [map] Error 2

clif.c

		WBUFL(buf,n+22) = it->expire_time;
		WBUFW(buf,n+26) = it->bound ? BOUND_DISPYELLOW : 0; //bindOnEquipType
		WBUFW(buf,n+28) = (id->equip&EQP_VISIBLE) ? id->look : 0;
#if PACKETVER >= 20071002
		/* Yellow color only for non-stackable item */
		WFIFOW(fd,offs+27)=(sd->status.inventory[n].bound && !itemdb_isstackable(sd->status.inventory[n].nameid)) ? BOUND_DISPYELLOW : 0;
#endif
	}

Can anyone help? I don't have any clue on what to do.

Edited by kalkalkal
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

check you mmo.h

/// Item Bound Type
enum bound_type {
	BOUND_NONE = 0, /// No bound
	BOUND_ACCOUNT, /// 1- Account Bound
	BOUND_GUILD, /// 2 - Guild Bound
	BOUND_PARTY, /// 3 - Party Bound
	BOUND_CHAR, /// 4 - Character Bound
	BOUND_MAX,

	//BOUND_ONEQUIP = 1, //! TODO
	BOUND_DISPYELLOW = 2, /// Shows the item name in yellow color
};
  • Upvote 1
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...