Editing Rates Problem ._.!

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 28, 2012
Messages
13
Reaction score
0
Thats how my event luafunc is:
function AddEvent( strDesc )
local nEventId = table.getn(tEvent) + 1

tEvent[nEventId] = {}
tEvent[nEventId].Item = {}
tEvent[nEventId].Time = {}
tEvent[nEventId].Desc = strDesc
tEvent[nEventId].fExpFactor = 10000000000000000000000
tEvent[nEventId].fItemDropRate = 10000000000000000
tEvent[nEventId].fPieceItemDropRate = 1000000000000000
tEvent[nEventId].fGoldDropFactor = 100000000000000000
tEvent[nEventId].State = 0
tEvent[nEventId].nAttackPower = 0
tEvent[nEventId].nDefensePower = 0
tEvent[nEventId].nCouponEvent = 0
tEvent[nEventId].Gift = {}
tEvent[nEventId].fCheerExpFactor = 1
tEvent[nEventId].tSpawn = {}
tEvent[nEventId].tKeepConnectEvent = {}
tEvent[nEventId].fRainEventExpFactor = 1
tEvent[nEventId].strRainEventTitle = ""
tEvent[nEventId].fSnowEventExpFactor = 1
tEvent[nEventId].strSnowEventTitle = ""
end

after i re start the server it stays the same way! o_o no insane exp as the rates point it to be!
can u someone tell me what am i doing wrong?
 
tEvent[nEventId].fExpFactor = 10000000000000000000000
tEvent[nEventId].fItemDropRate = 10000000000000000
tEvent[nEventId].fPieceItemDropRate = 1000000000000000
tEvent[nEventId].fGoldDropFactor = 100000000000000000

god damm dude i wanna play.. xD

if( tEvent[nId].fExpFactor ~= 1 ) then
tEventInfo[nCount] = "ExpFactor = " .. tEvent[nId].fExpFactor
nCount = nCount + 9999
end

if( tEvent[nId].fItemDropRate ~= 1 ) then
tEventInfo[nCount] = "ItemDropRate = " .. tEvent[nId].fItemDropRate
nCount = nCount + 9999
end

if( tEvent[nId].fPieceItemDropRate ~= 1 ) then
tEventInfo[nCount] = "fPieceItemDropRate = " .. tEvent[nId].fPieceItemDropRate
nCount = nCount + 9999
end

if( tEvent[nId].fGoldDropFactor ~= 1 ) then
tEventInfo[nCount] = "fGoldDropFactor = " .. tEvent[nId].fGoldDropFactor
nCount = nCount + 9999
end

if( tEvent[nId].nAttackPower ~= 0 ) then
tEventInfo[nCount] = "nAttackPower = " .. tEvent[nId].nAttackPower
nCount = nCount + 9999
end

if( tEvent[nId].nDefensePower ~= 0 ) then
tEventInfo[nCount] = "nDefensePower = " .. tEvent[nId].nDefensePower
nCount = nCount + 9999
 
tEvent[nEventId].fExpFactor = 10000000000000000000000
tEvent[nEventId].fItemDropRate = 10000000000000000
tEvent[nEventId].fPieceItemDropRate = 1000000000000000
tEvent[nEventId].fGoldDropFactor = 100000000000000000

god damm dude i wanna play.. xD

if( tEvent[nId].fExpFactor ~= 1 ) then
tEventInfo[nCount] = "ExpFactor = " .. tEvent[nId].fExpFactor
nCount = nCount + 9999
end

if( tEvent[nId].fItemDropRate ~= 1 ) then
tEventInfo[nCount] = "ItemDropRate = " .. tEvent[nId].fItemDropRate
nCount = nCount + 9999
end

if( tEvent[nId].fPieceItemDropRate ~= 1 ) then
tEventInfo[nCount] = "fPieceItemDropRate = " .. tEvent[nId].fPieceItemDropRate
nCount = nCount + 9999
end

if( tEvent[nId].fGoldDropFactor ~= 1 ) then
tEventInfo[nCount] = "fGoldDropFactor = " .. tEvent[nId].fGoldDropFactor
nCount = nCount + 9999
end

if( tEvent[nId].nAttackPower ~= 0 ) then
tEventInfo[nCount] = "nAttackPower = " .. tEvent[nId].nAttackPower
nCount = nCount + 9999
end

if( tEvent[nId].nDefensePower ~= 0 ) then
tEventInfo[nCount] = "nDefensePower = " .. tEvent[nId].nDefensePower
nCount = nCount + 9999

so i add that to the luafunc?
 
Status
Not open for further replies.
Back