Found linkload command on circlemud, and trying to get it to Work with tba...
Have solved some of if, but some just wont Work:
Code:
ACMD(do_linkload)
{
char arg[MAX_INPUT_LENGTH];
char buf[MAX_INPUT_LENGTH];
struct char_data *victim = 0;
struct char_file_u tmp_store;
one_argument(argument, arg);
if (!*arg) {
send_to_char(ch, "Linkload who?\r\n");
return;
}
if (get_player_vis(ch, arg, 0, FIND_CHAR_WORLD)) {
send_to_char(ch, "They are already connected!\r\n");
return;
}
CREATE(victim, struct char_data, 1);
clear_char(victim);
if (load_char(arg, &tmp_store) > -1) {
store_to_char(&tmp_store, victim);
if (GET_LEVEL(victim) <= GET_LEVEL(ch)) {
sprintf(buf, "(GC) %s has linkloaded %s.", GET_NAME(ch), GET_NAME(victim));
mudlog(buf, BRF, GET_LEVEL(ch) + 1, TRUE);
Crash_load(victim);
victim->next = character_list;
character_list = victim;
victim->desc = NULL;
char_to_room(victim, IN_ROOM(ch));
act("You linkload $N.", FALSE, ch, 0, victim, TO_CHAR);
act("$n linkloads $N.", FALSE, ch, 0, victim, TO_NOTVICT);
} else {
send_to_char(ch, "Sorry, you aren't godly enough to linkload that char.\r\n");
free_char(victim);
}
} else {
send_to_char(ch, "No such player exists.\r\n");
free(victim);
}
return;
}
act.wizard.c: In function ‘do_linkload’:
act.wizard.c:5394: error: storage size of ‘tmp_store’ isn’t known
act.wizard.c:5411: warning: implicit declaration of function ‘store_to_char’
act.wizard.c:5415: warning: passing argument 1 of ‘mudlog’ makes integer from pointer without a cast
act.wizard.c:5415: warning: passing argument 4 of ‘mudlog’ makes pointer from integer without a cast
act.wizard.c:5394: warning: unused variable ‘tmp_store’
make[1]: *** [act.wizard.o] Error 1
How do i get the rest to Work ?