_RefMappingShopWithTab more than two shop in same NPC

11/10/2012 19:06 Dinko J#1
Hello, today I experienced very strange problem. I have created npc and added two shops for it. For example STORE_CUSTOM_GROUP1 and STORE_CUSTOM_GROUP2, each group have 3 tabs. Tabs is:

STORE_CUSTOM_TAB1
STORE_CUSTOM_TAB2
<....>
STORE_CUSTOM_TAB6

So, till there are only two groups on the same NPC everything is okay, but when I add third group (STORE_CUSTOM_GROUP3) everything starts to fuck up.
STORE_CUSTOM_GROUP3 have only one tab, but when I buy something from it, I get different item, it changes after teleport/restart. Strange thing is that visualy everything is okay, but the server thinks than I buy items from STORE_CUSTOM_GROUP1 third tab (STORE_CUSTOM_TAB3) and this only happens when I add third group to the same NPC.

Any ideas? :/
11/10/2012 20:22 Kape7#2
That usually happens when the data from the db doesnt match with the data from the client. Check the file with the same name from the media.
11/10/2012 20:58 Dinko J#3
It is refmappingshopwithtab.txt file, I have copied lines directly from database to it, well there is only 3 lines... :D And the visualy in the client everything looks good, so it's something wrong with the server side

--------------------------------------

Ok, I'm really getting desperated about this, same problem in two different custom NPCs. One person told me that the problem is somewhere in adding groups, _RefShopItemGroup, _RefShopTabGroup or RefMappingShopGroup.
I recreated whole shops from scrach, checked and recheched everything, everything in databases matches client side, but still... same problem. I'll copy one shop tables info in here, maybe it'll be helpfull....

_RefShopTab

_RefMappingShopWithTab


_RefShopItemGroup


_RefShopTabGroup



I guess thats enought, problem is the same, for example I buy first item from STORE_AVATARS_GOLD_GROUP1 STORE_AVATARS_GOLD_TAB1, but after teleport I get first item from STORE_AVATARS_GROUP1 STORE_AVATARS_TAB3