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

Lua Creaturescript/Monster

Im not that experienced at this kind of functions, but probably something like this?
LUA:
function onTarget(cid, target)
if isMonster(cid) then
   if isPlayer(target) then
      if getPlayerStorageValue(target,storage) <= 0 then
         setPlayerStorageValue(target,storage,1)
      else
          return false
      end
   end
end
return true
end
 
Uhm, probably using
LUA:
function onAttack(cid, target)
instead of
LUA:
function onTarget(cid, target)
 
Back
Top