RE: Guildguards

From: Daniel W. Burke (dwb@ix.netcom.com)
Date: 06/20/96


OOPS!  Getting this message back I realized I forget to take something 
out of the spec_proc that I had added a while back...

here's what it shoulda looked like:

SPECIAL(guild_guard)
{
   int i;
   extern int guild_info[][3];
   struct char_data *guard = (struct char_data *) me;
   char *buf = "The guard humiliates you, and blocks your way.\r\n";
   char *buf2 = "The guard humiliates $n, and blocks $s way.";

   if (!IS_MOVE(cmd) || IS_AFFECTED(guard, AFF_BLIND))
     return FALSE;

   if (GET_LEVEL(ch) >= LVL_IMMORT)
     return FALSE;

   for (i = 0; guild_info[i][0] != -1; i++) {
      if ((IS_NPC(ch) || !IS_SET(guild_info[i][0], (1 << GET_CLASS(ch)))) &&
	  world[ch->in_room].number == guild_info[i][1] &&
	  cmd == guild_info[i][2]) {
	 return TRUE;
      }
   }

   return FALSE;
}



This archive was generated by hypermail 2b30 : 12/18/00 PST