Jump to content

Recommended Posts

Posted

I do everything that the 1st topi say but still cant buy item on cash shop and doesnt change guild position, some1 know how fix it? (i read all topic too).

Posted

I do everything that the 1st topi say but still cant buy item on cash shop and doesnt change guild position, some1 know how fix it? (i read all topic too).

the patch does not work anymore on the latest version.

Posted

@Brynner

So, cash button dosnt work anymore?

Do you know one more way to do?

yup its because rAthena drop a support for 2012 Ragexe Clients. that's why it will no longer work.

 

the last supported version of this patch is r17435

Posted (edited)

 

SVN: 17400

 

gex.png
ylrm.png
tb2h.png
 
 

 

My Packet DB version 30

//2012-04-10aRagexeRE

packet_ver: 30

0x01FD,15,repairitem,2

0x089C,26,friendslistadd,2

0x0885,5,hommenu,2:4

0x0961,36,storagepassword,0

0x0288,-1,cashshopbuy,4:8

0x091C,26,partyinvite2,2

0x094B,19,wanttoconnection,2:6:10:14:18

0x0369,7,actionrequest,2:6

0x083C,10,useskilltoid,2:4:6

0x0439,8,useitem,2:4

0x0945,-1,itemlistwindowselected,2:4:8

0x0815,-1,reqopenbuyingstore,2:4:8:9:89

0x0817,2,reqclosebuyingstore,0

0x0360,6,reqclickbuyingstore,2

0x0811,-1,reqtradebuyingstore,2:4:8:12

0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15

0x0835,2,searchstoreinfonextpage,0

0x0838,12,searchstoreinfolistitemclick,2:6:10

0x0437,5,walktoxy,2

0x0886,6,ticksend,2

0x0871,5,changedir,2:4

0x0938,6,takeitem,2

0x0891,6,dropitem,2:4

0x086C,8,movetokafra,2:4

0x08A6,8,movefromkafra,2:4

0x0438,10,useskilltopos,2:4:6:8

0x091D,18,bookingregreq,2:4:6

0x0366,90,useskilltoposinfo,2:4:6:8:10

0x0889,6,getcharnamerequest,2

0x0884,6,solvecharname,2

0x08E5,41,bookingregreq,2:4 //Added to prevent disconnections

0x08E6,4

0x08E7,10,bookingsearchreq,2

0x08E8,-1

0x08E9,2,bookingdelreq,2

0x08EA,4

0x08EB,39,bookingupdatereq,2

0x08EC,73

0x08ED,43

0x08EE,6

0x08EF,6,bookingignorereq,2

0x08F0,6

0x08F1,6,bookingjoinpartyreq,2

0x08F2,36

0x08F3,-1

0x08F4,6

0x08F5,-1,bookingsummonmember,2:4

0x08F6,22

0x08F7,3

0x08F8,7

0x08F9,6

0x08FA,6

0x08FB,6,bookingcanceljoinparty,2

0x0907,5,moveitem,2:4

0x0908,5

0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections

0x08CF,10 //Amulet spirits

0x0977,14 //Monster HP Bar

0x0916,26,guildinvite2,2

0x0844,2,cashshopopen,0

0x084a,2,cashshopclose,0

0x08c9,4,cashshopitemlist,0

0x0848,-1,cashshopbuy,2:4:6:10

 

Server monitor map server shows the following

 

[info]: clif_parse: Disconnecting session #3 with unknown packet version, possibly for having an invalid account_id (p:0x094b,l:19).

 

it is the 0x094B,19,wanttoconnection,2:6:10:14:18.

base on your screenshots. the character selection was different to a regular one.

have you check your mmo.h? if it match with 20120410

 

possibly for having an invalid account_id (p:0x094b,l:19).

 

try to create a new character with _M/_F then just edit the sql>ragnarok>table>login>goup field to 99

 

or if you insist,do this:

open up your mysql and browse through ragnarok>tables then query the login table. find your username and change the account_id to anything that's more than 2000000. be sure to set the group to 99 if you want GM-level access.

 

and yes. I have tried it.

 

Edited by jezznar
Posted

 

@Brynner

So, cash button dosnt work anymore?

Do you know one more way to do?

yup its because rAthena drop a support for 2012 Ragexe Clients. that's why it will no longer work.

 

the last supported version of this patch is r17435

I wish u could help me in this..

Sorry to redirect you,

http://hercules.ws/board/topic/2374-i-wish-someone-would-give-a-client-like-brynner-did/

this client version is compatible with hercules emulator. but you must disable the anti wpe features of the server to make it work. or else it will not work.

Posted

 

 

@Brynner

So, cash button dosnt work anymore?

Do you know one more way to do?

yup its because rAthena drop a support for 2012 Ragexe Clients. that's why it will no longer work.

 

the last supported version of this patch is r17435

I wish u could help me in this..

Sorry to redirect you,

http://hercules.ws/board/topic/2374-i-wish-someone-would-give-a-client-like-brynner-did/

this client version is compatible with hercules emulator. but you must disable the anti wpe features of the server to make it work. or else it will not work.

What I mean is make a 2013 client that is like that.

  • 2 weeks later...
Posted (edited)

here use my own clif.c then recompile.

this is already patched manually from the latest revision. try to replace your own copy..

dont forget to recompile. hopes this helps

ALSO I TRIED IT and it WORKS.

attachicon.gifclif.c.patched.rar

Hello just to say to people that mod works fine yet, if it doesnt work to u try it:

Search for:

void clif_cashshop_ack(struct map_session_data* sd, int error)
{
	int fd = sd->fd;

	WFIFOHEAD(fd, packet_len(0x289));
	WFIFOW(fd,0) = 0x289;
	WFIFOL(fd,2) = sd->cashPoints;
#if PACKETVER < 20070711
	WFIFOW(fd,6) = TOW(error);
#else
	WFIFOL(fd,6) = sd->kafraPoints;
	WFIFOW(fd,10) = TOW(error);
#endif
	WFIFOSET(fd, packet_len(0x289));
}

void clif_cashshop_result( struct map_session_data *sd, uint16 item_id, uint16 result ){
	WFIFOHEAD( sd->fd, 16 );
	WFIFOW( sd->fd, 0 ) = 0x849;
	WFIFOL( sd->fd, 2 ) = item_id;
	WFIFOW( sd->fd, 6 ) = result;
	WFIFOL( sd->fd, 8 ) = sd->cashPoints;
	WFIFOL( sd->fd, 12 ) = sd->kafraPoints;
	WFIFOSET( sd->fd, 16 );
}

/// Request to buy item(s) from cash shop (CZ_PC_BUY_CASH_POINT_ITEM).
/// 0288 <name id>.W <amount>.W
/// 0288 <name id>.W <amount>.W <kafra points>.L (PACKETVER >= 20070711)
/// 0288 <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W }.4B*count (PACKETVER >= 20100803)
/// 0848 <packet len>.W <count>.W <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W <tab>.W }.6B*count (PACKETVER >= 20130000)
void clif_parse_cashshop_buy(int fd, struct map_session_data *sd){

	int fail = 0;
	struct s_packet_db* info;
	int cmd = RFIFOW(fd,0);

	nullpo_retv(sd);

	info = &packet_db[sd->packet_ver][cmd];

	if( sd->state.trading || !sd->npc_shopid )
		fail = 1;
	else {
#if PACKETVER < 20101116
		short nameid = RFIFOW(fd,info->pos[0]);
		short amount = RFIFOW(fd,info->pos[1]);
		int points   = RFIFOL(fd,info->pos[2]);

		fail = npc_cashshop_buy(sd, nameid, amount, points);
		clif_cashshop_ack(sd,fail);
#else
		int s_itl = (cmd==0x848)?10:4; //item _list size (depend on cmd even for 2013+)
		int len    = RFIFOW(fd,info->pos[0]);
		int points = RFIFOL(fd,info->pos[1]);
		int count  = RFIFOW(fd,info->pos[2]);
		unsigned short* item_list = (unsigned short*)RFIFOP(fd,info->pos[3]);

		if( len < 10 || len != 10 + count * s_itl){
			ShowWarning("Player %u sent incorrect cash shop buy packet (len %u:%u)!\n", sd->status.char_id, len, 10 + count * s_itl);
			return;
		}
		if(cmd==0x848){
			cashshop_buylist( sd, points, count, item_list);
		} else {
			fail = npc_cashshop_buylist(sd,points,count,item_list);
		}
#endif
	}
	clif_cashshop_ack(sd,fail);
}

Change to:

 

void clif_cashshop_ack(struct map_session_data* sd, int error)
{
	int fd = sd->fd;

	WFIFOHEAD(fd, packet_len(0x289));
	WFIFOW(fd,0) = 0x289;
	WFIFOL(fd,2) = sd->cashPoints;
#if PACKETVER < 20070711
	WFIFOW(fd,6) = TOW(error);
#else
	WFIFOL(fd,6) = sd->kafraPoints;
	WFIFOW(fd,10) = TOW(error);
#endif
	WFIFOSET(fd, packet_len(0x289));
}

#if PACKETVER >= 20120410
void clif_parse_cashshop_buy( int fd, struct map_session_data *sd ){ 
	struct s_packet_db* info = &packet_db[sd->packet_ver][RFIFOW(fd,0)]; 
	uint16 length = RFIFOW( fd, info->pos[0] );
	uint16 count = RFIFOW( fd, info->pos[1] );
 
	if( length < 10 || length < ( 10 + count * 6 ) ){ 
		return; 
	}
 
	cashshop_buylist( sd, RFIFOL( fd, info->pos[2] ),
		count, (uint16 *)RFIFOP( fd, info->pos[3] ) ); 

}
#endif 

void clif_cashshop_result( struct map_session_data *sd, uint16 item_id, uint16 result ){
	WFIFOHEAD( sd->fd, 16 );
	WFIFOW( sd->fd, 0 ) = 0x849;
	WFIFOL( sd->fd, 2 ) = item_id;
	WFIFOW( sd->fd, 6 ) = result;
	WFIFOL( sd->fd, 8 ) = sd->cashPoints;
	WFIFOL( sd->fd, 12 ) = sd->kafraPoints;
	WFIFOSET( sd->fd, 16 );
}

// TODO: find a more accurate date for this  - Brynner
#if PACKETVER < 20120410
/// Request to buy item(s) from cash shop (CZ_PC_BUY_CASH_POINT_ITEM).
/// 0288 <name id>.W <amount>.W
/// 0288 <name id>.W <amount>.W <kafra points>.L (PACKETVER >= 20070711)
/// 0288 <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W }.4B*count (PACKETVER >= 20100803)
/// 0848 <packet len>.W <count>.W <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W <tab>.W }.6B*count (PACKETVER >= 20130000)
void clif_parse_cashshop_buy(int fd, struct map_session_data *sd){

	int fail = 0;
	struct s_packet_db* info;
	int cmd = RFIFOW(fd,0);

	nullpo_retv(sd);

	info = &packet_db[sd->packet_ver][cmd];

	if( sd->state.trading || !sd->npc_shopid )
		fail = 1;
	else {
#if PACKETVER < 20101116
		short nameid = RFIFOW(fd,info->pos[0]);
		short amount = RFIFOW(fd,info->pos[1]);
		int points   = RFIFOL(fd,info->pos[2]);

		fail = npc_cashshop_buy(sd, nameid, amount, points);
		clif_cashshop_ack(sd,fail);
#else
		int s_itl = (cmd==0x848)?10:4; //item _list size (depend on cmd even for 2013+)
		int len    = RFIFOW(fd,info->pos[0]);
		int points = RFIFOL(fd,info->pos[1]);
		int count  = RFIFOW(fd,info->pos[2]);
		unsigned short* item_list = (unsigned short*)RFIFOP(fd,info->pos[3]);

		if( len < 10 || len != 10 + count * s_itl){
			ShowWarning("Player %u sent incorrect cash shop buy packet (len %u:%u)!\n", sd->status.char_id, len, 10 + count * s_itl);
			return;
		}
		if(cmd==0x848){
			cashshop_buylist( sd, points, count, item_list);
		} else {
			fail = npc_cashshop_buylist(sd,points,count,item_list);
		}
#endif
	}
	clif_cashshop_ack(sd,fail);
}
#endif

It will work fine with new revisions =)

see ya ;*

 

@edit1: Trying to solve problem with guild information.

Edited by luan122
Posted

please help I think I've done everything right steps have placed the packet that is herebut I get this error off help please

 

 

[Warning]: clif_parse: Received unsupported packet (packet 0x060d, 3 bytes received), disconnecting session #7.
 
7pr9.jpg
Posted (edited)

hello help me I have everything as they say but when you buy an item by cash buttondoes nothing or help please purchase the item

Edited by ermac
Posted

this is what I use

//2012-04-10aRagexeRE
packet_ver: 30
0x01fd,15,repairitem,2:4:6:7:9:11:13
0x089c,26,friendslistadd,2
0x0885,5,hommenu,2:4
0x0961,36,storagepassword,2:4:20
0x0288,-1,cashshopbuy,2:4:8:10
0x091c,26,partyinvite2,2
0x094b,19,wanttoconnection,2:6:10:14:18
0x0369,7,actionrequest,2:6
0x083c,10,useskilltoid,2:4:6
0x0439,8,useitem,2:4
0x0945,-1,itemlistwindowselected,2:4:8:12
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0817,2,reqclosebuyingstore,0
0x0360,6,reqclickbuyingstore,2
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0835,2,searchstoreinfonextpage,0
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0437,5,walktoxy,2
0x0886,6,ticksend,2
0x0871,5,changedir,2:4
0x0938,6,takeitem,2
0x0891,6,dropitem,2:4
0x086c,8,movetokafra,2:4
0x08a6,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x0889,6,getcharnamerequest,2
0x0884,6,solvecharname,2
0x08e6,4
0x08e7,10,bookingsearchreq,2:4:6:8:12
0x08e8,-1
0x08e9,2,bookingdelreq,0
0x08ea,4
0x08eb,39,bookingupdatereq,2
0x08ec,73
0x08ed,43
0x08ee,6
0x08ef,6,bookingignorereq,2
0x08f0,6
0x08f1,6,bookingjoinpartyreq,2
0x08f2,36
0x08f3,-1
0x08f4,6
0x08f5,-1,bookingsummonmember,2:4
0x08f6,22
0x08f7,3
0x08f8,7
0x08f9,6
0x08fa,6
0x08fb,6,bookingcanceljoinparty,2
0x0907,5,moveitem,2:4
0x0908,5
0x08d7,28,battlegroundreg,2:4 //Added to prevent disconnections
0x08cf,10 //Amulet spirits
0x0977,14 //Monster HP Bar
0x0916,26,guildinvite2,2
0x091d,18,bookingregreq,2:4:6
// New cashshop
0x0844,2,cashshopopen,0
0x084a,2,cashshopclose,0
0x08c9,2,cashshopitemlist,0
0x0848,-1,cashshopbuy,2:4:6:10
  • Upvote 3
Posted

my kro this full updated. Now do not give me that error but do not buy the item

 

 

my clientifo

 

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
<servicetype>korea</servicetype>
<servertype>sakray</servertype>
   <connection>
      <display>Ragnarok</display>
      <balloon>the balloon</balloon>
      <desc>description</desc>
      <address>xxx.xx.xx.xxx</address>
      <port>6900</port>
      <version>26</version>
      <langtype>1</langtype>
      <registrationweb></registrationweb>
        <aid>
            <admin></admin>
            <admin></admin>
            <admin></admin>
        </aid>
        <loading>
            <image></image>
        </loading>
   </connection>
</clientinfo>
Posted

hey im got an error if im buying item from cash shop menu ( not npc )

error like this

217.gif

 

i already using the packet_db.txt from the first page but im not using clif.c.patch coz it makes error on compiling if im using that patch

then what i must do ?

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...