1 Attachment(s)
[Help] CashShop an Lottery Event (1.00.18 JPN - N)
i'm researching all related about this event,any info you could have would be very appreciated until now i got this:
Code:
CASH ITEM PERIOD SYSTEM PACKETS
By Deathway
struct PMSG_REQ_PERIODITEM_INSERT
{
PBMSG_HEAD2 head; // C1:D0:03
int iUserIndex; // 4
int iUserGuid; // 8
int iItemCode; // C
int iItemPeriodDate; // 10
BYTE btItemEffectType1; // 14
BYTE btItemEffectType2; // 15
char chUserID[11]; // 16
char chExpireDate[20]; //21
};
struct PMSG_REQ_PERIODITEM_LIST
{
PBMSG_HEAD2 head; // C1:D0:05
int iUserIndex; // 4
int iUserGuid; // 8
char chCharacterName[11]; // C
};
struct PMSG_REQ_PERIODITEM_INQUIRY
{
PBMSG_HEAD2 head; // C1:D0:01
int iUserIndex; // 4
int iUserGuid; // 8
};
struct PMSG_REQ_PERIODITEM_UPDATE
{
PBMSG_HEAD2 head; // C1:D0:07
int iUserIndex; // 4
int iUserGuid; // 8
int iItemCode; // C
int iUsedTime; // 10
int iLeftTime; // 14
char chCharacterName[11]; // 18
};
struct PMSG_REQ_PERIODITEM_DELETE
{
PBMSG_HEAD2 head; // C1:D0:09
int iUserIndex; // 4
int iUserGuid; // 8
char chCharacterName[11]; // C
};
struct PMSG_ANS_PERIODITEM_LIST
{
PBMSG_HEAD2 head; // 0
int iUserIndex; // 4
int iItemCode; // 8
BYTE btEffectType1; // C
BYTE btEffectType2; // D
int iLeftTime; // 10
int iUserGuid; // 14
char btResult; // 18
};
struct PMSG_ANS_PERIODITEM_INSERT
{
PBMSG_HEAD2 head;
int iUserIndex; // 4
int iItemCode; // 8
int iItemPeriodDate; // C
BYTE btItemEffectType1; // 10
BYTE btItemEffectType2; // 11
BYTE btResult; // 12
};
struct PMSG_ANS_PERIODITEM_INSERT_RESULT
{
PBMSG_HEAD2 head; // C1:D0:03
BYTE btResult; // 4
};
struct ITEMPERIOD_INFO
{
BYTE btUsedInfo; // 0
int iUserIndex; // 4
int iUserGuid; // 8
char chCharacterName[11]; // C
int iItemCode; // 18
BYTE btEffectType1; // 1C
BYTE btEffectType2; // 1D
int iItemPeriodUsedTime; // 20
int iItemPeriodLeftTime; // 24
char chItemPeriodBuyDate[20]; // 28
char chItemPeriodEndDate[20]; // 3C
DWORD dwItemCheckTickCount; // 50
};
struct PMSG_ANS_PERIODITEM_INQUIRY
{
PBMSG_HEAD2 head;
int iUserIndex; // 4
BYTE btResult; // 8
};
struct PMSG_ANS_PERIODITEM_UPDATE
{
PBMSG_HEAD2 head;
int iUserIndex; // 4
int iItemCode; // 8
BYTE btResult; // C
};
struct PMSG_ANS_PERIODITEM_DELETE
{
PBMSG_HEAD2 head;
int iUserIndex; // 4
int iUserGuid; // 8
BYTE btResult; // C
};
Code:
#ifndef PCSPROTOCOL_H__
#define PCSPROTOCOL_H__
// By Deathway
struct sellItemPrice
{
DWORD dwPriceGuid; // 0
DWORD dwItemGuid; // 4
DWORD dwUseTime; // 8
DWORD dwAmount; // C
DWORD dwPrice; // 10
DWORD dwSellRate; // 14
};
struct sellItem
{
DWORD dwItemGuid; // 0
DWORD dwItemCODE; // 4
DWORD dwCategoryID; // 8
DWORD dwUseType; // C
DWORD dwBuyType; // 10
DWORD dwCoolTime; // 14
double dbVarEndDate; // 18
DWORD dwLimitSellCount; // 20
DWORD dwState; // 24
char szItemName[64]; // 28
char szItemDesc[128]; // 68
DWORD dwPriceCount; // E8
sellItemPrice itemPrice[8]; // EC
};
struct sellPackage
{
DWORD dwPackageGuid; // 0
sellItemPrice itemPrice; // 4
DWORD dwImageCode; // 1C
DWORD dwCategory; // 20
DWORD dwBuyType; // 24
DWORD dwLimitSellCount; // 28
DWORD dwInItemCount; // 2C
double dbVarEndDate; // 30
DWORD dwState; // 38
sellItemPrice inItemPrices[16]; // 3C
char szPackageName[64]; // 1BC
char szPackageDesc[128]; // 1FC
};
struct buyItemTransaction
{
DWORD dwTransactionGuid; // 0
DWORD dwPriceGuid; // 4
DWORD dwResult; // 8
};
namespace protocol
{
class HDRMessageID
{
WORD category; // 0
WORD messageID; // 2
};
class MSG_HEADER
{
DWORD size; // 0
DWORD id; // 4
HDRMessageID hdrid; // 4 #error maybe is an union
};
class MSG_STOG_ITEM_LIST_ANS : MSG_HEADER
{
public:
MSG_STOG_ITEM_LIST_ANS();
~MSG_STOG_ITEM_LIST_ANS();
void resize();
private:
DWORD dwItemCount; // 8
sellItem sellItems[128]; // C
};
class MSG_STOG_PACKAGE_LIST_ANS : MSG_HEADER
{
public:
MSG_STOG_PACKAGE_LIST_ANS();
~MSG_STOG_PACKAGE_LIST_ANS();
void resize();
private:
DWORD dwPackageCount; // 8
sellPackage sellPackages[96]; // C
};
class MSG_GTOS_BUY_ITEM_NTF : MSG_HEADER
{
public:
MSG_GTOS_BUY_ITEM_NTF();
~MSG_GTOS_BUY_ITEM_NTF();
void resize();
private:
DWORD dwServerGuid; // 8
DWORD dwUserGuid; // C
DWORD dwCharGuid; // 10
DWORD dwCount; // 14
buyItemTransaction transactions[16]; // 18
};
}
#endif /*PCSPROTOCOL_H__*/
Re: [DEV] CashShop an Lottery Event (1.00.18 JPN - N)
Good, but why u dont ask me for those files :P i got the whole thing.
Re: [DEV] CashShop an Lottery Event (1.00.18 JPN - N)
More informations please! I don
Re: [DEV] CashShop an Lottery Event (1.00.18 JPN - N)
[QUOTE=persektor;2949596]More informations please! I don
Re: [DEV] CashShop an Lottery Event (1.00.18 JPN - N)
Quote:
Originally Posted by
bet0x
This information released here its ONLY for those who CODE and not for "plz help me to make mu sewer".
Also, Here is some code.
Code:
void CashShopProc(PBYTE pProtocol,DWORD ProtocolLen,DWORD PlayerID)
{ //Cx len F5 [x]
BYTE szOpenClose[5]={0xC1,0x05,0xF5,0x02,0x00};
char szSend[]="DEBUG - Wazaaaaaaaa" ;
switch ( (BYTE)pProtocol[3] )
{
case 1:
// open/close windows->send0x02
//C1,06,F5,01,01,01
if ( (BYTE)pProtocol[4]== 0x01)
{
Gs_GCServerMsgStringSend (szSend,PlayerID,0x01 ) ;
}
GsDataSendFuncEx (PlayerID,(PBYTE)szOpenClose , 0x05) ;
break;
case 3:
Gs_GCServerMsgStringSend (szSend,PlayerID,0x01 ) ;
break;
case 5:
Gs_GCServerMsgStringSend (szSend,PlayerID,0x01 ) ;
break;
case 7:
Gs_GCServerMsgStringSend (szSend,PlayerID,0x01 ) ;
break;
}
}
too bad its working only with JPN clients _)))
Re: [Dev] CashShop an Lottery Event (1.00.18 JPN - N)
Well, not in an event in a store that has its servers in the style that has those in their websites with gold.
It would be the need to have the original file them or have cashshop.exe which was not released, will have to develop something so with the protocologos of MUKOREA.
Re: [Dev] CashShop an Lottery Event (1.00.18 JPN - N)
1 Attachment(s)
Re: [Dev] CashShop an Lottery Event (1.00.18 JPN - N)
Re: [Dev] CashShop an Lottery Event (1.00.18 JPN - N)
Can someone give me some informations regarding this event?