Jump to content
  • 0

Undeclared Identifier


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I am testing an old patch that i got in the source release section and I was hoping that someone can help me with this

List of errors are

1>..\src\map\storage.c(189): error C2065: 'BG_CHARID' : undeclared identifier
1>..\src\map\storage.c(189): error C2065: 'BG_TRADE' : undeclared identifier
1>..\src\map\trade.c(400): error C2065: 'BG_CHARID' : undeclared identifier
1>..\src\map\trade.c(400): error C2065: 'BG_TRADE' : undeclared identifier
1>..\src\map\trade.c(401): error C2065: 'BG_TRADE' : undeclared identifier
1>..\src\map\vending.c(323): warning C4013: 'MakeDWord' undefined; assuming extern returning int
1>..\src\map\vending.c(323): error C2065: 'BG_CHARID' : undeclared identifier
1>..\src\map\vending.c(323): error C2065: 'BG_TRADE' : undeclared identifier

and here is the patch line

 

storage.c

if( item_data->card[0]==CARD0_CREATE && MakeDWord(item_data->card[2],item_data->card[3])==BG_CHARID && BG_TRADE&64 ) 

trade.c

	if( item->card[0]==CARD0_CREATE && MakeDWord(item->card[2],item->card[3])==BG_CHARID && BG_TRADE&2 && 
		(pc_get_partner(sd) != target_sd || BG_TRADE&4) ) 

vending.c

		||  ( sd->status.cart[index].card[0]==CARD0_CREATE && MakeDWord(sd->status.cart[index].card[2],sd->status.cart[index].card[3])==BG_CHARID && BG_TRADE&2 )  // "Battleground's Items" 

Link of the patch is LINK

 

-- Edit --

Already stated in battleground.h

//Brian Bg Items - updated by [AnubisK]
#define BG_CHARID 165100 // char named "Battleground"
#define BG_TRADE 91 // trade mask of BG consumables

Issue is fixed! problem was this was not applied. on storage/vending/trade.c

#include "battleground.h"    //Brian Bg Items - updated by [AnubisK]

now I got a question

\src\map\vending.c(323): warning C4013: 'MakeDWord' undefined; assuming extern returning int

with this line

		//Brian Bg Items - updated by [AnubisK]
		||  ( sd->status.cart[index].card[0] == CARD0_CREATE && MakeDWord(sd->status.cart[index].card[2],sd->status.cart[index].card[3])==BG_CHARID && BG_TRADE&2 )  // "Battleground's Items"
		// end Brian Bg Items
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

//Brian Bg Items - updated by [AnubisK]
#define BG_CHARID 165100 // char named "Battleground" // you can change the character id.
#define BG_TRADE 91 // trade mask of BG consumables // You can edit the mask

You have to add those lines in: src/map/battleground.h

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

It is already in the battleground.h

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

this MakeDWord its just a warning, it doesn't care

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

i see thank you!

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