• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Not attackable by players if ur wearing a certain item

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
676
Hi! As the title says, i want a script that makes a player not being able to be attacked or attack other players when wearing a certain item

Thanks for your time
 
Not sure if you're using TFS, you might be able to do something like this in creaturescripts:

Code:
if getPlayerItemCount(target, item) > 0 then
    return false
end
 
Here you go:
Code:
function onTarget(cid, target)
    if getPlayerSlotItem(target,slot).itemid == 2160 then-- item ID t
        doPlayerSendCancel(cid, "You may not attack this player because he is wearing the item.")
        return false
    end
end
 
Back
Top