Re: [情報] 表情彈窗修正檔
※ 引述《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
推
01/11 00:55, , 1F
01/11 00:55, 1F
推
01/11 00:56, , 2F
01/11 00:56, 2F
※ 編輯: jimmy2797161 來自: 114.43.208.196 (01/11 01:52)
討論串 (同標題文章)