Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   RC: Chests (https://forums.graalonline.com/forums/showthread.php?t=74142)

Deadly_Killer 05-28-2007 07:59 PM

Quote:

Originally Posted by Inverness (Post 1312680)
Uh, yes it can, just use triggeraction(). The shape needs to be set on both sides.

No, you can't triggeraction to itself on server, so the client receives it.

Inverness 05-28-2007 11:52 PM

Hmm, there are other ways besides triggeraction().

Though, I suppose, with a chests system, if you really have 5000 then its best to have all data pre-loaded and only call server to flip things. Save your chest information to a variable on the clientside, not text file.

Text File = Hard Drive, Variable = RAM.

It can't be saved to a client variable for obvious reasons. Use something like player.chests

Deadly_Killer 05-29-2007 04:11 AM

Quote:

Originally Posted by Inverness (Post 1312736)
Hmm, there are other ways besides triggeraction().

Though, I suppose, with a chests system, if you really have 5000 then its best to have all data pre-loaded and only call server to flip things. Save your chest information to a variable on the clientside, not text file.

Text File = Hard Drive, Variable = RAM.

It can't be saved to a client variable for obvious reasons. Use something like player.chests

If you can't handle 4-5 mb (at tops.. ever), then.. yeah <.<.

DustyPorViva 05-29-2007 04:33 AM

Even a mb for just chests seems a little excessive.
If you're worried about an array not being accessible, maybe create a quick GUI to edit people's chests and such?

Deadly_Killer 05-29-2007 05:38 AM

2 kb = 5-6 chests already.

It isn't nothing big, a body is like a mb btw.

Inverness 05-29-2007 06:35 AM

Save that data into a clientside var, don't need large file loading everytime I change level.

Deadly_Killer 05-29-2007 06:46 AM

clientside var.

hm, I could.

do you mean something like:

Load an array called playerchests? ( so it doesnt show in attr? )

Inverness 05-29-2007 07:37 PM

You should save all chest-related information in an array called player.chests on the clientside. It would be cleared on logout so you would need to have it sent to client on login and make sure you save any changes to server.

Deadly_Killer 05-29-2007 09:23 PM

Hm, and it could be of any size :o?

Inverness 05-29-2007 10:37 PM

I have yet to find a limit on array sizes, as long as the array is only read by script and not displayed like client flags or dbnpc flags then it should be fine. You can allocate arrays in programming of any size as long as you have the memory to store the data.

Deadly_Killer 05-29-2007 11:40 PM

Quote:

Originally Posted by Inverness (Post 1313098)
I have yet to find a limit on array sizes, as long as the array is only read by script and not displayed like client flags or dbnpc flags then it should be fine. You can allocate arrays in programming of any size as long as you have the memory to store the data.

Thanks, I will change this soon. =D.

rep++

zokemon 05-30-2007 12:50 AM

Quote:

Originally Posted by Inverness (Post 1313098)
I have yet to find a limit on array sizes, as long as the array is only read by script and not displayed like client flags or dbnpc flags then it should be fine. You can allocate arrays in programming of any size as long as you have the memory to store the data.

Actually, you can put any size into a client. and clientr. variable (or any variable stored on the player's /open for that matter) but it will trim the variable when ever you edit the player using /open on RC. My solution: script your own custom /open ;o

Inverness 05-30-2007 01:01 AM

Quote:

Originally Posted by zokemon (Post 1313156)
Actually, you can put any size into a client. and clientr. variable (or any variable stored on the player's /open for that matter) but it will trim the variable when ever you edit the player using /open on RC. My solution: script your own custom /open ;o

I know this, however /open is used frequently so it cant even be considered for the large arrays.

We cant script for custom RC now can we? Stefan should fix this problem.

zokemon 05-30-2007 01:24 AM

Quote:

Originally Posted by Inverness (Post 1313163)
I know this, however /open is used frequently so it cant even be considered for the large arrays.

We cant script for custom RC now can we? Stefan should fix this problem.

I already have. ^^

MrAnonymous_P2P 05-30-2007 04:36 AM

So..........what is the purpose of all this?

Deadly_Killer 05-30-2007 07:50 AM

Quote:

Originally Posted by MrAnonymous_P2P (Post 1313268)
So..........what is the purpose of all this?

What is the purpose of this post?


All times are GMT +2. The time now is 07:27 AM.

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