Sending Packets

10/23/2010 15:32 Interest07#76
Quote:
Originally Posted by BuBucekTop View Post
Interest07, It's not so easy with skill-casting packet. You wrote:
Code:
Func useSkill($skillId, $targetId, $pid)
	;uses the specified skill on the target. Pass your own
	;Id if you wish to use buffs. When teleporting targetId
	;is the targeted city.
	local $packet, $packetSize

	$packet = '2900'
	$packet &= _hex($skillId)
	$packet &= '0001'
	$packet &= _hex($targetId)
	
	$packetSize = 12
	
	sendPacket($packet, $packetSize, $pid)
EndFunc
I've tried it using a priest on PW-RU and found that I have to write $packet &= '0701' instead of $packet &= '0001'.

Weird, yeah ? Don't you know what [0001 / 0701] in this means ?
I'm sorry, I can't reproduce that on either PWI or PW MS. Must be native to the russian version then oO

on PWI and PW-MS it is just 0001
10/24/2010 03:00 penipu81#77
how to make bot using this sending packet function or join it with MHS ?
10/24/2010 08:28 Interest07#78
You make a bot using these functions just like you'd making any other bot :P

Usually a main loop in which it checks what action to take next (i.e. go town town to restock pots / repair, move to grnding spot, find next mob to kill, kill mob, use pots if needed, etcetera). These functions are only to help you perform those tasks, the actual base bot structure isn't helped by them.
10/26/2010 22:49 Makeesh#79
Hey this is very very very VEEERYYY cool and everything is working fine on PWI :handsdown:
But can anybody tell me how to get out the $uniqueItemId and the $itemTypeId out of the memory?
I found something called ItemListBase in the memory at 00A107EC but this isnt usefull it seems ^^"
10/27/2010 08:45 Interest07#80
the list of the items on the ground can be found at the same offsets as for the [Only registered and activated users can see links. Click Here To Register...], so I don't have to bother explaining it here ;)
10/27/2010 12:39 Makeesh#81
Are you sure the offsets are working???
Cause how I use them everything went wrong xD
How do I use the offsets right?
I tipp: BaseAddress + Offset
For example: BaseAddress + Offset(PlayerHP) / 00A5BFCC + 46C
But I get a number over 4 Million O_O
This cant be right or di I use the offset in a wrong way?
P.S: The given BaseAddress on the russian site isnt working to...
10/27/2010 13:46 Interest07#82
No i meant the structure / offsets for the item list there is correct, not all the other offsets/addresses :P
10/28/2010 08:48 Smurfin#83
Quote:
Originally Posted by Interest07 View Post
useItem with $equip = 1, $index = 0xC, flyMountId is well whatever yor flymount id is.
makes you start/stop flying.
hi again Interest07, I just tried useItem with $equip=1 , $index=0xC and start flying really start flying, of cuz :D , but how to stop flying, is by changing $equip=0 supposed to make it drop off flying ? because I tried that and it still kept flying with the wings.

I'd like to be able to move anywhere by flight, on foot, or on mount if possible, but I can't turn off flying.
10/28/2010 11:04 Interest07#84
Send the same packet to stop flying :P

the "equip=1" is to indicate that the index you are using is from your equipment as opposed to your inventory.
10/28/2010 11:41 Smurfin#85
ohh lawl, it's working using the same packet, sorry for the silly question, I didn't think that just now, tricky 0 & 1 number :D
11/07/2010 01:45 sweetlady#86
Good stuff you got there Interest. I should try to convert your autoit code to C++. Wish I could use those functions in C++.
11/07/2010 08:57 Interest07#87
I did convert them to C# if that's any help?
11/07/2010 17:32 sweetlady#88
Of course, is it in the prophet-bot thread? Read all the send packet thread and found nothing.
11/07/2010 22:27 Interest07#89
Oh, I haven't posted that yet. But I'll look up the code and post that tomorrow
11/08/2010 20:56 sweetlady#90
Quote:
Originally Posted by Interest07 View Post
Oh, I haven't posted that yet. But I'll look up the code and post that tomorrow
Thx a lot m8, really appreciated :D.