Register for your free account! | Forgot your password?

You last visited: Today at 23:54

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

 

Web Shop

Closed Thread
 
Old   #1

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,088
Received Thanks: 14,267
Web Shop


Download








Epilogue:

I will gradually integrate new functions and make them more user friendly.
I hope you enjoy using this shop system i've created from the original design used by Webzen.

Credits:
- Webzen - Design
- Sedrika - Everytihing else



Sedrika is offline  
Thanks
42 Users
Old   #2

 
elite*gold: 134
Join Date: Oct 2012
Posts: 1,071
Received Thanks: 534
Gute Arbeit Sago


Chyukαsame is offline  
Old   #3
 
elite*gold: 0
Join Date: Sep 2011
Posts: 678
Received Thanks: 386
Wirklich guter Einfall und sehr gute Ausfhrung.
Marc~ is offline  
Old   #4
 
elite*gold: 85
Join Date: Jan 2012
Posts: 1,140
Received Thanks: 873
Great Thanks


Rhyder` is offline  
Old   #5

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,088
Received Thanks: 14,267
If you guys still have questions feel free to ask me here
Sedrika is offline  
Thanks
1 User
Old   #6


 
elite*gold: 132
Join Date: Oct 2008
Posts: 2,217
Received Thanks: 376
Sehr geile sache *Danke*
Dryad is offline  
Old   #7
 
elite*gold: 0
Join Date: Mar 2008
Posts: 592
Received Thanks: 151
The function OnBuyingInfo of Worldserver is a big security issue, if you want to make it safe use the OnBuyingInfo of Accountserver which is internal network only.
alfredico is offline  
Thanks
1 User
Old   #8

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,088
Received Thanks: 14,267
Thats the reason i've aded 2 checks. If they dont match you can't do anything.
Sedrika is offline  
Old   #9

 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,181
Received Thanks: 211
Kriege diese Errors

FunkyJustice is offline  
Old   #10

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,088
Received Thanks: 14,267
Das wird wohl die Funktion CDbManager::LogSMItem sein.
Kommentier alles bis auf das return aus.

Das andere msste void CDPAdbill::UserMessageHandler sein. Dort nach
g_dpDbSrvr.SendBuyingInfo( (PBUYING_INFO2)pbi3 ); alles entfernen oder auskommentieren.

#Edit:

Download

Fixed a bug with sending packets to the servers.
Sedrika is offline  
Thanks
2 Users
Old   #11

 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,181
Received Thanks: 211
So?

Code:
void CDbManager::LogSMItem( CQuery & qryLog, LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus )
{
	/*CAr arRead( lpDbOverlappedPlus->lpBuf, lpDbOverlappedPlus->uBufSize );*/
	
	/*
	bi2.szBxaid		//  ȣ
	bi2.dwItemId	//  ε
	bi2.dwItemNum	//  
	bi2.dwServerIndex	// * ε
	bi2.dwPlayerId		// ÷̾ ĺ
	bi2.dwRetVal	//   ,  : 1,  : 0
	sn		// ø ȣ
	*/
	/*BUYING_INFO2	bi2;
	SERIALNUMBER iSerialNumber;
	arRead.Read( (void*)&bi2, sizeof(BUYING_INFO2) );
	arRead >> iSerialNumber;
	
	// Źȣ : pszGetidPlayer
	// ε : dwGold // ItemName Ŀ ȸ
	LOG_SM_ITEM_INFO qi( "L3" );
	if( bi2.dwRetVal )
		qi.pszState = "3";		// 
	else
		qi.pszState = "4";		// 
	qi.nserverindex = bi2.dwServerIndex;
	char szPlayerId[128] = {0,};
	sprintf( szPlayerId, "%07d", bi2.dwPlayerId );
	qi.pszkilled_szName = szPlayerId;
	qi.nItem_UniqueNo = iSerialNumber;
	qi.nItem_count = bi2.dwItemNum;
	qi.pszGetidPlayer = bi2.szBxaid;
	qi.dwGold = bi2.dwItemId;*/
	
	//DBQryLogSMItem( lpDbOverlappedPlus->szQuery, qi);
	
	//if( FALSE == qryLog.Exec( lpDbOverlappedPlus->szQuery ) )
	//{
		//WriteLog( "%s, %d\r\n\t%s", __FILE__, __LINE__, //lpDbOverlappedPlus->szQuery );
		//m_pDbIOData->Free( lpDbOverlappedPlus );
		return;
	//}
	//m_pDbIOData->Free( lpDbOverlappedPlus );
}
FunkyJustice is offline  
Old   #12

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,088
Received Thanks: 14,267
Entfern da ruhig alles drin lieber und lass nur das return da. Sollte dann halt gehen. Und lad dir das kleine Update herunter Sonst wunderst du dich das Ingame nichts mehr ankommt
Sedrika is offline  
Old   #13

 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,181
Received Thanks: 211
Bleiben die beiden ber :

FunkyJustice is offline  
Old   #14

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,088
Received Thanks: 14,267
Ersetz die funktion mit dieser:

Code:
void CDPDBSrvr::OnBuyingInfo( CAr & ar, DPID dpid, LPBYTE lpBuf, u_long uBufSize )
{
	BUYING_INFO2	bi2;
	SERIALNUMBER iSerialNumber;
	ar.Read( (void*)&bi2, sizeof(BUYING_INFO2) );
	ar >> iSerialNumber;

	CBuyingInfoMng::GetInstance()->m_AddRemoveLock.Enter();
	PBUYING_INFO3 pbi3	= CBuyingInfoMng::GetInstance()->Get( bi2.dwKey );
	if( pbi3 )
	{
		//static char lpOutputString[260]	= { 0, };
		//sprintf( lpOutputString, "ACCOUNTSERVER.EXE\t// Recv from trans\t// dwRetVal = %d", bi2.dwRetVal );
		//OutputDebugString( lpOutputString );

		CDPAdbill::GetInstance()->Send( &bi2, sizeof(BUYING_INFO), bi2.dpid );
		CBuyingInfoMng::GetInstance()->Remove( bi2.dwKey );
		safe_delete( pbi3 );
		/*
		bi2.szBxaid		// 구매 번호
		bi2.dwItemId	// 아이템 인덱스
		bi2.dwItemNum	// 아이템 개수
		bi2.dwServerIndex	// 서버 인덱스
		bi2.dwPlayerId		// 플레이어 식별자
		bi2.dwRetVal	// 지급 성공 여부, 성공 : 1, 실패 : 0
		iSerialNumber		// 시리얼 번호
		*/

		LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus		= g_DbManager.m_pDbIOData->Alloc();
		memcpy( lpDbOverlappedPlus->lpBuf, (LPBYTE)lpBuf + sizeof(DWORD), uBufSize - sizeof(DWORD) );
		lpDbOverlappedPlus->uBufSize	= uBufSize - sizeof(DWORD);
		lpDbOverlappedPlus->nQueryMode	= LOG_SM_ITEM;
		PostQueuedCompletionStatus( g_DbManager.m_hDbCompletionPort, 1, NULL, &lpDbOverlappedPlus->Overlapped );
	}
	else
	{
		// 치명적 오류 : 어카운트 서버에는 지급 명령에 대한 정보가 없다.
	}
	CBuyingInfoMng::GetInstance()->m_AddRemoveLock.Leave();
	TRACE( "RECV PACKETTYPE_BUYING_INFO FROM TRANS\n" );
}
Ich verbesser mal das Tutorial nacher.

#edit:

Updated thread
Sedrika is offline  
Old   #15
 
elite*gold: 0
Join Date: Dec 2008
Posts: 294
Received Thanks: 51
item not send to ITEM_SEND_TBL


banktakung is offline  
Closed Thread

Tags
flyff, sedrika, shop, system, web



« Previous Thread | Next Thread »

Similar Threads
[SHOP] Steam E*Gold Shop [SHOP] ***100% Garantie***100% Qualitt***100% Preis***
Steam Account Shop Ein Design wird gesucht(einfach per pn anschreiben) Ich habe viele Steam accounts zur verfgung und biete diese mit 100%...
10 Replies - elite*gold Trading
GameKey shop oder gold shop yang shop
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...
5 Replies - Web Development



All times are GMT +1. The time now is 23:54.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.