Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Large variables (https://forums.graalonline.com/forums/showthread.php?t=45263)

Pokilty 06-04-2003 12:18 AM

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?

Python523 06-04-2003 12:53 AM

Most of the player's attributes are stored in the mudlib

Pokilty 06-04-2003 12:55 AM

mudlib is a database built into graal? how can it be accessed?

Python523 06-04-2003 01:02 AM

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

Pokilty 06-04-2003 01:42 AM

so the suggested method for other playerworlds is probably a database npc right?

Projectshifter 06-05-2003 09:27 PM

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

Pokilty 06-06-2003 03:39 AM

not clientr strings, i need everybody in the server to access this string. i'll just use dbase npcs if i need nvm

Admins 06-19-2003 07:42 PM

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.

Shiftk03- 06-19-2003 08:25 PM

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. :D

wonderboysp2p 06-30-2003 01:34 AM

could some1 explain clientr. strings?

Soul-Blade 06-30-2003 01:39 AM

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.

wonderboysp2p 06-30-2003 01:45 AM

cool those are what i need


All times are GMT +2. The time now is 06:47 PM.

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