Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-01-2007, 06:29 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Overcomplicated Suit Saver

I decided I wanted to make a Suit Saver for Zodiac, and later on release the script. The end result turned out to be far more complicated of a script that I had planned, but it works really good.
  • Removes suits not saved/loaded after 31 days.
  • Allows saving, editing, loading and deleting of suits.
  • Up to 10 suits can be saved at once!
  • You are able to name the suit you save.


The system exists out of two NPCs; one wNPC, and one DBNPC.
The DBNPC has only two purposes - to store all strings, and, remove all unused suits after 31 days using timevar2 checks.


Feedback is appriciated, along with good and bad reputation. I'd rather recieve a bad rep saying that the script sucks, rather then no rep at all. Thank you!

Want to test it in-game?

Logon Zodiac, press E to bring up your Skills menu. Select "Suit Saver", then press D and it should open.
Attached Thumbnails
Click image for larger version

Name:	Image2.png
Views:	320
Size:	22.6 KB
ID:	42948  
Attached Files
File Type: txt DBNPC_SuitSaver.txt (2.5 KB, 302 views)
File Type: txt wNPC_Suit Saver.txt (5.2 KB, 275 views)
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 10-01-2007 at 06:34 PM..
Reply With Quote
  #2  
Old 10-01-2007, 06:37 AM
smirt362 smirt362 is offline
Tee Hee
smirt362's Avatar
Join Date: Feb 2005
Location: Texas
Posts: 2,101
smirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant future
Send a message via AIM to smirt362 Send a message via MSN to smirt362
It sucks...hardcore.
Coolies, I tried it out and it works pretty well. Don't know what else you could do to improve it unless you combined a tailor and a suit saver in one.
__________________

Don Hertzfeldt <3

Last edited by smirt362; 10-01-2007 at 06:52 AM..
Reply With Quote
  #3  
Old 10-01-2007, 06:52 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Its usually safer to use text files over a database NPC
__________________
Reply With Quote
  #4  
Old 10-01-2007, 06:55 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
Its usually safer to use text files over a database NPC
It's not really a NPC that require a lot of security, and I needed that DB for checking for old suits anyways.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 10-01-2007, 07:47 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Actually, in this situation, a DB npc using txt file backup is the most ideal.
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 10-01-2007, 08:08 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Me like.

I, too, prefer text files, but a DB-NPC works just as well in this case. Good job .
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #7  
Old 10-01-2007, 11:36 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Hmm, why use a DB over a text file?
I was thinking about it, and if you saved these things to a txt clientside, it would allow them to have basically infinite amount of saves, plus if they ever feel like changing them offline they can easily open up the txt and do so.
Well, now that I think about it, it makes it a global thing so they can have their suits saved no matter what computer they're on.
Reply With Quote
  #8  
Old 10-01-2007, 03:21 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
He didn't use text files because he doesn't really have any need to...it's not something that people would freak out over if somehow abused.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #9  
Old 10-01-2007, 05:19 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by DustyPorViva View Post
Hmm, why use a DB over a text file?
I was thinking about it, and if you saved these things to a txt clientside, it would allow them to have basically infinite amount of saves, plus if they ever feel like changing them offline they can easily open up the txt and do so.
Well, now that I think about it, it makes it a global thing so they can have their suits saved no matter what computer they're on.

Bingo. But perhaps a "download outfits" option could be a good addition (where outfits go to some text file clientside).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #10  
Old 10-01-2007, 06:13 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by napo_p2p View Post
Bingo. But perhaps a "download outfits" option could be a good addition (where outfits go to some text file clientside).
Hmmm. I'll fiddle around with it, when I get the time.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #11  
Old 10-01-2007, 06:26 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by zokemon View Post
Actually, in this situation, a DB npc using txt file backup is the most ideal.
Really, this is the most ideal in the situation. A DB npc alone could be accidentally reset while a plain text file has no script attached to it.
__________________
Do it with a DON!
Reply With Quote
  #12  
Old 10-01-2007, 10:44 PM
Bell Bell is offline
Registered User
Bell's Avatar
Join Date: Feb 2007
Posts: 1,824
Bell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud ofBell has much to be proud of
Its a nice, simple outfit saver although I don't care for the deletion portion after 31 days. I've saved suits for sentimental reasons even if I don't always use them. I like the fact you can name them though. Its simpler than remembering suit#'s
__________________
For support contact
http://support.toonslab.com/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:55 PM.


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