表情彈窗修正檔 - 仙境傳說

By Doris
at 2011-01-11T00:50
at 2011-01-11T00:50
Table of Contents
※ 引述《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 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◢◢◥◥◤◥◣● 魔 法 少 女 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◢◤_◥█◤ ◢◤ | | | | ┼┐ |│▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◤◢◢=▽◣ ◣ ● ∕ ∕ / ┘∕└▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
●◢ ◢╲ ̄╱▲▲ フェイト ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◥ ▲ ◤▼◥ ◥▲ ・テスタロッサ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
: 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 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◢◢◥◥◤◥◣● 魔 法 少 女 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◢◤_◥█◤ ◢◤ | | | | ┼┐ |│▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◤◢◢=▽◣ ◣ ● ∕ ∕ / ┘∕└▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
●◢ ◢╲ ̄╱▲▲ フェイト ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
◥ ▲ ◤▼◥ ◥▲ ・テスタロッサ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
Tags:
仙境傳說
All Comments

By Joseph
at 2011-01-15T06:25
at 2011-01-15T06:25

By Agnes
at 2011-01-20T02:54
at 2011-01-20T02:54
Related Posts
練金基因藥水書

By Regina
at 2011-01-11T00:08
at 2011-01-11T00:08
終於咒術轉成功了

By Wallis
at 2011-01-10T23:53
at 2011-01-10T23:53
主教們會選擇投資小惡戒嗎?

By Todd Johnson
at 2011-01-10T23:41
at 2011-01-10T23:41
三轉咒術的魔導技能配點

By Sierra Rose
at 2011-01-10T23:37
at 2011-01-10T23:37
親愛的各位玩家們安喔~想請有閒的人可否幫忙填份研究用問卷

By Callum
at 2011-01-10T23:17
at 2011-01-10T23:17