阅读:1572回复:0
新版V17的下雪活動.倍率問題求人回答!!!
新版V17我設定下雪為何沒反應修改Event.lua
我是以用下面方式添加 AddEvent( "下雪天氣經驗加倍" ) --{ SetTime( "2007-06-08 14:23", "2030-06-08 16:11" ) SetSnowEvent( 2, "下雪雙倍經驗值" ) --} 設定倍率為何沒反應?? 修改EventFunc.lua function GetItemDropRate() local tList = GetEventList() local fItemDropRate = 15 for i in pairs(tList) do if( tEvent[tList].fItemDropRate ~= nil ) then fItemDropRate = fItemDropRate * tEvent[tList].fItemDropRate end end return fItemDropRate end -- 偃滌 嬴檜蠱 萄照睦 寡熱 function SetPieceItemDropRate( fPieceItemDropRate ) local nEventId = table.getn(tEvent) tEvent[nEventId].fPieceItemDropRate = fPieceItemDropRate end function GetPieceItemDropRate() local tList = GetEventList() local fPieceItemDropRate = 10 for i in pairs(tList) do if( tEvent[tList].fPieceItemDropRate ~= nil ) then fPieceItemDropRate = fPieceItemDropRate * tEvent[tList].fPieceItemDropRate end end return fPieceItemDropRate end -- 傍 萄照 寡熱 function SetGoldDropFactor( fGoldDropFactor ) local nEventId = table.getn(tEvent) tEvent[nEventId].fGoldDropFactor = fGoldDropFactor end function GetGoldDropFactor() local tList = GetEventList() local fGoldDropFactor = 250 for i in pairs(tList) do if( tEvent[tList].fGoldDropFactor ~= nil ) then fGoldDropFactor = fGoldDropFactor * tEvent[tList].fGoldDropFactor end end return fGoldDropFactor end |
|
100% |