I'm having a problem with the thief special procedure, actually this problem seems to affect any special procedure where mobiles are supposed to do someting on their own. Let me try to explain what I mean by that. Both the thief and snake special procedures aren't working. I know that the mud recognizes the special procedure but when it checks to see if a command has been entered it exists the special procedure. Here is the code (I think this should be standard circle code - minus my log entries of course :) SPECIAL(thief) { struct char_data *cons; log("DEBUG: Thief Special Procedure recognized"); if(cmd) <------- NEVER GETS PAST THIS LINE return FALSE; log("DEBUG: Inside Thief Special Procedure"); if(GET_POS(ch) != POS_STANDING) return FALSE; log("DEBUG: Inside Thief Special - looking for victims"); for(cons = world[ch->in_room].people; cons; cons = cons->next_in_room) { if(!IS_NPC(cons) && (GET_LEVEL(cons) < LVL_DEMI) && !(number(0, 1))) { npc_steal(ch, cons); return TRUE; } } return FALSE; } Any ideas why it wouldn't be getting past the 'if(cmd)' line. If I comment this line out then of course any commands that a player types in at the room the mobile is in will be ignored. -Brian aka Haddixx -- / Brian M. Menges | NASA Ames Research Center \ \ | Mail Stop: N262-2 / / San Jose State University | Moffett Field, CA 94035 \ \ Student, Aerospace Engineering | Phone: (415) 604-0069 / / menges@mercury.engr.sjsu.edu | bmenges@mail.arc.nasa.gov \ +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST