User Tools

Site Tools


lua:ch:wears

This is an old revision of the document!


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.1419668960.txt.gz · Last modified: 2014/12/27 08:29 by vodur