On Mon, 18 Nov 1996, Bruce, Ray, Phil wrote: > If someone could check this code out and tell me why this would be the > output of the command used on a MOB: > > You mount <NULL>. > > *** act.other.c *** > ACMD(do_mount) > { > struct char_data *vict; > > one_argument(argument, arg); > > if (!*arg) { > send_to_char("Mount who or what?\r\n", ch); > return; > } else > if (!(vict = get_char_room_vis(ch, arg))) { > send_to_char("They aren't here.\r\n", ch); > return; > } else > if (ch == vict) { > send_to_char("People laugh as your jump on your own back!\r\n", ch); > return; > } > > if(GET_POS(ch) == POS_MOUNTED) { > send_to_char("You are already mounted!\r\n",ch); > return; > } > mount_animal(ch, vict); > ch->riding = vict; > vict->rider = ch; > vict = ch->riding; > sprintf(buf, "You mount $N."); > act(buf , FALSE, ch, 0, 0, TO_CHAR); ^ | Vict_obj pointer. Replace 0 with vict > sprintf(buf, "$n mounts $N."); > act(buf , FALSE, ch, 0, 0, TO_ROOM); ^ | Again.. > > } Try to look in the doc/OLD-DOCS/comm.doc file.. It gives you a good description of act() and all those $n,$N variables. --- Erik Niese-Petersen Aka Quint The typo God Realms of Darkness IMP +-----------------------------------------------------------+ | 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