• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Items drop [create log]

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
I search one script..
that what we do is that if a player dies and you drop a list item .. This creates a log .. saying the items lost and the player's name ..
and do not the truth .. but here I leave an idea ..

Code:
local itemlost = {"2160", "3360", "2268"} -- Items checks if drop or no

function onPrepareDeath(cid, killers)  --idk what use..
function onDeath(cid, corpse, deathList) --idk what use..

if isInArray(itemlost, getPlayerItem(cid)) == true then --if item drop is on "list"  then

doWriteLogFile("./data/logs/Itemlost.log", "Player: ".. getCreatureName(cid).." perdio el item (items que perdio al morir) . Y tenia "..getPlayerBlessing(cid).." bless comprado.")

--creating log and check if player have blessing or no

end
            return TRUE
end
 
Back
Top