User Tools

Site Tools


lua:ch:wears

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lua:ch:wears [2014/12/27 08:29]
vodur
— (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: 
- 
-<code lua> 
- 
-if mob:​wears(46) then\\ 
-  if mob.stance=="​default"​ then 
- 
-      mdo("​stance blade"​) 
- 
-  end 
- 
-else\\ 
-  say("​not using a weapon"​)\\ 
-end 
- 
-</​code>​ 
  
lua/ch/wears.1419668960.txt.gz ยท Last modified: 2014/12/27 08:29 by vodur