|
那么大家找下PublicDataScriptobjqianzhuang内的suishenyuanbao.lua脚本
打开之后 大家会看到相应的元宝店内的名称
举例如下:
--AddNumText( sceneId, x181003_g_scriptId, "我想抽奖", 2, x181003_g_newprize)
AddNumText( sceneId, x181003_g_scriptId, "#gff00f0踏雪初级超市", 2, x181003_g_goodact)
AddNumText(sceneId,x181003_g_scriptId, "#gff00f0踏雪超级杂货", 7, 24)
AddNumText(sceneId,x181003_g_scriptId, "#gff00f0踏雪自助超市", 7, 40)
AddNumText(sceneId,x181003_g_scriptId, "#gff00f0踏雪贵宾超市", 7, 41)
if targetId >= 0 then
AddNumText( sceneId, x181003_g_scriptId, "我想兑换元宝", 2, x181003_g_buyact)
AddNumText( sceneId, x181003_g_scriptId, "我想兑换元宝票", 2, x181003_g_ticketact)
脚本内的 7.24 7.40 7.41 x181003_g_newprize 都是下面的关联
24对应24号(关联号可自行设置)
连接如下
elseif GetNumText() == 24 then
BeginEvent( sceneId )
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0装备辅助材料", 7, 25 )
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0珍兽高级技能", 7, 61 )
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0古代神符店", 7, 62 )
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0珍兽技能书", 7, 63 )
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0小商品市场", 7, 28 )
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0浪漫小屋", 7, 30 )
elseif GetNumText() == 24 then为上部关联 继续同上找关联
以25为例
AddNumText(sceneId, x181003_g_scriptId, "#gff00f0装备辅助材料", 7, 25 )
25连接如下
elseif GetNumText() ==25 then
x181003_NewDispatchShopItem( sceneId, selfId,targetId, 179 )
elseif GetNumText() ==26 then
x181003_NewDispatchShopItem( sceneId, selfId,targetId, 182 )
elseif GetNumText() ==27 then
x181003_NewDispatchShopItem( sceneId, selfId,targetId, 205 )
elseif GetNumText() ==28 then
x181003_NewDispatchShopItem( sceneId, selfId,targetId, 151 )
25连接shoptable.txt为179 这就是我们对应的索引号了
elseif GetNumText() ==25 then
x181003_NewDispatchShopItem( sceneId, selfId,targetId, 179 )
这样我们打开shoptable.txt
建议用EXCLE2007打开 眼睛好的可以用ue或者写字板 更为准确 注:眼睛好的哦
好了 元宝店的修改内容其实就是如此简单
本人也是菜鸟 从 来没学习过lua语言 慢慢研究得出
希望朋友们以后多看 多想
|
|