qq9906898
2级·斗气风暴
2级·斗气风暴
  • UID137
  • 注册日期2011-06-04
  • 最后登录2012-01-29
  • 粉丝1
  • 关注0
  • 发帖数69
  • QQ
  • 铜币7枚
  • 威望0点
  • 银元-7个
阅读:1535回复:0

新版V17的下雪活動.倍率問題求人回答!!!

楼主#
更多 发布于:2011-07-20 20:56

新版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






游客

返回顶部