Mirage Source http://www.miragesource.net/forums/ |
|
Loading player data http://www.miragesource.net/forums/viewtopic.php?f=210&t=991 |
Page 1 of 1 |
Author: | Jobs [ Fri Dec 29, 2006 10:53 pm ] |
Post subject: | Loading player data |
This is...more of an 'I need help' thing rather than a tutorial request... First off, I AM using elysium d-bugged...(though the name was a lie...I had a LOT of debugging to do xD) But I've gotten rid of the server saving players(as my other post here stated) But, what I want is that a player can only type /save and it actually save them in safe zone, or house moral maps. And I want when a player dies for it to load their last saved data...Right now, when a player dies, it kicks them from the game and takes them to the main menu saying "You have been defeated' or something close to that, in a message box. So that gets the job done...but it's rather a hassle for players to have to re-log in to be able to play again. So I want players last saved data to just load on its own when a player dies instead of them having to get kicked off... |
Author: | Misunderstood [ Fri Dec 29, 2006 11:13 pm ] |
Post subject: | |
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? |
Author: | Jobs [ Fri Dec 29, 2006 11:47 pm ] |
Post subject: | |
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. |
Author: | William [ Fri Dec 29, 2006 11:50 pm ] |
Post subject: | |
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? |
Author: | Jobs [ Fri Dec 29, 2006 11:55 pm ] |
Post subject: | |
Copy it? Sorry..but why would I need to copy that? I've already got the player datasaving just fine... What I want is for it to LOAD their saved data when they die. |
Author: | Misunderstood [ Fri Dec 29, 2006 11:57 pm ] |
Post subject: | |
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. |
Author: | Tony [ Sat Dec 30, 2006 11:27 am ] |
Post subject: | |
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 |
Author: | Gilgamesch [ Sat Dec 30, 2006 11:52 am ] |
Post subject: | |
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
:: Pando 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 |
Author: | Jobs [ Sat Dec 30, 2006 3:20 pm ] |
Post subject: | |
I've already made it so it DOESN'T update the account at any time except when a player types /save. What's your msn? It's easier to talk there than here. Mine's mailto:Jobs248@hotmail.com |
Author: | Gilgamesch [ Sat Dec 30, 2006 3:50 pm ] |
Post subject: | |
man...dont you remember me? xD, i am sure you have me in your msn its: mailto:Gilgam3sch@hotmail.com |
Author: | Misunderstood [ Sat Dec 30, 2006 4:20 pm ] |
Post subject: | |
No, only one file, not 2 gilga. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |