[Help] Do not DropGold

Newbie Spellweaver
Joined
Apr 20, 2015
Messages
59
Reaction score
0
ar18 - [Help] Do not DropGold - RaGEZONE Forums



my file View attachment Resource.rar
 
-- Experience %
function SetExpFactor( fExpFactor )
local nEventId = table.getn(tEvent)
tEvent[nEventId].fExpFactor = fExpFactor
end


function GetExpFactor()
local tList = GetEventList()
local fExpFactor = 9999
for i in pairs(tList) do
if( tEvent[tList].fExpFactor ~= nil ) then
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
end
end

return fExpFactor
end


-- Item drop %
function SetItemDropRate( fItemDropRate )
local nEventId = table.getn(tEvent)
tEvent[nEventId].fItemDropRate = fItemDropRate
end


function GetItemDropRate()
local tList = GetEventList()
local fItemDropRate = 100
for i in pairs(tList) do
if( tEvent[tList].fItemDropRate ~= nil ) then
fItemDropRate = fItemDropRate * tEvent[tList].fItemDropRate
end
end

return fItemDropRate
end


-- Individual item drop %
function SetPieceItemDropRate( fPieceItemDropRate )
local nEventId = table.getn(tEvent)
tEvent[nEventId].fPieceItemDropRate = fPieceItemDropRate
end


function GetPieceItemDropRate()
local tList = GetEventList()
local fPieceItemDropRate = 100
for i in pairs(tList) do
if( tEvent[tList].fPieceItemDropRate ~= nil ) then
fPieceItemDropRate = fPieceItemDropRate * tEvent[tList].fPieceItemDropRate
end
end

return fPieceItemDropRate
end


-- Penya drop %
function SetGoldDropFactor( fGoldDropFactor )
local nEventId = table.getn(tEvent)
tEvent[nEventId].fGoldDropFactor = fGoldDropFactor
end


function GetGoldDropFactor()
local tList = GetEventList()
local fGoldDropFactor = 100
for i in pairs(tList) do
if( tEvent[tList].fGoldDropFactor ~= nil ) then
fGoldDropFactor = fGoldDropFactor * tEvent[tList].fGoldDropFactor
end
end

return fGoldDropFactor
end



Shake to help me. View attachment 158392
 
Back