setimg filename; changes the npc's image - The image for the NPC will be displayed as the filename specified here.
if (playertouchsme){ 
  setimg bomb.gif; 
}
This will set the NPC's gif to "bomb.gif" when touched.
setimgpart filename,x,y,width,height; changes the npc's image and only displays the rectangle (x,y,width,height) of it - An extension to setgif.  The image displayed will be that of the gif file specified in the command, but the only part displayed is what's specified by the x,y,width, and height.  All of which can be found in any paint program.
if (playerenters){ 
  setimgpart ride.gif,0,0,32,32; 
}
Shows a field starting at 0,0 with dimensions of 32x32 of the file ride.gif when the player enters the level.
setcoloreffect red,green,blue,alpha; Alters the colors of the image used by the NPC.  Alpha adjusts the brightness of it.
if (created){ 
  setcoloreffect 255,0,255,1
}
Will make the NPC appear to be a bright purple (blue+red=purple).
setzoomeffect zoomfactor; Zooms in on the image used for the NPC (does not alter its blocking size however, so it is just for visual effect).
if (created){ 
  setzoomeffect 5
}
Will display the image for the NPC at 5x its normal size.
drawaslight; Draws the NPC over day-night effects (Over drawoverplayer stuff, but under player stats).
if (created){ 
  seteffect 0,0,255,.5; 
  drawaslight
}
The level will appear as a dark blue, however, the NPC will appear normal (since it is drawn over the color effects).
hide; hides the npc - Makes the NPC disapear (when hidden it can't be touched, hit,shot,exploded, or pelt).
if (washit){ 
  hide; 
}
Hides the NPC when hit with a sword.
hidelocal; hides the npc (only for the current player) - This hides the NPC only to the player that is currently activating it (best for online use).
if (playertouchsme){ 
  hidelocal; 
}
Will only hide the NPC to the player touching it.
show; shows an hidden npc - If the NPC was previously hidden, this command will show it.
if (!visible){ 
  show; 
}
Shows the NPC if it's not visible (hidden).
showlocal; shows an hidden npc (only for the current player) - Only shows the NPC to the player currently activating it (online use).
if (playerchats){ 
  showlocal; 
}
Shows the NPC only to the player that is chatting.
dontblock; lets the npc don't block the player anymore - Makes it so the player can walk through the NPC, shoot through it, and so the NPC is no longer considered "onwall".
if (washit){ 
  dontblock; 
}
Stops the NPC from blocking when hit.
dontblocklocal; lets the npc don't block the player anymore (only for the current player) - The NPC only doesn't block to the current player activating it.
if (washit){ 
  dontblocklocal; 
}
The NPC won't block the player that hit it.
drawoverplayer;  draws the npc over the player - The NPC will be shown ontop of the player and other NPCs.  Good for overhead gifs.
if (playertouchsme){ 
  drawoverplayer; 
}
When touched, the NPC will now be shown over the player.
drawunderplayer; draws the npc under the player - The NPC will be shown under the player and other NPCs.  Good for ground gifs, such as rugs.
if (playertouchsme){ 
  drawunderplayer; 
}
The NPC will be shown under the NPC when touched.
blockagain; turns off the three previous flags - Makes it so the NPC blocks the player, and is neither drawn over or under the player (since it's blocking you cant see how its drawn anyway).
if (washit){ 
  blockagain; 
}
When hit, the NPC will continue to block the player.
blockagainlocal; turns off the three block flags (only for the current player) - Makes it so the player currently activating the NPC is blocked again.
if (washit){ 
  blockagainlocal; 
}
When the NPC is hit, it'll only block the player that hit it.
canbecarried; the npc can now be lifted and carried by the player - Allows the player to carry the NPC.
if (washit){ 
  canbecarried; 
}
When hit, the NPC can now be carried.
cannotbecarried; turns off the previous flag - Makes it so the NPC can not be carried anymore.
if (wasthrown){ 
  cannotbecarried; 
}
When thrown, the NPC can no longer be carried.
canbepushed; the npc can now be pushed by the player - Allows the NPC to be pushed by the player.
if (washit){ 
  canbepushed; 
}
If the NPC was hit, it can now be pushed.
cannotbepushed; turns off the previous flag - Makes it so the NPC can not be pusehd anymore.
if (washit){ 
  cannotbepushed; 
}
If hit, the NPC can not be pushed anymore.
canbepulled; the npc can now be pulled by the player - Allows the player to pull the NPC.
if (washit){ 
  canbepulled; 
}
If hit, the NPC can now be pulled.
cannotbepulled; turns off the previous flag - Makes it so the NPC can no longer be pulled.
if (washit){ 
  cannotbepulled; 
}
If the NPC is hit, it can no longer be pulled.
issparringzone Sets the level to a "sparring zone" (AP won't be reduced, and items won't be lost while battling on that level).
if (playerenters){ 
  issparringzone
}
Specifies the level as a spar zone.
nopkzone Sets the level to a "no PK zone" (Players can not be killed while on that level).
if (playerenters){ 
  nopkzone
}
Disables player killing upon entering the level.
enablefeatures flags; Enables only the features specified by this command - Allows you to either turn off everything at once, or turn it all back on.  Good for minigames and things.  *Flags:
       1 - M key (map)
       2 - P key (pause)
       4 - Q key (weapon select)
       8 - R key (show ratings)
    0x10 - S+A key combination for dropping items
    0x20 - S+D key combination for switching weapons
    0x40 - TAB key (if disabled then you cannot switch to the chat field with TAB)
    0x80 - display of chat text
   0x100 - display of the hearts over player heads
   0x200 - display of nicknames
   0x400 - toall/PM-icons on the minimap
   0x800 - right-click on players opens their profile
  0x1000 - emoticons (disable it if you want to do other stuff with control+keys)
  0x2000 - Alt+5 for making snapshots
  0x4000 - Alt+8/9 for zooming
  0x8000 - the logframe where savelog stuff is added
  allfeatures
if (weaponfired){
  enablefeatures allfeatures-(0x400+0x200);
}
This weapon when fired will disable the toalls and pms and it won't display other players' nicknames.