iRO 21.12.2012 server merge

International

Moderator: Moderators

styuwono
Noob
Noob
Posts: 13
Joined: 23 Dec 2012, 04:54
Noob?: Yes

Re: iRO 21.12.2012 server merge

#31 Post by styuwono »

s10114618 wrote:
grande wrote:
styuwono wrote:May be you can put on creamy card on any accessory [1]. It helps my Rogue can still run for leveling.
holy cow. how can i forgot that. thx mate

tried, without the accessory[creamy] shown in the inventory, there is no way it will auto teleport.
You have to put-on your accessory [creamy] with RO client not with bot mode.
support
Noob
Noob
Posts: 11
Joined: 21 Dec 2012, 05:07
Noob?: No

Re: iRO 21.12.2012 server merge

#32 Post by support »

If you're just getting into perl, make sure you look into pack and unpack. I struggled with the patterns that were getting used in the packet_list maps until I realized its used to pack/unpack. To a new perl dev, that'll blow your mind when you realize how it works. =)

If you're a c/c++ dev, probably not. =\

I'm currently working on fixing storage. Taking me a while though. The code base is huge.
pl4y8oy
Human
Human
Posts: 48
Joined: 21 Dec 2012, 07:48
Noob?: Yes

Re: iRO 21.12.2012 server merge

#33 Post by pl4y8oy »

support wrote:If you're just getting into perl, make sure you look into pack and unpack. I struggled with the patterns that were getting used in the packet_list maps until I realized its used to pack/unpack. To a new perl dev, that'll blow your mind when you realize how it works. =)
Thanks bro. I was also getting dizzy with that :lol:

Now this clear things up a bit (if somebody else interested) ...
http://perldoc.perl.org/perlpacktut.html

... continue learning ...
pl4y8oy
Human
Human
Posts: 48
Joined: 21 Dec 2012, 07:48
Noob?: Yes

Re: iRO 21.12.2012 server merge

#34 Post by pl4y8oy »

support wrote:I'm currently working on fixing storage. Taking me a while though. The code base is huge.
Hi Support, how are you going with the storage?
are you able to define the new item construct?
I added type5 here, which is still wrong... I'm wondering if you have figured it out.

Code: Select all

# Item RECORD Struct's
	$self->{nested} = {
		items_nonstackable => { # EQUIPMENTITEM_EXTRAINFO
			type1 => {
				len => 20,
				types => 'v2 C2 v2 C2 a8',
				keys => [qw(index nameID type identified type_equip equipped broken upgrade cards)],
			},
			type2 => {
				len => 24,
				types => 'v2 C2 v2 C2 a8 l',
				keys => [qw(index nameID type identified type_equip equipped broken upgrade cards expire)],
			},
			type3 => {
				len => 26,
				types => 'v2 C2 v2 C2 a8 l v',
				keys => [qw(index nameID type identified type_equip equipped broken upgrade cards expire bindOnEquipType)],
			},
			type4 => {
				len => 28,
				types => 'v2 C2 v2 C2 a8 l v2',
				keys => [qw(index nameID type identified type_equip equipped broken upgrade cards expire bindOnEquipType sprite_id)],
			},
			type5 => {
				len => 27,
				types => 'v2 C2 v2 C2 a8 l v2', #TODO need to be corrected...
				keys => [qw(index nameID type identified type_equip equipped broken upgrade cards expire bindOnEquipType sprite_id)], #TODO need to be corrected...
			},
		},
		items_stackable => {
			type1 => {
				len => 10,
				types => 'v2 C2 v2',
				keys => [qw(index nameID type identified amount type_equip)], # type_equip or equipped?
			},
			type2 => {
				len => 18,
				types => 'v2 C2 v2 a8',
				keys => [qw(index nameID type identified amount type_equip cards)],
			},
			type3 => {
				len => 22,
				types => 'v2 C2 v2 a8 l',
				keys => [qw(index nameID type identified amount type_equip cards expire)],
			},
		},
	};

	return $self;
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: iRO 21.12.2012 server merge

#35 Post by EternalHarvest »

Stackable inventory uses something like this:

Code: Select all

			type5 => {
				len => 22,
				types => 'v2 C v2 a8 l C',
				keys => [qw(index nameID type amount type_equip cards expire identified)],
			},
Storage uses something different.
pl4y8oy
Human
Human
Posts: 48
Joined: 21 Dec 2012, 07:48
Noob?: Yes

Re: iRO 21.12.2012 server merge

#36 Post by pl4y8oy »

Hi EternalHarvest,

Yup, did that already, but the amount is always zero... now I'm trying to figure out in which byte the amount is. The length is already correct (22) since I can see all my items name in inventory correctly.

Thanks
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: iRO 21.12.2012 server merge

#37 Post by EternalHarvest »

pl4y8oy wrote:Yup, did that already, but the amount is always zero... now I'm trying to figure out in which byte the amount is.
Works for me. So you did something different, while I have the amount in the right position already.
pl4y8oy
Human
Human
Posts: 48
Joined: 21 Dec 2012, 07:48
Noob?: Yes

Re: iRO 21.12.2012 server merge

#38 Post by pl4y8oy »

EternalHarvest wrote:
pl4y8oy wrote:Yup, did that already, but the amount is always zero... now I'm trying to figure out in which byte the amount is.
Works for me. So you did something different, while I have the amount in the right position already.
yup, If I used your type5, my openkore would crashed.

may be my recvpackets.txt is wrong... just copy paste from the old items_nonstackable switch, since the packet extractor v3 doesn't work with the new ragexe.exe

Code: Select all

0900 -1 4 1
0901 -1 4 1
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: iRO 21.12.2012 server merge

#39 Post by EternalHarvest »

http://pastebin.com/nAdQN4pa

Needs testing with various items in inventory - non-identified, broken, carded, forged, brewed etc.
pl4y8oy
Human
Human
Posts: 48
Joined: 21 Dec 2012, 07:48
Noob?: Yes

Re: iRO 21.12.2012 server merge

#40 Post by pl4y8oy »

EternalHarvest wrote:http://pastebin.com/nAdQN4pa

Needs testing with various items in inventory - non-identified, broken, carded, forged, brewed etc.
took your types, and now mine works :) , but I only have non-identified and carded items in inventory. "Arrows" type also works...

ps. still can't fully understand how to play with the unpack TEMPLATE :(