Load Linkdead Players [by Frollo]
Snippet Posted Wednesday, August 12th @ 11:30:23 PM, by George Greer in the Wizard dept.
Added Jul 20, 1998. Click the link below to read it or download it.

From: Frollo <Mudaholic@aol.com>
Subject: Load a linkdead player

ACMD(do_linkload)
{

struct char_data *victim = 0;

struct char_file_u tmp_store;


one_argument(argument, arg);


if (!*arg) {


send_to_char("Linkload who?\r\n", ch);


return;

}

if (get_player_vis(ch, arg, 0)) {


send_to_char("They are already connected!\r\n", ch);


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 link-loaded %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("Sorry, you aren't high enough to link-load that char.\r\n", ch);



free_char(victim);


}

} else {


send_to_char("No such player exists.\r\n", ch);


free(victim);

}

return;
}


<< Load Command Changes [by The Lion King] | Reply | View as text | Flattened | Locate Object Spell [by Ryan Stapleton] >>

 


Related Links
  download
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.