作者jimmy2797161 (フェイトは俺の嫁)
看板RO
标题Re: [情报] 表情弹窗修正档
时间Tue Jan 11 00:50:30 2011
※ 引述《bobo0120 ()》之铭言:
: if emotionType == nil or EmotionList[emotionType] == nil then
: return -1
: end
: 改成
: if emotionType == nil then
: return -1
: elseif EmotionList[emotionType] == nil then
: return -1
: end
: 会比较好一点, 在emotionType为nil时会array out of range (maybe)
原始客户端是这样
GetEmotionAction = function(emotionType)
local emotionAction = EmotionList[emotionType].actionNum
if emotionAction ~= nil then
return emotionAction
else
return -1
end
end
我参考某网站以後修改成
GetEmotionAction = function(emotionType)
if emotionType == nil or EmotionList[emotionType] == nil then
return -1
end
local emotionAction = EmotionList[emotionType].actionNum
if emotionAction ~= nil then
return emotionAction
else
return -1
end
end
至於弄懂lua 我放弃...光弄如何编译就快搞死我了...
解档lub的话 我是用LuaDec
指令luadec emotionlist_f.lub > emotionlist_f.txt
包回去用Lua Compiler 5.0.2
指令 luac5.0.2 -o "emotionlist_f.txt" "emotionlist_f.lub"
--
● ◥◢█◣◢ ψLapisLazuri ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◢◢◥◥◤◥◣● 魔 法 少 女 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◢◤_◥█
◤ ◢◤ | | | | ┼┐ |│▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◤◢◢=▽◣ ◣ ● ∕ ∕ / ┘∕└▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
●◢ ◢╲ ̄╱▲▲ フェイト ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◥ ▲ ◤▼◥ ◥▲ ・テスタロッサ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.43.208.196
1F:推 yes78529:鼓励推~ 01/11 00:55
2F:推 wentomankimo:玩RO练程式 01/11 00:56
※ 编辑: jimmy2797161 来自: 114.43.208.196 (01/11 01:52)