Thread: Switch command
View Single Post
Old 05-08-2003, 08:27 AM   #3
jornel
Member
 
Join Date: Sep 2002
Location: Canada
Posts: 73
jornel is on a distinguished road
Mobs just don't enjoy the same quality of life as players.   Here are some of the major differences:

1) mobs don't receive ansi color
  Color is stripped out to make mprog trigger checks easier.

2) mobs don't autolook when they walk into a new room.
  In most games, mobs move around all the time. To send full room descriptions to all mobs moving every time is a lot of 'internal spam' that raises CPU usage needlessly - since mostly, mobs can't do anything with the info they would receive in a room description.

3) mobs don't receive player-based global channels (ex: ooc, auction)
  Again, same reason.  Mobs aren't known to bid on auctioned items, nor do they offer any items for sale.  And you almost never hear them participate in chat.

4) mobs don't even have the same 'SCORE'
  You don't believe me?  Switch into a mob and type SCORE.  Most of the personal stats that players see are kept in a structure called pcdata that mobs just don't have - which explains why you always see all these tests in the code involving IS_NPC(ch)


Hope this sheds some light.
jornel is offline   Reply With Quote