Jump to content
Rinor

website IGS Points

Recommended Posts

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:
crystal.png

when i add that line Crystal and try enter page it says: Core-Error: Invalid database in selectDB()
Error.png
  
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?

Share this post


Link to post
Share on other sites
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:
crystal.png

when i add that line Crystal and try enter page it says: Core-Error: Invalid database in selectDB()
Error.png
  
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 by Onioni

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
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 :)

Share this post


Link to post
Share on other sites
Guest
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.

Share this post


Link to post
Share on other sites
Guest
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

Share this post


Link to post
Share on other sites
On 13.4.2018 at 10:37 PM, Madam Mim said:

hi
i did this
Untitled.png

 

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(),

 

  • Like 1

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

Share this post


Link to post
Share on other sites
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?


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...