This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
lua:ch:wears [2014/12/27 08:28] vodur created |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | 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: | ||
| - | |||
| - | ifmob:wears(46) then\\ | ||
| - | ifmob.stance=="default" then\\ | ||
| - | mdo("stance blade")\\ | ||
| - | end\\ | ||
| - | else\\ | ||
| - | say("not using a weapon")\\ | ||
| - | end | ||
| - | |||
| - | \\ | ||