Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   classes and databases (https://forums.graalonline.com/forums/showthread.php?t=81970)

[email protected] 09-23-2008 01:25 PM

classes and databases
 
so, I'm using classes as storing my item data

However, once I update the class i am getting a list of all the items in the database, not just in that one class... is there any way to pull just a list of the variables for that one class?

HTML Code:

  this.item_Not_Hiring = {
    {"controller", "+Signs"},
    {"displayname", "Not Hiring"},
    {"icon", "nothirings_sign.png"},
    {"weight", {0.0,0.0}}
  };

In one class, and in another
HTML Code:

  this.item_Yellow_Mum = {
    {"displayname", "Yellow Mum"},
    {"icon", "era_flower-1_1a.png"},
    {"weight", {0.10,0.01}}
  };

If you don't understand, I'll explain more. thanks

DrakilorP2P 09-23-2008 07:18 PM

hmm, I dont know? :\ maybe somethign with sql?

[email protected] 09-23-2008 07:28 PM

i need it for Graal script, lol.... [NPC Databases]

Chompy 09-23-2008 07:37 PM

Make a cache database? If the cache data is old, reload it with new data.. (Do this when updating level list or w/e)

Tigairius 09-23-2008 11:26 PM

I'm having trouble trying to understand your question but you might try callstacks?
http://forums.graalonline.com/forums...ad.php?t=78280

[email protected] 09-24-2008 09:09 AM

Graal: check the database first
Graal: this.item_999 is in there

Graal: now check the class and you'll see item_1, item_3 [and an old one, item_2 [in the flags of the database])
Graal: now, what I am wanting is a way
Graal: to only get item_1, item_3 from the class
Graal: i don't need item_999 from the actual database

Anyone have any idea? :{

xXziroXx 09-24-2008 02:02 PM

Quote:

Originally Posted by [email protected] (Post 1425883)
Anyone have any idea? :{

Yes, well, I have a suggestion. Start over and make a better way of handling item data.

[email protected] 09-24-2008 06:44 PM

Quote:

Originally Posted by xXziroXx (Post 1425904)
Yes, well, I have a suggestion. Start over and make a better way of handling item data.

The item system is fine, what I'm actually asking help with would optimize it.


All times are GMT +2. The time now is 02:46 PM.

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