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
如此一来,服务端定义完毕,你会觉得为什么会显示不出来?很简单,服务端显示什么东西调用什么资源是在客户端定义的。
现在就要来定义客户端了。