mmheo
New Member
- Joined
- Sep 14, 2017
- Messages
- 157
- Reaction score
- 1
hello guys i use this one Random Item Stats
and i add this function
and chnage function createLoot(i, ext) to be like this function createLoot(i, ext, cid)
and change this line if( math.random(100000) <= v.chance ) to be like this if( math.random(100000) <= v.chance+ getPlayerGamePoints(cid) )
its work fine but in some time give me this error
use tfs r3777
-- // extra_loot_key = 123 --: optional storage for higher loot rate voc - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
and i add this function
Lua:
local function getPlayerGamePoints(cid)
local points = getPlayerStorageValue(cid, 102548)
if(points == -1) then
points = 0
end
return points
end
and chnage function createLoot(i, ext) to be like this function createLoot(i, ext, cid)
and change this line if( math.random(100000) <= v.chance ) to be like this if( math.random(100000) <= v.chance+ getPlayerGamePoints(cid) )
its work fine but in some time give me this error
use tfs r3777