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 06-04-2003, 12:18 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Large variables

Where do servers like Graal Kingdoms a save their huge variables? Like in the kingdoms on G2K2 you can look up every player in each kingdom, their rank, status, and a huge amount of other things. Is the G2K2 serverstring list huge or use getnpc with database npcs or what?
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #2  
Old 06-04-2003, 12:53 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Most of the player's attributes are stored in the mudlib
Reply With Quote
  #3  
Old 06-04-2003, 12:55 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
mudlib is a database built into graal? how can it be accessed?
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #4  
Old 06-04-2003, 01:02 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Pokilty
mudlib is a database built into graal? how can it be accessed?
It's an add on to the npcserver, it's only avaliable on graal2002
Reply With Quote
  #5  
Old 06-04-2003, 01:42 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
so the suggested method for other playerworlds is probably a database npc right?
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #6  
Old 06-05-2003, 09:27 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
For Player attribs? No way, clientr.strings!
But the mudlibs basically save into .txt files, and it stores into temporary clientr.strings on the player so that Graal can read them.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #7  
Old 06-06-2003, 03:39 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
not clientr strings, i need everybody in the server to access this string. i'll just use dbase npcs if i need nvm
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #8  
Old 06-19-2003, 07:42 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Bes way is to store the data in the players account (strings without any . in it), and only copy to clientr. strings when you want the player to display it. To get the stuff from another online player you can use with (getplayer()). Imagine you store the items in item#v(itemid) strings, and the current player wants to get the item information from player 'Stefan':

NPC Code:

itemid = 0;
setstring this.item,;
with (getplayer(Stefan)) {
setstring this.item,#s(item#v(itemid));
}
setstring clientr.otheritem#v(itemid),#s(this.item);



That copies the item0 string from 'Stefan' into this.item, and then copies to some clientr. string so that the current player can display it.
Reply With Quote
  #9  
Old 06-19-2003, 08:25 PM
Shiftk03- Shiftk03- is offline
I am the trap
Shiftk03-'s Avatar
Join Date: Nov 2001
Location: Dirty South
Posts: 1,688
Shiftk03- will become famous soon enough
Quote:
Originally posted by Stefan
Bleh
I'm watching your postings closely Stefan. I'm waiting for you to slip up so I can correct you before Kaimetsu or someone else does and then brag about it.
__________________
Reply With Quote
  #10  
Old 06-30-2003, 01:34 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
could some1 explain clientr. strings?
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #11  
Old 06-30-2003, 01:39 AM
Soul-Blade Soul-Blade is offline
US Marine
Soul-Blade's Avatar
Join Date: Jul 2001
Location: Coeur d'Alene, ID
Posts: 945
Soul-Blade is an unknown quantity at this point
Send a message via AIM to Soul-Blade
Quote:
Originally posted by wonderboysp2p
could some1 explain clientr. strings?
Strings which can only be set/edited by serverside NPCs, and can be read by the client.
Reply With Quote
  #12  
Old 06-30-2003, 01:45 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
cool those are what i need
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
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 03:35 PM.


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