NEWBIE...Needs help with sac code

From: Jeremy D. Helton (mars@MARKAB.NET)
Date: 01/28/02

I've seen part of this code here on the list, I apologize for not
remembering of the top of my head who wrote the original code.  I can get
the code to sac corpses, but I cannot get it to sac other things in a room
or in my inventory. I know some of this may have been covered. I'm very new
to coding in C, most of my work has been done in VB.
I'm running CircleMUD bpl18.
Here is the code, any help would be greatly appreciated.

    struct obj_data *obj;

    one_argument(argument, arg);

    if (!*arg)
 send_to_char("Sacrifice what?\n\r",ch);
    if (!(obj = get_obj_in_list_vis(ch, arg, NULL, world[IN_ROOM
 send_to_char("You do not see that object here!\n\r",ch);
    if (!IS_CORPSE(obj))
 send_to_char("You can't sacrifice that!\n\r",ch);

    act("$n sacrifices $p.", FALSE, ch, obj, 0, TO_ROOM);
    act("You sacrifice $p to your god.\r\n",FALSE, ch, obj, 0, TO_CHAR);
    GET_SAC(ch) = GET_SAC(ch) + 1;

Jeremy D. Helton

"Trying to not go insane building my own mud"

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT