Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-07-2003, 02:52 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Really long string lists.

Better support for exceptionally long strings would be nice.

At least until I find a way to keep track of 400+ bank accounts without having all thier names in a string.

You simply can't copy and paste when it gets that long, it cuts off the end.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #2  
Old 03-07-2003, 02:54 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
bankaccount_account1
bankaccount_account2
etc
Reply With Quote
  #3  
Old 03-07-2003, 03:09 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
heh, jagen put it perfect and simple. Have more then one string guY!

geez!



__________________
new account: Trevor
Reply With Quote
  #4  
Old 03-07-2003, 03:57 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
it would still be a nice addition :X
__________________

Reply With Quote
  #5  
Old 03-07-2003, 04:08 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by CheeToS2
it would still be a nice addition :X
Graal c++ will have much better data storage, so no worries bah
__________________
new account: Trevor
Reply With Quote
  #6  
Old 03-07-2003, 09:05 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Python523
bankaccount_account1
bankaccount_account2
etc
Sure you could do it that way. But you wouldn't be able to do things like, sort through them all and figure out what's where. Or automatically sort through them and check for empties and delete them. Or add interest automatically. Or easily list all the accounts in the bank and the total cash in the bank.

The accounts themselves are all in separate strings, it's just thier names that are in the one string. So the Bank npc can easily see what accounts it manages.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #7  
Old 03-07-2003, 11:59 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by adam


Sure you could do it that way. But you wouldn't be able to do things like, sort through them all and figure out what's where. Or automatically sort through them and check for empties and delete them. Or add interest automatically. Or easily list all the accounts in the bank and the total cash in the bank.

The accounts themselves are all in separate strings, it's just thier names that are in the one string. So the Bank npc can easily see what accounts it manages.
you could do
bankaccount_0=Account1,ammount in bank
bankaccount_1=asdfaccount,ammount in bank

this.flags=getflagkeys(bankaccount_);

in that example, this.flags = 0/{0,1};

i'm not sure if getflagkeys works serverside yet
Reply With Quote
  #8  
Old 03-08-2003, 12:11 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by adam


Sure you could do it that way. But you wouldn't be able to do things like, sort through them all and figure out what's where. Or automatically sort through them and check for empties and delete them. Or add interest automatically. Or easily list all the accounts in the bank and the total cash in the bank.

The accounts themselves are all in separate strings, it's just thier names that are in the one string. So the Bank npc can easily see what accounts it manages.
A good way to get a total value of funds is through a for() loop

NPC Code:

for (this.i=0; this.i<(maxaccounts); this.i++) {
setstring banktotoal,#v(strtofloat(#s(banktotal))+strtofloat (#s(bank_account#v(this.i)));
}



I'm not positive if that will work though. I've been away from Graal for a little too long :x
__________________
Reply With Quote
  #9  
Old 03-08-2003, 08:08 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Python523

you could do
bankaccount_0=Account1,ammount in bank
bankaccount_1=asdfaccount,ammount in bank

this.flags=getflagkeys(bankaccount_);

in that example, this.flags = 0/{0,1};

i'm not sure if getflagkeys works serverside yet
I'll give it a try sometime, must have missed that function.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #10  
Old 03-08-2003, 08:33 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by adam


must have missed that function.
You didn't miss it. Jagen just hangs out with Stefan all day
__________________
new account: Trevor
Reply With Quote
  #11  
Old 03-08-2003, 09:19 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Hey, yo. I wouldn't make a separate string for each account - it just seems wasteful. I'd code a system that makes the account list automatically overflow into a new string when its length exceeds the limit. That way you can minimise the number of strings you're using.
__________________
Reply With Quote
  #12  
Old 03-08-2003, 07:10 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by tlf288


You didn't miss it. Jagen just hangs out with Stefan all day
that is an old function o_O ive posted about it on these forums a few times too
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:50 AM.


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