Search the Commands

Home  All  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z 

Details for command mobattach:
 
* mobattach <GID>{,"NPC Name"};
 
GID is the GID of a monster, NPC or account id. The NPC running or
he NPC name given is used to attach the monster.

By attaching a monster, the NPC to which it is attached is ran on special actions by the monster.
The system will set specific data in the .ai_action variable array on the NPC invoked.
The special AI actions types are set in the .ai_action at place AI_ACTION_TAR_TYPE

More AI_ vars are set in const.txt, and you can also look at sample/monstercontroller.cpp:

Valid XHTML 1.0 Strict Valid CSS!