找回密码
 注册
搜索
楼主: aoxue@tj

lliuzx 师兄对不起

[复制链接]
门派:明教
 楼主| 发表于 2018-10-13 07:54:52 | 显示全部楼层
taot@tj 发表于 2018-10-12 19:41
你直接在论坛上发个来让我试下

简单点理解,你打开wudang和huashan  lua ,如果你是这2个任务组合的话
把你要换武器的话插入在 你想换的地方就可以

用  exe('unwield xxx;wield xxx')   来执行换武器   这样简单很多 不会影响其他的
我是建立了 变量  改到 lliuzx那里就不行了
门派:武当派
发表于 2018-10-13 10:40:39 | 显示全部楼层
aoxue@tj 发表于 2018-10-13 07:54
简单点理解,你打开wudang和huashan  lua ,如果你是这2个任务组合的话
把你要换武器的话插入在 你想换 ...

看不懂,直接把函数发来看看            
门派:明教
 楼主| 发表于 2018-10-13 12:37:44 | 显示全部楼层

exe('unwield '..GetVariable('fightweapon')..';wield '..GetVariable('recoverweapon')..';wield '..GetVariable('fightweapon'))

exe('unwield '..GetVariable('recoverweapon')..';wield '..GetVariable('fightweapon'))
门派:明教
 楼主| 发表于 2018-10-13 12:38:20 | 显示全部楼层

function fightToRecover()
    exe('unwield '..GetVariable('fightweapon')..';wield '..GetVariable('recoverweapon'))
end
function recoverToFight()
    exe('unwield '..GetVariable('recoverweapon')..';wield '..GetVariable('fightweapon'))
end
门派:华山派
发表于 2018-10-13 13:06:56 | 显示全部楼层
道理就是利用回复武器在走路的过程中吧亏的内力补充回来
门派:明教
 楼主| 发表于 2018-10-13 14:44:13 | 显示全部楼层
那个变量  我自己也一知半解   说不明白  发出来自己看吧  
门派:明教
 楼主| 发表于 2018-10-13 14:44:48 | 显示全部楼层
不用变量直接换 lliuzx已经换好了
门派:华山派
发表于 2018-10-13 15:28:42 | 显示全部楼层
感谢师兄 帮我改了MUSH
门派:明教
 楼主| 发表于 2018-10-13 17:20:13 | 显示全部楼层
咱们是一起进的华山  当然要一起成长,我还等着你解九剑呢
门派:华山派
发表于 2018-10-13 17:37:49 | 显示全部楼层
这个看脸 不知道老岳哪天高兴~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-10-24 09:11 , Processed in 0.041899 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表