Rinor 59 Report post Posted June 17, 2016 can someone tell me how to make Crystal Points shows at website when enter the account in website: i have added at includes/inc.function: when i add that line Crystal and try enter page it says: Core-Error: Invalid database in selectDB() and when i remove the crystal line at inc.function the website works fine can someone tell me how to make the page work with crystal? Quote Share this post Link to post Share on other sites
Onioni 58 Report post Posted June 17, 2016 (edited) 2 hours ago, Rinor said: can someone tell me how to make Crystal Points shows at website when enter the account in website: i have added at includes/inc.function: when i add that line Crystal and try enter page it says: Core-Error: Invalid database in selectDB() and when i remove the crystal line at inc.function the website works fine can someone tell me how to make the page work with crystal? add in inc.config and find $connections and add tradedb false. also did u add define('DATABASE_TRADE', 'tradedb') in inc.constants? Edited June 17, 2016 by Onioni Quote Download: Nightmare Demonic Helm Dimension Pirates Online files: get now New map Project: Flag PK Black Skin 3.1.3 for pko 1: Get now Share this post Link to post Share on other sites
Rinor 59 Report post Posted June 18, 2016 18 hours ago, Onioni said: add in inc.config and find $connections and add tradedb false. also did u add define('DATABASE_TRADE', 'tradedb') in inc.constants? Thanks alot working perfect Quote Share this post Link to post Share on other sites
Kyren 8 Report post Posted August 15, 2016 is it possible to change Crystals to any item like GOLD coin instead of crystals ? Quote Share this post Link to post Share on other sites
Guest Report post Posted August 15, 2016 5 hours ago, Kyren said: is it possible to change Crystals to any item like GOLD coin instead of crystals ? Yes, you have to hex game.exe. Quote Share this post Link to post Share on other sites
Kyren 8 Report post Posted August 16, 2016 On 8/15/2016 at 5:02 AM, V1tor said: Yes, you have to hex game.exe. got some proof that you have to hex game.exe only? Quote Share this post Link to post Share on other sites
Guest Report post Posted August 16, 2016 3 hours ago, Kyren said: got some proof that you have to hex game.exe only? lol ain't gonna prove nothing, up to you believe me or not Quote Share this post Link to post Share on other sites
Madam Mim 0 Report post Posted April 13, 2018 hi i did this but still get white page when i add 'crystal' => Account::Getcrystals() , how to fix that? Quote Share this post Link to post Share on other sites
Onioni 58 Report post Posted April 20, 2018 On 13.4.2018 at 10:37 PM, Madam Mim said: hi i did this but still get white page when i add 'crystal' => Account::Getcrystals() , how to fix that? This is about how i did this, tho i'm not sure if there is all that needed This in index case 'getcrystals' : in tpl {$user.cryst} class.account public static function GetCrystals() { $Account = $_SESSION['aid']; $GetPts = doQuery("SELECT Money FROM AccountInfo WHERE accID=".$Account , DATABASE_TRADE); $row = mssql_fetch_array($GetPts); return $row['Money']; } inc.config $config['db']['Trade'] = array( 'host' => 'NS528477\SQLEXPRESS', 'db' => 'TradeDB', 'user' => 'TunnusWjaTjaS10', 'pass' => 'OkgiXoMZ%BdA' ); $connections = array( 'game' => false, 'account' => false, 'Auction' => false, 'Trade' => false inc.functions 'pts' => Account::GetPoints(), 'cred' => Account::GetCredits(), 'mac' => Account::FindMacAddress(), 'refpts' => Account::GetReferred(), 'cryst' => Account::GetCrystals(), 1 Quote Download: Nightmare Demonic Helm Dimension Pirates Online files: get now New map Project: Flag PK Black Skin 3.1.3 for pko 1: Get now Share this post Link to post Share on other sites
eatsangels 2 Report post Posted June 24, 2022 On 4/20/2018 at 10:46 AM, Onioni said: This is about how i did this, tho i'm not sure if there is all that needed This in index case 'getcrystals' : in tpl {$user.cryst} I did everything as you explain but it gives me an error not to show me the points. class.account public static function GetCrystals() { $Account = $_SESSION['aid']; $GetPts = doQuery("SELECT Money FROM AccountInfo WHERE accID=".$Account , DATABASE_TRADE); $row = mssql_fetch_array($GetPts); return $row['Money']; } inc.config $config['db']['Trade'] = array( 'host' => 'NS528477\SQLEXPRESS', 'db' => 'TradeDB', 'user' => 'TunnusWjaTjaS10', 'pass' => 'OkgiXoMZ%BdA' ); $connections = array( 'game' => false, 'account' => false, 'Auction' => false, 'Trade' => false inc.functions 'pts' => Account::GetPoints(), 'cred' => Account::GetCredits(), 'mac' => Account::FindMacAddress(), 'refpts' => Account::GetReferred(), 'cryst' => Account::GetCrystals(), I did everything as you explain but it gives me an error not to show me the points. Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted June 29, 2022 On 6/24/2022 at 7:21 PM, eatsangels said: I did everything as you explain but it gives me an error not to show me the points. What is the text of the error? Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites