Quote:
Originally Posted by msxgames
Oki, issue 1 is solved now. The problem with this function is that the playerOffSet has been changed and this offset is hard coded in the source.
Issue 2 is still bothering me. Apparently PWI uses a different structure of the packet for the ´hand in quest´ function since the genesis patch. I found some small tutorial to read the stack when the sendpacket function is called. My knowledge is a bit limited on this. Can someone please provide or show me a tutorial on how to find the correct packet structure. I found Prophetbot still using the ´old´ packet structure, maybe not correct... or am I wrong?
Edit: I found  that gives the output that I need, but couldn´t find the source code.
|
I have not converted it yet but here is the read out. I have to give this hands down to Interesto7 for showing me how this was done.
[0066EFB3] Packet: 25 00 06 00 00 00 08 00 00 00 97 04 00 00 00 00 00 00
[0066CF75] Packet: 09 00 00 01
Edit: This is what works for me after converting it.
Func handInQuest($questId,$optionIndex)
;Hand in quest, select reward optionIndex,
;which runs from 0 for first option, to more.
local $packet, $packetSize
$packet = '2500'
$packet &= '06000000'
$packet &= '08000000'
$packet &= _hex($questId)
$packet &= _hex($optionIndex)
$packet &= '09000001'
$packetSize = 18
sendPacket($packet, $packetSize, $PROCESS_ID)
EndFunc ;==>