Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-23-2008, 01:25 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
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
Reply With Quote
  #2  
Old 09-23-2008, 07:18 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
hmm, I dont know? maybe somethign with sql?
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
  #3  
Old 09-23-2008, 07:28 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
i need it for Graal script, lol.... [NPC Databases]
Reply With Quote
  #4  
Old 09-23-2008, 07:37 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Make a cache database? If the cache data is old, reload it with new data.. (Do this when updating level list or w/e)
__________________
Reply With Quote
  #5  
Old 09-23-2008, 11:26 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
I'm having trouble trying to understand your question but you might try callstacks?
http://forums.graalonline.com/forums...ad.php?t=78280
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #6  
Old 09-24-2008, 09:09 AM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
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? :{
Reply With Quote
  #7  
Old 09-24-2008, 02:02 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 [email protected] View Post
Anyone have any idea? :{
Yes, well, I have a suggestion. Start over and make a better way of handling item data.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 09-24-2008, 06:44 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Quote:
Originally Posted by xXziroXx View Post
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.
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 02:19 PM.


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