Re: [CODE] do_board

From: Nick B (nick@connecti.com)
Date: 12/15/96


There most certainly is.  Oh, BTW, it also sometimes said some things about
ch equaling NULL in handler.c, but I think that was because the char_to_room
didn't them the char anywhere in the first place.

At 09:59 PM 12/15/96 -0500, you wrote:
>Is there a room 2000?
>
>
>On Sun, 15 Dec 1996, Nick B wrote:
>
>> Here is my do_board command:
>> 
>> -=Begin Snippet=-
>> 
>> ACMD(do_board)
>> {
>> 
>> struct char_data *vict;
>> extern struct index_data *mob_index;
>> 
>> one_argument(argument, arg);
>> 
>> if (!*arg) {
>>     send_to_char("Board what!!!?\r\n", ch);
>>   } else {
>>     if (!(vict = get_char_room_vis(ch, arg)))
>>       send_to_char("That ain't here.\r\n", ch);
>>     else if (ch == vict)
>>       send_to_char("You aren't THAT big... :(\r\n", ch);
>>    else if (IS_NPC(vict) && MOB_FLAGGED(vict, MOB_SHIP)) {
>>       act("You board the ship.", FALSE, ch, 0, vict, TO_CHAR);
>>       act("$n boards a ship.", FALSE, ch, 0, vict, TO_NOTVICT);
>>       char_from_room(ch);
>>       char_to_room(ch, GET_MOB_VNUM(vict));
>>       look_at_room(ch, 0);
>>     }
>>    else
>>       send_to_char("Choose a SHIP to board...\r\n", ch);
>>     }
>> }
>> 
>> -=END SNIPPET=-
>> 
>> Here's my prob...  I used a mob #99, flagged it as a ship, and everything
>> worked great, the player was put in room #99.  But!!  I tried using mob
>> #2000, flagged it etc., and when I use the board command on it, the syslog
>> tells me that I have invalid whatchamacallits for char_to_room.  Why is it
>> working for one mob, but not the other??
>> 
>> Help is appreciated, 
>> Nick B
>> 
>> nick@connecti.com
>> 
>> +-----------------------------------------------------------+
>> | Ensure that you have read the CircleMUD Mailing List FAQ: |
>> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
>> +-----------------------------------------------------------+
>> 
>
>
>
Nick B

nick@connecti.com

+-----------------------------------------------------------+
| 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