Sending Packets

07/15/2014 09:51 xjoss001#391
interest make bot pls
07/31/2014 09:45 denzjh#392
:nvm:
I just to have a target and use the useItem Function :D
08/17/2014 23:07 weberson borges#393
PRECISO DE UM PROPHET BOT QUE FUNCIONE
08/31/2014 20:41 G0liath#394
just an update to a couple packets:
Code:
Func RezToTown()
  ;Respawn in town after death
  local $packet, $packetSize

  $packet = '0400'
  $packetSize = 6

  sendPacket($packet, $packetSize, $PROCESS_ID)
EndFunc		;==>

Func RezWithScroll()
  ;Respawn in the place you died, costs a rez scroll
  local $packet, $packetSize

  $packet = '0500'
  $packetSize = 6

  sendPacket($packet, $packetSize, $PROCESS_ID)
EndFunc		;==>
09/25/2014 02:28 Stark77#395
Just in case someone needs it:

Func StartHyperEXP()
;activates hyper exp stones
local $packet, $packetSize

$packet = '7D0001'
$packetSize = 3

sendPacket($packet, $packetSize, $PROCESS_ID)
EndFunc

Func StopHyperEXP()
;stops hyper exp stones
local $packet, $packetSize

$packet = '7D0000'
$packetSize = 3

sendPacket($packet, $packetSize, $PROCESS_ID)
EndFunc
09/25/2014 16:51 bim2ial#396
anyone can help me
i was found


[Only registered and activated users can see links. Click Here To Register...]

Base Address : 0x00c9dfac is : 13229996

but i can't converting SendPacket Address :rtfm:
10/22/2014 03:38 oneormore#397
Hi Interest07

How to use SkillPointer in sendpacket
Do_Actionwith(objectId As Integer, interactionType As Integer, skillPointer As Integer)

If I targer Mob with ID : 111
Skill ID : 1017

How to use your sendpacket? Can you help me pls !
12/10/2014 12:19 Smurfin#398
Does anyone have login packet ?

I usually used autoit to run elementclient, pressed enter , then it went directly to ID PASS typing field, sent my id, pressed tab to go to password field, sent password, pressed enter twice and voila I'm in.

I can't use my 'manual' auto login now because this New Horizon Client always starts at SERVER SELECT instead of last server used which needs a manual click at [SELECT] button before going to ID PASS typing field.

Also Indonesian server is kinda stupid, we have to check [force log] sometimes or else it won't allow us to log in, it's like stuck or detected as already logged in, makes macro-ing our way in to login harder.

If anyone has the login packet please post it here, it'll be much more convenient to log in using send packet than making another macro with mouse click.

===

About accepting party, has anyone figured how to get partyInvCounter ? I've tried Interest07's instruction on page one but it gave me an error message :

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "K:\AutoIT\Reincarnation\party.au3"
K:\AutoIT\Reincarnation\party.au3 (767) : ==> Subscript used with non-Array variable.:
ConsoleWrite('invCounterBase=0x'&hex(dec(rev($sear ch[1]))+0x20)&@CRLF)
ConsoleWrite('invCounterBase=0x'&hex(dec(rev($sear ch^ ERROR
>Exit code: 1 Time: 0.522
12/11/2014 10:17 Sᴡoosh#399
Login Packets are not a C22 container packet. You'd need another function for sending them also. All packets which are sendable by the sendpacket function here on forums are character data and interaction based. You can't even send chat with it.

Cheers
12/11/2014 20:23 Smurfin#400
Ah I see, kinda wondering why the most convenient packet for login isn't around yet, turns out it's different kind of packet.

===

If anyone has packet collections for anything please add here in this thread, might be useful for making a DIY tool for whatever anyone need.
12/12/2014 22:29 Stark77#401
I would totally like to know, how to login without macros too.

As for the invite this is working for me (pwi version):
Code:
InvitePointer := ReadMemoryUint(0x00CD90D8, PlayerPID)
InviteCounter := ReadMemoryUint(InvitePointer + 0x14, PlayerPID)
revHex(revInviteCounter, InviteCounter)  
packet = %packet%1C00%revPlayerId%%revInviteCounter%
i sniffed a packet and searched for the InviteCounter-Value to find the offset (0x00CD90D8) with cheat engine.
12/13/2014 10:19 Smurfin#402
I've tried using CE, at first I search 0, then I invite using another character and search 1, then I invite using another character and search 2, I got this pointer and offset -> 0x00CA7AE8+0C, but still cant be used to accept party invite.

So memread (0x00CA7Ae8 + 0x0c) = how many times I invite my character ,
if I invite using 1 character it will have value = 1
if then I invite using another char again it will changed to 2
is that an InvitePointer or InviteCounter ?

If InviteCounter is just how many times I invite that character, why not just use acceptPartyInvite($playerId, 1, $pid) instead of acceptPartyInvite($playerId, $partyInviteCounter, $pid).

it's confusing.
12/14/2014 06:14 Stark77#403
that value of this "counter" at the end of the packet is not the amount of invites you get. it increases by 1 everytime u get an invite. but the value is mostly a high number like 67897123 (different for every process - so not starting at 0 or something). thats why i sniffed a packet to find this value.
12/14/2014 09:23 Smurfin#404
Btw what do you use for sniffing packets ? asgborges' CE plugin or Interest07's MHS script or else ?

-edit-
Finally got Interest07's MHS packet sniffer script working. Here is the Packet I received after clicking a party invite : [00771225] Packet: 1C 00 F0 3A FF 00 2D A1 8D 54
if the packet for accepting party invite is like this :
$packet = '1C00'
$packet &= _hex($playerId)
$packet &= _hex($partyInviteCounter)

1C 00 never changes, F0 3A FF 00 is my char ID read backward :D , then I guess I should read 2D A1 8D 54 from backward too and got 548DA12D = 1,418,567,981 in decimal.

Run CE, finding pointers, etc, finally got it right now, can auto accept party.
$invCounterBase=0x00CA7Ae8
$partyInviteCounter = memread(memread($invCounterBase)+0x14)

Thanks a lot !

Now what's the difference between these two addresses ?
$partyInviteCounter = memread(memread($invCounterBase)+0x14)
and
$partyInviteCounter = memread($invCounterBase+0x14)

I thought both are the same

=============

About FlyUp using packet , these are the packets received while flying up, how do I make FlyUp function with those 0_o

[0076F413] Packet: 00 00 A2 F4 DA 44 68 EE 5D 43 69 74 38 44 A2 F4 DA 44 68 EE 5D 43 69 74 38 44 FB 01 BB 00 61 4F 00
[0076F413] Packet: 00 00 A2 F4 DA 44 70 1D 5F 43 69 74 38 44 A2 F4 DA 44 70 1D 5F 43 69 74 38 44 FD 01 52 02 61 50 00
[0076F413] Packet: 00 00 A2 F4 DA 44 82 0E 61 43 69 74 38 44 A2 F4 DA 44 82 0E 61 43 69 74 38 44 F9 01 D8 03 61 51 00
[0076F413] Packet: 00 00 A2 F4 DA 44 7A CE 63 43 69 74 38 44 A2 F4 DA 44 7A CE 63 43 69 74 38 44 00 02 5F 05 61 52 00
[0076F413] Packet: 00 00 A2 F4 DA 44 10 46 67 43 69 74 38 44 A2 F4 DA 44 10 46 67 43 69 74 38 44 F7 01 E5 06 61 53 00
[0076F413] Packet: 00 00 A2 F4 DA 44 61 78 6B 43 69 74 38 44 A2 F4 DA 44 61 78 6B 43 69 74 38 44 FC 01 43 08 61 54 00
[0076F495] Packet: 07 00 A2 F4 DA 44 5B E2 6D 43 69 74 38 44 80 08 48 61 55 00 1C 01

it always ends with 07 00 bla bla bla.
12/15/2014 01:17 Stark77#405
well guess variable nameing is not really consistent... specially if ppl like me dont know much about pointers / C.

but "$partyInviteCounter = memread(memread($invCounterBase)+0x14)" should do it for you. nice that u managed to find it.

::::::::::

why do u want to flyup with packets?
just use "writeMemory(moveType, MoveAction + 0x2C)" with action structs [Only registered and activated users can see links. Click Here To Register...].
u need to set moveType=1.