Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Graal Saving (Scripting Ideas) (https://forums.graalonline.com/forums/showthread.php?t=10395)

Warcaptain 08-26-2001 01:47 AM

Graal Saving (Scripting Ideas)
 
I had ideas to do a new saving type system with commands like:

restoredata(account) - restores the last saved data for the account.
savedata(account) - saves the data for that account (like graal does all the time)


then have a server option that says:
autosaving=true
or autosaving=false


then servers can make it more challenging by having players save their games.

I dont know quite how it would be possible, but im sure it is.

;)

08-26-2001 02:20 AM

Sounds cool, But it should auto save itselfs everytime they log off.
And the autosaving=true/false will see if it saves their data everytime they log off.

it should be a txt name: account_data

then in that it should have:

Onlinesecs: #
Rating:
Ratingdev:
Kills: #
Deaths: #
FullHearts: #
Hearts: #
Race: male/nonemale
Spinattack: yes/no
Weapons:
Flags:
Open Chest:
Last IP:
Level:
X:
Y:
Graltas: #
AP: #
MP: #
Glove: #
Bombs: #
Darts: #
Sword: #
Swordimg:
Shield: #
Shieldimg:
Headimg:
Bodyimg:
Animation:
Skingcolor:
Coatcolor:
Sleevecolor:
Shoecolor:
Beltcolor:

And whatever i missed. It can be used it their is a bug or something and someones account gets reseted we can fix it.

08-26-2001 02:22 AM

Also forgot to say it should be for all servers not just p2p, And no one accept stefan can access the folder, So the people with ftp dont change peoples stats like onlinetime/kills/deaths ect...

Warcaptain 08-26-2001 04:25 AM

it couldnt be for free servers because in order to access another account not in of the clients, it would require npc-server.

=(

sucks alot, but hey *shrugs*
thats life.

Also, it shouldnt save when you log off, it should be the players responsibility to save, thats the fun part, is saving.

08-26-2001 07:46 AM

....

slp 08-26-2001 08:15 AM

it could cuase problems
 
it might cause problems and its not safe in the ftp were other staff members can mes with.

Warcaptain 08-26-2001 11:00 AM

Then make it an option on rc, like bush time.

and make it a right that you can edit those.

Er1c 08-27-2001 01:42 AM

That idea == dumb

people could just lay down all their gralat, not save, then reconnect to the server, pick it all up. then save, and do it all again... wouldnt work warcaptain

AlexH 08-27-2001 01:45 AM

Quote:

Originally posted by Er1c
That idea == dumb

people could just lay down all their gralat, not save, then reconnect to the server, pick it all up. then save, and do it all again... wouldnt work warcaptain

that is a very good point
and i think the way graal saves just now is just fine
why does it need to be changed

Warcaptain 08-27-2001 04:38 AM

thats true, gralat would have to be rescripted using the time that they last saved and detecting if they log off without saving, then it hides the gralat.

Falcor 08-27-2001 08:07 AM

Auto save on log-off? :confused:

Warcaptain 08-27-2001 09:08 AM

that would work too, like when pressing escape it says "Exit Graal and Save Game?"

and for pause it says Save and Exit. (only if the option autosave=false)

fuzie 08-27-2001 01:06 PM

nah do that for offline version Stefan!!

Merlin 08-27-2001 11:27 PM

that could be bad
like hackers can make things that edit certain npcs to reset accounts

Jerom 08-28-2001 02:04 AM

Quote:

Originally posted by Er1c
That idea == dumb

people could just lay down all their gralat, not save, then reconnect to the server, pick it all up. then save, and do it all again... wouldnt work warcaptain

Stefan already made a cache system thingy where all your data is loaded FROM the server and not offline.
I hate the cache system because it's impossible to dupe simple things like swords, gelat, and shields now :(

Warcaptain 08-28-2001 07:06 AM

you wouldnt reset accounts, because it couldnt be done client side.

So it would be like adding weapons client side, if you tried to do it client side it wouldnt work.

oscarjf1 08-28-2001 09:00 PM

ummmm
 
There is 1 major problem with that idea....what if the player gets disconnected? Like....they are running off of a phone line (like myself) and something bumps the line somewhere...its over. They loose all of there stuff. Think about it. Youre walking around for 3 hours on graal and you get disconnected, or a power surge restarts your computer.....or you get some kinda internal error that closes graal..... It wouldnt really be fair, would it? It would be awsome if it wasnt flawed in many ways. I like the idea....but, again, the flaws....:(

Admins 08-28-2001 09:22 PM

I don't know what you are speaking about.
When the player logins to the server, the
attributes are loaded from hard disk.
All 5 minutes and when he logs off the attributes
are saved. It would be possible to move the
accounts folder of the playerworld to the
ftp folder if wanted. The file looks like this:

GRACC001
NAME Stefan
NICK screenshot: bomys come to the Dustari waterfall
LEVEL worldb-20.nw
X 41
Y 36.5
MAXHP 4
HP 4
ANI bomy_kick
GRALATS 404
ARROWS 15
BOMBS 15
HEAD bomy_naifets0.png
BODY body.png
SWORD no-sword.gif
SHIELD shield1.gif
COLORS 0,10,10,6,9
SPRITE 2
STATUS 21
AP 100
APCOUNTER 628
KILLS 8
DEATHS 36
ONSECS 418731
ATTR1 hat11.png
ATTR2 ocarina0.png
WEAPON Anchor
WEAPON Apple Seeds
WEAPON Bogen
WEAPON -Bomy-Boots
WEAPON Bomy-Spin
WEAPON -Day-Night
WEAPON Diving
WEAPON Draisine
WEAPON Drums
WEAPON Flute
WEAPON Hacky Sack 1
WEAPON Hacky Sack 2
WEAPON Hacky Sack 3
WEAPON Hacky Sack 4
WEAPON Harmonica
WEAPON Horse Whistle
WEAPON Ocarina
WEAPON Railroad
WEAPON Railroad Destroyer
WEAPON Saddle
WEAPON Saxophon
WEAPON Ski
WEAPON Spin
WEAPON Steel
WEAPON Trading Item
WEAPON Trumpet
WEAPON Violin
WEAPON -Waggon-System
WEAPON Water Can
CHEST Œ‘worldi-08.nw
CHEST |endoffishquest.nw
FLAG apples=14
FLAG appleseeds=10
FLAG birdnet=1
FLAG birdsoldweight=770
FLAG birdssize=2.09716e+06
FLAG birdsweight=150
FLAG castlestart=1682181
FLAG client.apples=14
FLAG client.appleseeds=10
FLAG client.birdnet=1
FLAG client.bombo=1
FLAG client.bomy_bombpower=42
FLAG client.bomy_Cmaxlife=100
FLAG client.bomy_morphon
FLAG client.bomy_mspeed=1.5
FLAG client.bomy_speed=0.5
FLAG client.bomy_vuln=4
FLAG client.bomycolor=0
FLAG client.bomyquest_hbrg
FLAG client.bomyquest_racet
FLAG client.bomyrace=naifets
FLAG client.coptest1=-1
FLAG client.coptest2=17
FLAG client.divgolev=worldh-06.nw
FLAG client.divgox=17.5
FLAG client.divgoy=21
FLAG client.drumscount=1
FLAG client.fishcol0=white
FLAG client.fishcol1=red
FLAG client.fishcol2=cynober
FLAG client.fishcol3=lightgreen
FLAG client.fishcol4=lightblue
FLAG client.fishrem0=white
FLAG client.fishrem1=red
FLAG client.fishrem2=cynober
FLAG client.fishrem3=lightgreen
FLAG client.fishrem4=lightblue
FLAG client.fishremb=body.png
FLAG client.fishremh=bomy_severian0.p
FLAG client.flutecount=1
FLAG client.gotfishbone1
FLAG client.gotfishbone2
FLAG client.gotfishbone3
FLAG client.gotfishbone4
FLAG client.hackyball=hackysack3.png
FLAG client.harmonicacount=1
FLAG client.hat=hat11.png
FLAG client.headbeforefish=bomy_sever
FLAG client.horsebombpower=0
FLAG client.horsebombs=0
FLAG client.horsebushes=10
FLAG client.horseimg=ride.gif
FLAG client.horserounds=4
FLAG client.isskiiing
FLAG client.kingdomsmoney=454
FLAG client.netcop=Tolerian28
FLAG client.ocarinacount=1
FLAG client.pearls=1
FLAG client.playerstroke=0
FLAG client.race=bomy
FLAG client.safariarrows=152
FLAG client.saxcount=2
FLAG client.showantora
FLAG client.skiimg=ski2.png
FLAG client.skiwax=10
FLAG client.steelcount=1
FLAG client.treewater=3
FLAG client.treewateri=0
FLAG client.treewaterx=44.5
FLAG client.treewatery=46.5
FLAG client.trumpetcount=1
FLAG client.violincount=1
FLAG client.watercan=4
FLAG cs2playing
FLAG cs2teamb
FLAG cs3teamb
FLAG csrem0=white
FLAG csrem1=redhat11.png
FLAG csrem2=redocarina0.png
FLAG csrem3=lightgreen
FLAG csrem4=lightblue
FLAG csrembc=0
FLAG csrembr=severian
FLAG csremh=bomy_birce0.png
FLAG csremn=*Stefan (Events Team)
FLAG csroundswon=0
FLAG csteamA
FLAG ctfteamb
FLAG drumscount=1
FLAG farmhatfound
FLAG fishessaved=2
FLAG flutecount=1
FLAG gotbirdmoney=1
FLAG gotbomyquestlife
FLAG gotfishquestlife
FLAG gotg3ymoney
FLAG gotpearlsmoney=2
FLAG harmonicacount=1
FLAG horsenpc=Horse6
FLAG horseracep1=2293039
FLAG horseracerounds=4
FLAG ian0.png
FLAG kingdomsmoney=454
FLAG local.activatefish
FLAG ng
FLAG ocarinacount=1
FLAG pearls=1
FLAG safaripoints=32
FLAG saxcount=2
FLAG steelcount=1
FLAG swim1pass=1157782
FLAG swim2pass=1157782
FLAG swim3pass=1.15674e+06
FLAG swim4pass=1.15674e+06
FLAG trumpetcount=1
FLAG violincount=1
FLAG watercans=2
FLAG client.bomy_Clife=100

IPRANGE *.*.*.*

(IP line removed)

Warcaptain 08-28-2001 10:10 PM

Re: ummmm
 
Quote:

Originally posted by oscarjf1
There is 1 major problem with that idea....what if the player gets disconnected? Like....they are running off of a phone line (like myself) and something bumps the line somewhere...its over. They loose all of there stuff. Think about it. Youre walking around for 3 hours on graal and you get disconnected, or a power surge restarts your computer.....or you get some kinda internal error that closes graal..... It wouldnt really be fair, would it? It would be awsome if it wasnt flawed in many ways. I like the idea....but, again, the flaws....:(
Well, lets think...

If you are playing FF8.. And all of a sudden the power goes out, or the game freezes... and you didnt save.. too bad right?

Thats what makes the game so fun, is having to save over and over.


And as for stefan's comment.

im a bit shady on what that means, but does it mean its possible?

Warcaptain 08-28-2001 11:16 PM

also maybe stefan, you should add:
NPC Code:

checkpass(account,string)



which would give more verification for saving accounts, you could check the password, by making them say their password, (when they say it right after they verify it make it turn all the characters into *'s.

Warcaptain 08-28-2001 11:24 PM

Also i was my attention was brought to 2 things:

Q.) what if they save the game and then get sent to jail.
A.) make the jailing script so if you are sent to jail it saves when you are sent there.

Q.) what if they get money, lay it and log off without saving and pick the money they layed.
A.) Make it so the only thing it auto-saves when the player logs off is bombs, arrows and darts, everything else must be done manualy.

If you have any more questions, id be glad to help :-)


All times are GMT +2. The time now is 01:14 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.