DataStorage question

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
goqsane
Neophyte Poster
Posts: 38
Joined: Mon Sep 29, 2008 2:25 am

DataStorage question

Post by goqsane »

Welcome,

I've had a brief idea about creating special "instanced" banks which will store items seperately from the world bank. Does anyone have any idea whether this idea is an easy one and the only modifications I have to commit is renaming the storageareas or is it more than that?

Thanks in advance
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: DataStorage question

Post by Yukiko »

It can be done. I have done it for something similar. You just have to remember to destroy any items left over in the bank when you are finished with it. You might hav to modify the scripts handling the World Bank a little depending on your needs but it is doable and not as hard as it may sound. After all I was able to do it!
: )
goqsane
Neophyte Poster
Posts: 38
Joined: Mon Sep 29, 2008 2:25 am

Re: DataStorage question

Post by goqsane »

Thing is, I won't be deleting any items from that storage area, but I think it doesn't really matter, does it? After all, world bank and my instanced bank are two seperate things and I have written two banker scripts already for that
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: DataStorage question

Post by Pierce »

Thing is, I won't be deleting any items from that storage area, but I think it doesn't really matter, does it?
It could matter a lot depending on the amount of items. For example a player/account doesn't exist anymore, but his/her items in your bank do. You'll later get a very large storage.txt file with items never been used or needed but always stay in memory :D
goqsane
Neophyte Poster
Posts: 38
Joined: Mon Sep 29, 2008 2:25 am

Re: DataStorage question

Post by goqsane »

Thanks for your tips! Indeed, such a possibility exists, but I'll be running some 'cleaning' scripts just to make sure all of the items stored in that Storage Area are indeed items of existing characters!

I've already implemented this system to my shard and I'm really proud of it!
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: DataStorage question

Post by Yukiko »

Goqsane,

It sounds like this "instance bank" you are using isn't tied to specific players like the regular bank then. Because if it is it's fairly easy to clean-up after dleted accounts but if it's like a "community bank" where many players can place items in it then that would be "fun" to try to keep clean.
*grins*

Anyway, I like the way the world bank works.
goqsane
Neophyte Poster
Posts: 38
Joined: Mon Sep 29, 2008 2:25 am

Re: DataStorage question

Post by goqsane »

Indeed, bankboxes are assigned to player serials, just as world bank bankboxes are, so you can figure the cleaning up part won't be very complicated ;)
Post Reply