咱们需求做的,就是在服务端界说元宝商铺的八大块,与八大块里边的几小店。如此而已。
Public/Data/Script/event/prizi/yuanbaoshop.lua
内容对应如下:

每种类型的元宝商铺,能够界说15个大类,每个大类下能够有八个条目清单。
15大类:大卖场、宝石商城、珍兽绝招、南北奇货、形象广场、花舞人世、武功绝招、打造图、我要更*******
8个条目清单一眼就看出来了,这8个内容界说在服务端 shoptable.txt中的,与客户端没有任何的联系。不信你试试看。
其间
function x888902_OpenYuanbaoShop( sceneId, selfId, targetId , shopA ,shopB )
local bCheck = x888902_YuanbaoShopCheckOp(sceneId,selfId);
if bCheck > 0 then
if shopA > 0 and shopA < 200 and x888902_g_shoplist[shopA][shopB] ~= nil then --200是因为界说了第二个商铺
if targetId == -1 then
DispatchYuanbaoShopItem( sceneId, selfId, x888902_g_shoplist[shopA][shopB])
else
DispatchNpcYuanbaoShopItem( sceneId, selfId, targetId , x888902_g_shoplist[shopA][shopB])
end
end
end
end
如此一来,服务端界说结束,你会觉得为啥会显现不出来?很简单,服务端显现啥东西调用啥资本是在客户端界说的。
如今就要来界说客户端了。

