Fixed. Thanks again interested for the MHS example.
Ah, I'm sorry its been a while since I checked that. I'll look into it tomorrow prollyQuote:
I'm trying to find out how to detect that I've gotten an party invite and also to accept if the id or name is in a list of players to accept from. I've used the reg exp from the first page to find the invCounterBase, but watching the memory there leads me no where. invCounterBase + 0x14 seems to always be zero for me. The reg exp gave me 0x00AFF1F0 for invCounterBase.
Can you guys please help me out?
I changed the reg exp from +0x20 to +0x24 and get the invCounterBase to: 0x00AFF1F4. Adding 0x14 gives me 0x00AFF208 and that address contains 0 for me all the time.Quote:
Ah right, here's the 'issue'.
The address you find, X = [invCounterBase + 0x14]
You should look up X before you invite, then when you get invited [invCounterBase + 0x14] changes, but you should look at the old address X. This will contain the correct value for you to send. You should change the regexp from +0x20 to +0x24 instead.
Func feedEquippedGenie($invIndex, $amount, $pid)
;//Feeds the equipped genie the amount indicated from
;//inv index
local $packet, $packetSize
$packet = '7500'
$packet &= _hex($invIndex, 2)
$packet &= _hex($amount)
$packetSize = 7
sendPacket($packet, $packetSize, $pid)
EndFunc
Func infuseExp($amount, $pid)
;//Infuses genie with your experience
;//inv index
local $packet, $packetSize
$packet = '7100'
$packet &= _hex($amount)
$packet &= '00'
$packetSize = 7
sendPacket($packet, $packetSize, $pid)
EndFunc
Func infuseSpirit($amount, $pid)
;//Infuses genie with your experience
;//inv index
local $packet, $packetSize
$packet = '7100'
$packet &= _hex($amount)
$packet &= '01'
$packetSize = 7
sendPacket($packet, $packetSize, $pid)
EndFunc
Func infuseExpCube($invIndex, $itemTypeId, $amount, $pid)
;//Infuses genie with your experience
;//inv index
local $packet, $packetSize
$packet = '6D00'
$packet &= _hex($invIndex, 4)
$packet &= '0001'
$packet &= _hex($itemTypeId)
$packet &= _hex($amount)
$packetSize = 14
sendPacket($packet, $packetSize, $pid)
EndFunc
Quote:
Woot! :handsdown:
After a long break i read up here and such cool info, thanks man !
How did you find this and do you find or know how to find the "Infuse with EXP" function :confused:Code:Func feedEquippedGenie($invIndex, $amount, $pid) ;//Feeds the equipped genie the amount indicated from ;//inv index local $packet, $packetSize $packet = '7500' $packet &= _hex($invIndex, 2) $packet &= _hex($amount) $packetSize = 7 sendPacket($packet, $packetSize, $pid) EndFunc
Is this only for NPC Shops ?Quote:
Func buyItem($itemTypeId,$shopIndex,$amount, $pid)
;//Buy $amount of items of type itemTypeId, located at shopIndex
;//shopIndex is calculated as follows:
;//Each tab in the shop has 32 available spaces, index of each space
;//starts at 0, index of each tab starts at 0. $shopIndex would then be
;//shopIndex = tabIndex * 32 + spaceIndex
;//This function could be expanded to include buying multiple items
;//simultaneously. This would require setting nBytes equal to
;//8 + 12 * nDifferent items. Add the extra items on the same way
;//as the first item.
local $packet, $packetSize
$packet = '2500'
$packet &= '01000000'
$packet &= '1c000000' ;nBytes following
$packet &= '00000000' ; i also try this with shop id like in swoosh´s sample
$packet &= '00000000'
$packet &= '00000000'
$packet &= '01000000' ;nDifferent items being bought
$packet &= _hex($itemTypeId)
$packet &= _hex($shopIndex)
$packet &= _hex($amount)
$packetSize = 38
sendPacket($packet, $packetSize, $pid)
EndFunc
it works, but the problem is after the follow function has started...the priest cant use any key.Quote:
Global $FTARGET1[5]
$FTARGET1[1] = 52
$FTARGET1[2] = IniRead($SOFTWARE_OFFSET_CONFIG, $CFG_OFFSET_ROOT_KEY, "ActionBase_Offset", "")
$FTARGET1[3] = 48
$FTARGET1[4] = 28
Global $FTARGET2[6]
$FTARGET2[1] = 52
$FTARGET2[2] = IniRead($SOFTWARE_OFFSET_CONFIG, $CFG_OFFSET_ROOT_KEY, "ActionBase_Offset", "")
$FTARGET2[3] = 48
$FTARGET2[4] = 28
$FTARGET2[5] = 32
Global $FMODE[4]
$FMODE[1] = 52
$FMODE[2] = IniRead($SOFTWARE_OFFSET_CONFIG, $CFG_OFFSET_ROOT_KEY, "ActionBase_Offset", "")
$FMODE[3] = 12
$LEADERID=$PlayerArray[0][0] ;player id to follow
$FOLMODE = _MEMORYPOINTERREAD($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $FTARGET1)
_MEMORYPOINTERWRITE($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $FTARGET2, $LEADERID)
_MEMORYPOINTERWRITE($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $FMODE, $FOLMODE[1])
$FMODE[3] = Dec("14")
_MEMORYPOINTERWRITE($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $FMODE, $FOLMODE[1])
$FMODE[3] = Dec("18")
_MEMORYPOINTERWRITE($APP_BASE_ADDRESS, $PROCESS_INFORMATION, $FMODE, $FOLMODE[1])