Skip to content

Disarm mobs without making their weapons available to players

nostalgicsamurainostalgicsamurai Member Posts: 8
edited September 2018 in Builders - Scripting
The server I'm playing on has all mobs immune to the "disarm" feat so as to prevent players from looting their weapons. I'm wondering if there is another way to prevent this, so that the mob would still be disarmed by the feat, but its weapon would not fall to the ground or in the player's inventory (in the case the player is unarmed when using "disarm"). Maybe by destroying the mob's weapon when he gets disarmed?
Post edited by nostalgicsamurai on

Comments

  • Sylvus_MoonbowSylvus_Moonbow Member Posts: 1,085
    Give the weapon the undropable flag and simply unequip it.
  • its_a_fireits_a_fire Member Posts: 4
    In the OnUnaquireItem event will fire for NPCs too. The script might check whether it's an NPC, whether the NPC is in combat, and whether the item is a weapon.
  • ShadooowShadooow Member Posts: 402
    Monsters doesn't drop weapons when disarned.
Sign In or Register to comment.