• 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!

Problem with skulltype in TFS 1.0

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I have this script from 0.4 TFS, and I'm trying using in TFS 1.0 and didn't work I tryed use the function player:getSkull() == SKULL_NONE but didn't work as well.

I got this problem:
WEBjLsnIR.png


Code:
function onPrepareDeath(cid, deathList)
  if (getCreatureSkullType(cid) == SKULL_NONE) and (player:getLevel() <= 100) then
  doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
  doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
   else
     doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 100)
  doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 30)
  end
  return true
end


Thanks.
 
Back
Top