![]() |
Loading player data - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Loading player data (/showthread.php?tid=553) |
- Misunderstood - 29-12-2006 you should be saving their save location and any other save data you want in their account data or player rec when they do /save, if they haven't I guess it would go to a standard start map(like where they start in the beginning of the game?) When they die, instead of booting them, just call playerwarp and warp them to the map and location that was saved. Or is there something specific you are having trouble with? - William - 29-12-2006 Jobs Wrote:No, no....I've got it so they warp to their last save point. I want it to load ALL of their saved data. Stats, exp, level, that kinda thing. I've got a special thing set up for the inventory already so they can't dupe. But, I want everything else to load from their last save point...not just their location.Copy the SavePlayer sub? - Misunderstood - 29-12-2006 Yea, save the player(except for the inventory?) when they do /save and load the player and warp them when they die. by load, it would do pretty much what the load player sub does, minus loading the inventory. - Tony - 30-12-2006 Isn't this just sending packets? Then when it recieves just do gettingmap = true and canmove = false or something then Player(index).variable = trim(parse(2)). Thats how I'm thinking of it.. But who knows? I only started programming about 4 weeks ago 0___0 :: Pando - Gilgamesch - 30-12-2006 Pando Wrote:Isn't this just sending packets? Then when it recieves just do gettingmap = true and canmove = false or something then Player(index).variable = trim(parse(2)). Thats how I'm thinking of it.. But who knows? I only started programming about 4 weeks ago 0___0 wtf o.O xD, i dont really get what you mean lol but as misunderstood said, you have to save everything twice, because the normal account data will be changed everytime your level up or something, but you have to do it so that the 2nd one doesnt change untill you write /save which will change the 2nd data into the ones that are in the 1st if you dont get it talk to me in msn and i ll try and help you out - Gilgamesch - 30-12-2006 man...dont you remember me? xD, i am sure you have me in your msn its: mailto:Gilgam3sch@hotmail.com - Misunderstood - 30-12-2006 No, only one file, not 2 gilga. |