i dunno how to do it i did find like some stuff and modifiyed the save this is kinda what it looks like...
proc/base_SaveMob()
// Saves the player's current mob based on the ckey of its name.
if (!mob || !mob.base_save_allowed)
return
// If we're saving verbs, move them over now.
if (base_save_verbs)
mob.base_saved_verbs = mob.verbs
var/savefile/F = base_PlayerSavefile()
var/mob_ckey = ckey(mob.name)
var/directory = "/players/[ckey]/mobs/[mob_ckey]"
F.cd = directory
F["name"] << mob.name
F["mob"] << mob
usr.client.Export(F) <<<<<<<<<<<<<<<& lt;<<<<<<< i added this part
_base_player_savefile = null
and my load is like this which doesnt look right...
proc/base_LoadMob(char_name)
// Look for a character with the ckey version of this name.
// If found, load it, set the client mob to it, and return it.
// Otherwise return null.
var/mob/new_mob
var/char_ckey = ckey(char_name)
var/savefile/F = base_PlayerSavefile()
usr << "Loading Status"
sleep(10)
usr << "Loading Inventory"
sleep(10)
usr << "Loading Character"
sleep(10)
usr << "Loading Complete"
F >> usr <<<<<<<<<<<<<<<& lt;<<<<<<<<<<<<<<& lt;<<<< i added this part
_base_player_savefile = null
F.cd = "/players/[ckey]/mobs/"
var/list/characters = F.dir
if (!characters.Find(char_ckey))
world.log << "[key]'s client.LoadCharacter() could not locate character [char_name]."
mob << "Unable to load [char_name]."
return null
F["[char_ckey]/mob"] >> new_mob
if (new_mob)
mob = new_mob
new_mob.base_InitFromSavefile()
// If we're doing verbs, set them now.
if (base_save_verbs && new_mob.base_saved_verbs)
for (var/item in new_mob.base_saved_verbs)
new_mob.verbs += item
return new_mob
return null
dont think it works it saves to my computer still its modifiyed from the Dearon.Character handling i just added the added parts thats all if theres another way can you direct me to the place or post the verb here?
</<<<<<<<<<<<<<< <<<<<<></<<<<<<< <<<<<<<<<<<<<></ <<<<<<<<<<<<<<<& lt;<<<<<></<<<<<<< <<<<<<<<<<<<<<>& lt;/<<<<<<<></<<<<< ;<<></<<<<<<<<<<< <<<<<<></<<<<<<< <<<<<<<<<<></<<< <<<<<<<<<></<<<< <<<<<<<<></<<<>< /<<<></<<<<<<<<<< <></<<<<<<<<<<<> </<<<<<<<<<<<<<< <<<<<<<<<></<<<< ></<<<<></<<<<<<< ;<<<<<<<<<<<<<<<& lt;<<<<></<<<<<<<< <<<<<<<<<<<<<<<& lt;<<<<<<<<<<></<< <<<<<<<<<<<<<<<& lt;<<<<<<<<></<<>< /<<></<<<<<></<<<< ;<></<<<<<<<<<<<< <></<<<<<<<<<<<< <></<<<<<<<<<<<< <<<<<<<<<<></<<< <<<<<<<<<<<<<<<& lt;<<<></<<<<<<<<> </<<<<<<<<></<<<< ;<<<<<<<<<<></<<< <<<<<<<<<<<></<< <<<<<<<<<<<<<<<& lt;<></<<<<<<<<<<< <<<<<<<<></<<<<< <<<<<<<<<<<<<<<& lt;<<<<<<<<<<<<></ <<<<<<<<<<<<<<<& lt;<<></<<<<<<<<<< <<<<<<<<></<<<<< <<<<<<<<<<<<<<<& lt;<<<<<<<<<<></<< <<<<<<<<<<<<<<<& lt;<<<<<<<<<<<<<<& gt;</<<<<<<<<<<<<< <<<></<<<<<<<<<< <<<<<<></<<<<<<< <<<<<<<<<<<<<<<& lt;<<></<<<<<<<<<< ></<<<<<<<<<<></< ;<<<<<></<<<<<<>< /<<<<<<<<<<<<<<<& lt;<<<<<<<<<<<<></ <<<<<<<<<></<<<< <<<<<></<<<<<<<< <<<<<<<<<<<<<<<& lt;<<<<<<></<<<<<< <<<<<<<<<></<<<< <<<<<<<<<<<></<> </<></<></<></<<<<& lt;<<<<<<<<<<<<<<& lt;<<<<<<<<<></<<< <<<<<<<<<<<<<<<& lt;<<<<<>
ID:261589
Aug 6 2002, 6:10 pm
|
|
In response to XxSsJxX
|
|
well i look before i answer so i couldnt find it ... at the bottom i put just tell me the code or point me to the direction of it.... i know if i put to much coding in the post people wont read it but i did make it simpler than putting down the whole deadron save code i only put the basic stuff that might be of help, all i really want tho is the code its not long (i dont think)
|
so just explain the basics and people will respond...
By the way why dont you just use one of the demo's or libs on the hub......