User Tools

Site Tools


lua:ch:wears

This script checks if a mob is wearing a “mob weapon” (vnum 46) and if so, then it checks to see if the mob is unstanced (default). If the mob has a weapon, and no stance, then it goes into blade dance.

Example:

if mob:wears(46) then
  if mob.stance=="default" then
      mdo("stance blade")
  end
else
  say("not using a weapon")
end
lua/ch/wears.txt · Last modified: 2014/12/27 08:29 by vodur