![]() |
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?
|
Most of the player's attributes are stored in the mudlib
|
mudlib is a database built into graal? how can it be accessed?
|
Quote:
|
so the suggested method for other playerworlds is probably a database npc right?
|
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 |
not clientr strings, i need everybody in the server to access this string. i'll just use dbase npcs if i need nvm
|
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: 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. |
Quote:
|
could some1 explain clientr. strings?
|
Quote:
|
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.