Getting VENDOR//xx Error

04/26/2019 09:42 pakinglalat#1
I received this error inside eh_xxx.log file whenever I click the "trade" in the NPC Is inside the game.
Code:
VENDOR//Is
I have implemented the snippet __ADDSHOPITEM and I have added items to the NPC Is via like exactly like this:
Code:
AddShopItem(0, II_SYS_SYS_SCR_SOKCHANG);
AddShopItem(0, II_SYS_SYS_SCR_LEVELDOWN02);
AddShopItem(0, II_SYS_SYS_SCR_LEVELDOWN01);
AddShopItem(0, II_SYS_SYS_SCR_RANDOMSTA);
AddShopItem(0, II_SYS_SYS_SCR_RANDOMSTR);
AddShopItem(0, II_SYS_SYS_SCR_RANDOMDEX);
AddShopItem(0, II_SYS_SYS_SCR_RANDOMINT);
I have also made all of those items shop-able from = to 1 in the column Z in the file Spec_Item.txt.
I have also made the column M into it's desired price from = to xxx.

What did I miss? Thank you so much!
04/26/2019 11:45 KingKeesie#2
Do you get same error while not using AddShopItem in your .res files? if not you probably made a mistake adding __ADDSHOPITEM to your source.
04/26/2019 14:40 pakinglalat#3
Quote:
Originally Posted by KingKeesie View Post
Do you get same error while not using AddShopItem in your .res files? if not you probably made a mistake adding __ADDSHOPITEM to your source.
Hey! I have managed to fix the problem. You are correct I did have a little problem in adding it to the source. I forgot to put that define thing in the WorldServer -> VersionCommon.h

I can see the items added in the npc now.. well some items only. I kinda do not know why it is not showing the other items.

Code:
AddShopItem(0, II_SYS_SYS_SCR_SOKCHANG);
AddShopItem(0, II_SYS_SYS_SCR_LEVELDOWN02); // NOT SHOWING
AddShopItem(0, II_SYS_SYS_SCR_LEVELDOWN01);
AddShopItem(0, II_SYS_SYS_SCR_RANDOMSTA); // NOT SHOWING
AddShopItem(0, II_SYS_SYS_SCR_RANDOMSTR);
AddShopItem(0, II_SYS_SYS_SCR_RANDOMDEX); // NOT SHOWING
AddShopItem(0, II_SYS_SYS_SCR_RANDOMINT);
They all have the same settings @ the Spec_Item. They are all shopable, has a price. But only 4 of them are showing in the npc.

These are the Spec_Item line of the items II_SYS_SYS_SCR_LEVELDOWN02 & II_SYS_SYS_SCR_LEVELDOWN01

Code:
11	II_SYS_SYS_SCR_LEVELDOWN01	IDS_PROPITEM_TXT_008916	1	9999	IK1_SYSTEM	IK2_SYSTEM	IK3_SCROLL	=	=	1	=	200000	=	=	=	=	=	=	=	0	=	=	1	=	1	1	1	=	=	=	=	_NONE	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	EXT_ITEM	WUI_NOW	=	=	=	=	=	=	=	=	=	0	0	0	0	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	"""Itm_SysSysScrLevelDown01.dds"""	0	""""""	IDS_PROPITEM_TXT_008917	1	140	0	0	1	0	0	0	0	0	2	=	=	=	=	=	=	=	=	=	=	1	1	1	1	1	0
11	II_SYS_SYS_SCR_LEVELDOWN02	IDS_PROPITEM_TXT_008918	1	9999	IK1_SYSTEM	IK2_SYSTEM	IK3_SCROLL	=	=	1	=	100000	=	=	=	=	=	=	=	0	=	=	1	=	1	1	1	=	=	=	=	_NONE	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	EXT_ITEM	WUI_NOW	=	=	=	=	=	=	=	=	=	0	0	0	0	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	"""Itm_SysSysScrLevelDown02.dds"""	0	""""""	IDS_PROPITEM_TXT_008919	1	140	0	0	1	0	0	0	0	0	2	=	=	=	=	=	=	=	=	=	=	1	1	1	1	1	0