![]() |
In-Game Email System
Hi
Are there any tutorials which tell you how to make an in game email system so that people can email all the admins (like a ticket system)? Regards |
This should get you started.
http://forums.graalonline.com/forums...ad.php?t=74011 Also, search code gallery for examples of SQLite usage in Graal. |
You will want to choose a way to store the data. The four main ones are:
The first one should be thrown out in this case as all information you store will be kept in memory. When Era used flags like this, we were using almost 250 MB of memory just for the database, which caused a lot of problems for the rest of the server. I would also throw out the last one since the data would still be kept in memory as long as the player was online, and RC will truncate any player flags to ~255 characters in length. In addition, if the player were to be reset, they would lose all of their mail. Both files and SQLite are acceptable in this case. I would recommend SQLite for this instance, but it has a far larger learning curve, and if you use it without understanding it you can cause major problems. If you're interested in taking the SQL route, there are some tutorials available on the internet. I started on a guide here—it's lacking a lot of stuff right now, though. Graal data files are very simple. They are simply a set of variables and values, one per line, that looks like this: PHP Code:
PHP Code:
PHP Code:
Quote:
Be careful not to give the NPC-server rights to scripts or levels unless you trust everyone on RC. Anyone with script or level rights could then download them. Either way you choose for storing data, be sure to think about how you plan to structure it first. If you use files, my recommendation would be to use a file for each player rather than one file for every player. Otherwise, it will still be loading all of that data into memory every time you check the player's mail. If you have any questions I'm happy to answer them. |
| All times are GMT +2. The time now is 03:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.