Register for your free account! | Forgot your password?

You last visited: Today at 22:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Web Shop

Discussion on Web Shop within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Closed Thread
 
Old   #61
 
Shinji-MRT's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 155
Received Thanks: 62
Icon Problem -

Code:
szCommand
steht in der DB

In den PHP steht es mit
Code:
szComment
Wer den Error bekommt:
Code:
ERROR: The Account Information does not match!
stellt in der config dass

Code:
define( "MSSQL_TRUS", false );						// Trusting connection ( Localhost => true, Remote => false )
auf FALSE.


Problem des Item erstellens steht jedoch noch aus
Shinji-MRT is offline  
Old   #62



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,477
Quote:
Originally Posted by Sedrika View Post
Ich werde so ca gegen 21 Uhr mal ein update hier machen, danach kann man den schon auch über Web nutzen statt nur ingame.
Tut mir leid, konnte ich noch nicht aufbringen da ich noch ein paar Tests machen muss aber zu morgen kommt das ganze und dann sollte wieder mehr laufen.
Sedrika is offline  
Thanks
1 User
Old   #63



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,477
v1.1
- Added a feature to login via webbrowser.

Download on first page.
Sedrika is offline  
Thanks
1 User
Old   #64
 
Shinji-MRT's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 155
Received Thanks: 62
Hab nun nochmal alles Clean gemacht und es komplett auf der 1.1 eingefügt.
Soweit läuft erstmal die Verbindung wieder,


Außerdem sobald ich auf Bestätigen vom Kauf Klicke, kommt garnichts mehr, der shop wird leicht dunkler und das wars. Kein Failed oder ähnliches, ich muss danach den Shop neu laden.
Er hängt sich eben auf oder wartet auf ne Antwort oder sowas...

Woran könnte das liegen?


#EDIT

Hat sich erledigt, Funktioniert, muss mich jedoch zum kaufen mit dem Char auf dem ich das Item haben will, ausloggen und im Web kaufen. -> Gift Option funktioniert wunderbar.

~Shinji
Shinji-MRT is offline  
Old   #65

 
elite*gold: 353
Join Date: Jan 2013
Posts: 924
Received Thanks: 617
Quote:
Originally Posted by Shinji-MRT View Post
Hab nun nochmal alles Clean gemacht und es komplett auf der 1.1 eingefügt.
Soweit läuft erstmal die Verbindung wieder,


Außerdem sobald ich auf Bestätigen vom Kauf Klicke, kommt garnichts mehr, der shop wird leicht dunkler und das wars. Kein Failed oder ähnliches, ich muss danach den Shop neu laden.
Er hängt sich eben auf oder wartet auf ne Antwort oder sowas...

Woran könnte das liegen?


#EDIT

Hat sich erledigt, Funktioniert, muss mich jedoch zum kaufen mit dem Char auf dem ich das Item haben will, ausloggen und im Web kaufen. -> Gift Option funktioniert wunderbar.

~Shinji
Bei mir genauso bei mir werden auch keine Logs erstellt wenn ich das Item kaufe
Kiseku is offline  
Old   #66



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,477
Ich werde den Shop nocheinmal etwas überarbeiten und dann releasen. Etwas Geduld bitte
Sedrika is offline  
Thanks
2 Users
Old   #67
 
elite*gold: 0
Join Date: Dec 2012
Posts: 16
Received Thanks: 3
Warning: odbc_connect(): SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'., SQL state 28000 in SQLConnect in C:\xampp\htdocs\shop\include\class\class.odbc.php on line 35
Could Not Connect to ODBC Database!
bknoob88 is offline  
Old   #68
 
elite*gold: 0
Join Date: Oct 2014
Posts: 12
Received Thanks: 0
Really lost right now, anyone have any clue? I went through the files about 10 times. Can't figure it out.




Edit: Fixed

New problem; Buying items doesn't work, gives me an error. "Confirmation Failed", but it still uses up the Donation Points. Any one have a clue?
LokiTheTrickster is offline  
Old   #69
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Nice release.

However i dont think its complete. Cause when ever i am using the webshop in game. I dont get the item.

However when i log off and use and buy the item from there i am getting the item. The item is send to ITEM_SEND_TBL that is normal cause i aint logged in.

But when i log in. Both ways are not giving me the item directly its reducing the dpoints non the less. When i relogg the items are still not there.

Any one got tip for it?

EDIT:

Problem solved by editing the source and the Api Class.
It can know give the item directly to inventory while logged in.
raventh1984 is offline  
Old   #70
 
elite*gold: 0
Join Date: Dec 2010
Posts: 5
Received Thanks: 0
Warning: odbc_exec(): in C:\xampp\htdocs\shop\include\class\class.odbc.php on line 36

Warning: odbc_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\shop\include\class\class.odbc.php on line 44
Anyone idea?
Gabriel1943 is offline  
Old   #71
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
After making some changes to the files Source and Php i have it all working now.

I asked Sedrika if i could release the fixed website and Source snippets and it was Ok.

So Here it is Web Version 1.1.1 All Credits to their respectfull owners.



Images



Source Snippets

DPSrvr.cpp
Code:
void CDPSrvr::OnBuyingInfo( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
	BUYING_INFO2 bi2;
	ar.Read( (void*)&bi2, sizeof(BUYING_INFO2) );

	CWorld* pWorld;
	CUser* pUser	= g_UserMng.GetUser( dpidCache, dpidUser );

	/*
		100 - Save Player
		101 - Create Item
	*/
    
    if( IsValidObj( pUser )  && ( pWorld = pUser->GetWorld() ) )
    {
		if( bi2.dwParam4 != 0000000 || bi2.dwParam5 != 0000000 )
				return;
		if( bi2.dwCommand == 100 ) // Save Player
		{
			g_dpDBClient.SavePlayer( pUser, pWorld->GetID(), pUser->GetPos(), pUser->GetLayer() );
		}
		else if( bi2.dwCommand == 101 ) // Create Item
		{
			SERIALNUMBER iSerialNumber	= 0;
			CItemElem itemElem;
			itemElem.m_dwItemId			= bi2.dwItemId;
			itemElem.m_nItemNum			= (short)bi2.dwItemNum;
			itemElem.m_bCharged        = TRUE;
			BYTE nId;
			bi2.dwParam3    = pUser->CreateItem( &itemElem, &nId );
			if( bi2.dwParam3 )
			{
				CItemElem* pItemElem    = pUser->m_Inventory.GetAtId( nId );
				if( pItemElem )
				{
					iSerialNumber    = pItemElem->GetSerialNumber();
					pItemElem->m_bCharged    = TRUE;
					if( bi2.dwTargetId > 0 )
						pUser->AddDefinedText( TID_EVE_GIFT, "\"%s\" \"%s\"", itemElem.GetName(), pUser->GetName() );
				}
			}
			else
			{
				LogItemInfo aLogItem;
				aLogItem.Action = "S";
				aLogItem.SendName = pUser->GetName();
				aLogItem.WorldId = pUser->GetWorld()->GetID();
				aLogItem.Gold = aLogItem.Gold2 = pUser->GetGold();

				g_dpDBClient.SendQueryPostMail( pUser->m_idPlayer, 0, itemElem, 0, "WebShop", "" );
				aLogItem.RecvName = "HOMEPAGE_SHOP";
				g_DPSrvr.OnLogItem( aLogItem, &itemElem, itemElem.m_nItemNum );
			}
			g_dpDBClient.SendBuyingInfo( &bi2, iSerialNumber );
			g_dpDBClient.SavePlayer( pUser, pWorld->GetID(), pUser->GetPos(), pUser->GetLayer() );
		}
	}
}
Buyinginfo.h

Code:
#ifndef __CHARGEDITEM_H__
#define	__CHARGEDITEM_H__

typedef struct _BUYING_INFO
{
	DWORD	dwServerIndex;
	DWORD	dwPlayerId;
	DWORD	dwTargetId;
	DWORD	dwItemId;
	DWORD	dwItemNum;
	DWORD	dwCommand;
	DWORD	dwParam3;
	DWORD	dwParam4;
	DWORD	dwParam5;

	_BUYING_INFO()
	{
		dwServerIndex	= 0;
		dwPlayerId		= 0;
		dwTargetId		= 0;
		dwItemId		= 0;
		dwItemNum		= 0;
		dwCommand		= 0;
		dwParam3		= 0;
		dwParam4		= 0;
		dwParam5		= 0;
	}
}
BUYING_INFO, *PBUYING_INFO;

typedef struct _BUYING_INFO2: public _BUYING_INFO
{
	DWORD	dpid;
	DWORD	dwKey;
	_BUYING_INFO2() : _BUYING_INFO()
		{
			dpid	= 0xFFFFFFFF;
			dwKey	= 0;
		}
}
BUYING_INFO2, *PBUYING_INFO2;

typedef struct _BUYING_INFO3: public _BUYING_INFO2
{
	DWORD	dwTickCount;
	_BUYING_INFO3() : _BUYING_INFO2()
		{
//			dwTickCount		= GetTickCount();
		}
}
BUYING_INFO3, *PBUYING_INFO3;

#endif	// __CHARGEDITEM_H__
dpadbill.h

Code:
void	Process( void )
{
	DWORD dwTickCount	= GetTickCount();
//	static DWORD adwKey[1024];
	vector<DWORD>	adwKey;
			
	int nSize	= 0;
			
	m_AddRemoveLock.Enter();
	for( map<DWORD, PBUYING_INFO3>::iterator i = m_mapPbi3.begin(); i != m_mapPbi3.end(); ++i )
	{
		PBUYING_INFO3 pbi3	= i->second;
		if( dwTickCount - pbi3->dwTickCount > SEC( 3 ) )
		{
			CDPAdbill::GetInstance()->Send( pbi3, sizeof(BUYING_INFO), pbi3->dpid );
//			adwKey[nSize++]	= pbi3->dwKey;
			adwKey.push_back( pbi3->dwKey );
		}
	}
			
//	Remove
//	for( int j = 0; j < nSize; j++ )
	for( DWORD j = 0; j < adwKey.size(); j++ )
	{
//		PBUYING_INFO3 ptr	= CBuyingInfoMng::GetInstance()->Get( adwKey[j] );
		PBUYING_INFO3 ptr	= CBuyingInfoMng::GetInstance()->Get( adwKey[j] );
		if( ptr )
		{
			BUYING_INFO2	bi2;
			DWORD sn = 0;

			bi2.dwServerIndex	= ptr->dwServerIndex;
			bi2.dwPlayerId		= ptr->dwPlayerId;
			bi2.dwTargetId		= ptr->dwTargetId;
			bi2.dwItemId		= ptr->dwItemId;
			bi2.dwItemNum		= ptr->dwItemNum;
			bi2.dwCommand		= ptr->dwCommand;
			bi2.dwParam3		= ptr->dwParam3;
			bi2.dwParam4		= ptr->dwParam4;
			bi2.dwParam5		= ptr->dwParam5;

			CAr ar;
			ar.Write( (void*)&bi2, sizeof(BUYING_INFO2) );
			ar << sn;

			int nBufSize;
			LPBYTE lpData	= ar.GetBuffer( &nBufSize );
			LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus		= g_DbManager.m_pDbIOData->Alloc();
			memcpy( lpDbOverlappedPlus->lpBuf, lpData, nBufSize );
			lpDbOverlappedPlus->uBufSize	= nBufSize;
			lpDbOverlappedPlus->nQueryMode	= LOG_SM_ITEM;
			PostQueuedCompletionStatus( g_DbManager.m_hDbCompletionPort, 1, NULL, &lpDbOverlappedPlus->Overlapped );
		}
		Remove( adwKey[j] );
		SAFE_DELETE( ptr );
	}

	m_AddRemoveLock.Leave();

	adwKey.clear();
}

If you encounter any problems feel free to ask.

Enjoy it.

Little Update

Atm only the first Character on your account is aible to get the items.
If you whant it for the char that you log in to then you need to change this

Login.php
Code:
$Query = "SELECT [m_idPlayer] FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE [account] = %s AND [isblock] = 'F'";
				$_SESSION['m_idPlayer'] = $SQL->Exec( $Query, $_SESSION['user_id'] ) ? (int)$SQL->fetch[0]['m_idPlayer'] : false;
To this
Code:
$Query = "SELECT [m_idPlayer] FROM [CHARACTER_01_DBF].[dbo].[CHARACTER_TBL] WHERE [m_szName] = %s AND [isblock] = 'F'";
				$_SESSION['m_idPlayer'] = $SQL->Exec( $Query, $_SESSION['m_idPlayer'] ) ? $SQL->fetch[0]['m_idPlayer'] : false;
Also make sure that Character field cant be empty
Thus change this

login.php
Code:
if( !empty( $_SESSION['user_id'] ) )
To
Code:
if( !empty( $_SESSION['user_id'] ) || !empty( $_SESSION['m_idPlayer'] ) )
raventh1984 is offline  
Old   #72
 
elite*gold: 0
Join Date: Jan 2010
Posts: 40
Received Thanks: 2


Use iFlyff Source.I want to fix. Thankyou.
wanyen is offline  
Old   #73
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 76
we have 2 problems:


and the button "BUY" in game is not showed but in website it's showed
sebariio is offline  
Old   #74
 
elite*gold: 26
Join Date: Aug 2011
Posts: 45
Received Thanks: 1
Ja, gut gemacht! Aber kann ich einfach nicht anmelden...
Und noch frage, soll ich im Spiel sich anmelden?
romzik is offline  
Old   #75
 
-Venom''s Avatar
 
elite*gold: 10
Join Date: Jan 2015
Posts: 940
Received Thanks: 452
Quote:
Originally Posted by romzik View Post
Ja, gut gemacht! Aber kann ich einfach nicht anmelden...
Und noch frage, soll ich im Spiel sich anmelden?
Wenn man es richtig eingestellt hat und es richtig funktioniert dann musst du dich nicht einloggen dann ist dort ein Auto login drinne.
-Venom' is offline  
Closed Thread


Similar Threads Similar Threads
[SHOP] Steam E*Gold Shop [SHOP] ***100% Garantie***100% Qualität***100% Preis***
02/02/2014 - elite*gold Trading - 10 Replies
Steam Account Shop Ein Design wird gesucht(einfach per pn anschreiben) Ich habe viele Steam accounts zur verfügung und biete diese mit 100% Garantie für die Lebenszeit an! Besondere Angebote werden hier in diesem Thread dargestellt, Anfragen nehme ich jedoch auch gerne per PN, Post (Thread) oder Skype (akaCube) an. Als Bezahlung nehme ich E*Gold und Paysafecard an.
GameKey shop oder gold shop yang shop
06/23/2013 - Web Development - 5 Replies
Hi leute ich bin ein fauler mensch und kenne mich mit http oder php 0% aus ich suche so ein script das so sein soll wie mmoga.de oder online-gold.de igpard.com alles was ich gefunden hab war sowas wie ebay oderso also nicht virtuelle güter und goldpard.com auch villeicht könnt ihr euch die seiten mal ansehen und ob es so ein cms gibt muss nicht gleich sein nur so ähnlich



All times are GMT +1. The time now is 22:14.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.