Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading player data
#1
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?
Reply
#2
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?
Reply
#3
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.
Reply
#4
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
Reply
#5
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
Reply
#6
man...dont you remember me? xD, i am sure you have me in your msn its:


mailto:Gilgam3sch@hotmail.com
Reply
#7
No, only one file, not 2 gilga.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)