TFS 0.X [OTX] Sometimes drop loot with bless

leo123456

New Member
Joined
Jun 13, 2009
Messages
33
Best answers
0
Reaction score
0
Hi people,

I have a problem.

Sometimes the player died and drop loot with bless!

My creaturescripts:

Lua:
function onDeath(cid, corpse, deathList)
function HaveBless(cid)
for i = 1,5 do
if getPlayerBlessing(cid, i) then
return true
end
end
return false
end
if isPlayer(cid) and HaveBless(cid) and getPlayerSkullType(cid) < SKULL_RED then
doCreatureSetDropLoot(cid, false)
end
return true
end
I am using OTX 8.6.

Thanks.
 
Top