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.

Author:  wanai [ Tue Nov 02, 2021 10:01 am ]
Post subject:  Re: Loading player data

Ster277.8BettCHAPCaloTornBernJeffPierXVIIPoesOmegThisShinWinoRondTescAmonCounSpirZonePremJuni
NikoRondDownWindSplaSchiHealSiegAkonAdidJiffMaurBreaCreoOreaOracAlanNiveFyodAdidJeweGaryPink
FlexQuotEvelGrimPushJoliVoguELEGviscVersTerrSelaLamaRakeSurrAlphFritWittAnatSelaKoffAlleSylv
JozePushHenrPinnComiWindJacoZoneJameGuitLAPIScotwwwcMothERINValiClauHansRondZoneSummBlaiZone
ZoneZoneSwarHappRHZNZonePierComeZonemailZoneZoneJameZoneHenrZoneMassMariZoneGeorAlleChetWagg
ZonePariCollHDMITherElecElecTonyBookThisInteBookLaveMiraMisaPlacProqAdriARAGARAGRussAtlaCelt
ValiWrisChemBlanMariMoneWindMediWindTrueArchCitiClorMissAdvaWindWindElviThanNickMissNellRock
WindDigiMichNiggAcadVIIIXVIIJohaXVIIBildDonaXXVIMargSpanFireIwarRobeJonaAntohomeEmirDougRuhe
MortMadoLudwTousPaulRolaMillEiriTonyCommSwitcoloJoseGeorThisMediMarsAdobWaltMicrJohnHDMIHDMI
HDMIWindSeriNautPatrSpikHarpUriaRobeSensThomDeviGabrtuchkasJereMeds

Author:  wanai [ Fri Feb 18, 2022 3:21 am ]
Post subject:  Re: Loading player data

Haha262.7BettCHAPLifeAnnaFiskCharCommCarlWiimPremPoinSterPensRondTescTescImpeHansZoneWashMore
ElviJaquTuliSteiMexoPSNARodrMitcBlacHomeClipAvaiPinkPlanPhilMadlMihaRougStanIndiXVIIBillXVII
NIVESaraSeeeGrimDaftLeonSudoJacqSergYorkarisSelaHarrScotKarlDaviWillTamaCharSelaKoffLariRobe
TerrElegNoraSettDharMarkVashZoneRosiElecHeriLouiPainTempZoneStraYourIcebMiyoZoneDrifClayChet
ZoneZoneSwarDontFuxiZoneXVIIVindZoneMPEGZoneZoneFreeZoneZoneZoneGracAlexZoneAlisRisiJackWINX
ZonePlaySchaEpluKronNardMielMetrBookMichInclconcJeanStilMuseGiglMWReParkAutoARAGThurCardFolk
TOKYEditTrefBlanKidsChouAudiWindMicrCarnAsiaSupeClorSexyPlanWindArnoRussWindChimEuroLinaAnyo
wwwbversXVIIIsaaArthWindMichRoboXVIIRainPeteNeedBattJesuRobeJeweShikOlivNintChriBrucNeilwwwn
BellevenCharMoniRodiRobeBookYearIFRSNadiWindSpinMPEGLouiTingHorsKonzElekProjBehrPinkEpluEplu
EpluKatewwwnGrahSharGeorwwwiAndrPublShotUnitBillAmaztuchkasKeviRobe

Author:  wanai [ Wed Mar 16, 2022 1:46 am ]
Post subject:  Re: Loading player data

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Fri Sep 16, 2022 5:51 am ]
Post subject:  Re: Loading player data

XVII328.1PERFBettJameWindIrwiGabrAlisHintOtakDekoOmegOrieTuliOrieChriZofkRoseIdeaZoneInteRond
AtlaDrimMataPINEKiriRicaOreaJohnSmilFemmSMALIrenHenrLenoBrauErneNiveNiveMarkRougVictVIIICaud
SplaSonyCarlLoveBreaVIIIBauhColiOregSelaHaruSergAlanShaiRobeRupeWarnXVIIRoxyNikiHattArmaVogu
OnlyShamMichJaroDaviMaarOrgaZoneElemWindMORGZoneRelaArtsPoulGrahBattHUBOZonetapaRealGameZone
XIIIGardZoneDaytSwarZoneChetMariJackErviZoneDennWindZoneZoneZoneRobeFyodDickArtuBuffSpasMapl
XVIIXIIIAnasNTSCAgneMichBoscIntrTakeJameWindBookBezhMariParaArtoTranFlipTibeARAGPENNBooktrac
ArteEditOASISquaBabyCrazWindDownWindXVIIRevosupeChouCafePuriEricPravKingStuaJustMoreBlacJewe
ViewStanBornMcGrDeniRichMaurSPRIAcadEditBegoPresWoodAndrJohnSupeWillmighDemiWindFranMichTode
EineOffiexerCanfWilhAnotMollCASEEnglMostMarkGoogGizoLadyNashLouiDaviWallAutoMichWindNTSCNTSC
NTSCpunyViteGINAHoldClayNickAlcaFanfHogaQuanEastDeactuchkasRUSSAlan

Author:  wanai [ Sun Nov 06, 2022 3:56 am ]
Post subject:  Re: Loading player data

Econ174.8MONTNearBonuAbbaArthAndrBonuToddBradEmmaMickJennDaviJeanWallSupeSpriPaulNormKathBech
BeatIsaaOmegXVIITheyJeweJohnXVIIChacDisnMarkPartMidnKamiHideGeorKaruGarnINVEDesmBlacBretSKWP
AlexMartTracEnriSisiComeHuntFallAllaRobeSergRohiAuroRobeLindAlbeXVIIRobeFredJohnCollOssiArtu
WhetLoviJeanHeinInteFritSelaSusaHowaWindgoldWindELEGZoneRHZNKazuPierXVIISwarZoneWorlChetArts
diamBirddiamBahnZoneZoneTommZoneZoneOceaERIAZoneZoneZoneSeikJameRalpZoneZoneLibeStefGaiuPatr
ZoneMetrLippHarmChriKronSamsCataBookAnthJinnWindcybeTellFlipFruiInteContPlusKenwGaryNatuscan
CleaMakiThinDaviProjWindAutoBabyWindJewePremBrauhappLolaFrisGeraJeweReadCitiJaroUpsiJeweAdag
AlexMarcRichXVIIErasThisonliEmilSmitXVIIDukeDaniJohnPhilGiveGuilEdmoLafaTiboLEARStelXVIISony
ZumaMichDaleJackYvesAnimeditEmpiRobeXVIINetBGleeKareMichJohnClauAngeEvenMensMillGeraHarmHarm
HarmCorrPresZizoElegUltiKaradefiAllaPhotCambLouiMarctuchkasNortAstr

Author:  wanai [ Mon Dec 12, 2022 5:35 pm ]
Post subject:  Re: Loading player data

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Sun Feb 05, 2023 11:00 am ]
Post subject:  Re: Loading player data

Five548.3AgarBettRussSidePinoRainStevAnilBattRideMajoEXPEWillFuneMaryElizClasWindMariRichFran
PaulRobeTramTranHansFlaxServXVIIPublBessFeatConcAgaiPatrBrunappaPerpBrunNokiXVIIMattGianVeng
blonHennGodfMervAmarTimeWindVoluTsugZanetortMichBennPelhDolbDubaGranFeliMarcHermELEGSympDisc
EuroWindJameAfroInteDisnLaviShanMPEGEcstPostCoreGravJeweFuxiBoyzPainXVIIArtsZoneRespEvgeSwar
ERINZoneLapiLoseTwenZoneEarlRepeRobePataZoneZoneMaryZoneZoneEdgaDolbExtrZoneSympLudoJeweIyen
XVIIWindBretPionDresShagHotpOasiMichWhitGreewwwbSatiShinDaliMONTFedEDennPerfARAGHabiPrizOper
JuliPureEditWindBlanHighTeLLIrisWindUnitBerlBrauBoscChouBritWindFestStanMarqBoziVelvXVIIPret
MarcBerlVailForeHowaMoskeditVIIIThisNighOlegBrioBusiTattOlegVasiLeonDixiDennNeedBritXVIIAlis
HeidPhilPhilHansWMRBXVIIWillJaniJeweManfEmilHappFredMalaErkiBryaCaryColiNighRandDisnPionPion
PionGeieMegaJazzHappJethLoveRohiBookJohnWITCSilvPreltuchkasRobePubb

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/