Re: [情報] 表情彈窗修正檔

看板RO作者 (フェイトは俺の嫁)時間15年前 (2011/01/11 00:50), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串3/3 (看更多)
※ 引述《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
玩RO練程式
01/11 00:56, 2F
※ 編輯: jimmy2797161 來自: 114.43.208.196 (01/11 01:52)
文章代碼(AID): #1DApZPSN (RO)
文章代碼(AID): #1DApZPSN (RO)