I am trying ot put in a autosplit comand. this is what i have ..in act.obj.c void get_check_money(struct char_data * ch, struct obj_data * obj) { if ((GET_OBJ_TYPE(obj) == ITEM_MONEY) && (GET_OBJ_VAL(obj, 0) > 0)) { obj_from_char(obj); if (GET_OBJ_VAL(obj, 0) > 1) { sprintf(buf, "There were %d coins.\r\n", GET_OBJ_VAL(obj, 0)); send_to_char(buf, ch); } if (IS_NPC(ch) && PRF_FLAGGED(ch, AFF_GROUP) && PRF_FLAGGED(ch, PRF_AUTOSPLIT)) ???????????do_split();??????????????????????? GET_GOLD(ch) += GET_OBJ_VAL(obj, 0); extract_obj(obj); } } Where i am trying to call the split function is where my prob is. How do i call the split function and what is the right var for the amount of gold the player just received? Could i just use command interpreter? I tried that too but it didn't work. :( thanks, Kyle
This archive was generated by hypermail 2b30 : 12/07/00 PST