summaryrefslogtreecommitdiff
path: root/npc/items/brawling_item.txt
blob: 9aa065251ffa8abe0023bd997127109cbbed32be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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;
}