blob: 9aa065251ffa8abe0023bd997127109cbbed32be (
plain) (
tree)
|
|
// Brawling item
// callfunc "BrawlingItem", slotId;
function script BrawlingItem {
// If you can equip *anything*, this restriction is moot
if (has_permission(PERM_USE_ALL_EQUIPMENT, getcharid(3)))
return;
// Load stat requisites
.@me = getarg(0);
// If the requirement isn't met, we set an unequip trigger.
// The item is now removed.
if (getequipid(EQI_HAND_R) > 0)
unequip(.@me);
return;
}
|