Some Fixes

06/18/2018 19:12 savsuds#46
Quote:
Originally Posted by DerMoench14 View Post
Thats the whole trick ... for me it works.
Could you explain how you tested it?
I am not 100% tracking what you said, but with time I can figure out something out.

I didn't test it is the problem. My problem ended up being the hard coded Obs_Detect address was off.
06/18/2018 19:17 DerMoench14#47
Quote:
Originally Posted by savsuds View Post
I am not 100% tracking what you said, but with time I can figure out something out.

I didn't test it is the problem. My problem ended up being the hard coded Obs_Detect address was off.
$_g_ObsDetect_Address = 0x7BEE00 ;)
06/18/2018 20:34 savsuds#48
Quote:
Originally Posted by DerMoench14 View Post
$_g_ObsDetect_Address = 0x7BEE00 ;)
$g__NewRenderer_Function = Ptr(0x00619BB0) ; fixed version

^ was incorrect also, but wasn't the root of my problem.
06/19/2018 07:58 phat34#49
What is the pattern and offset for that $_g_ObsDetect_Address and that $g_NewRenderFunction
06/19/2018 12:14 savsuds#50
Quote:
Originally Posted by phat34 View Post
What is the pattern and offset for that $_g_ObsDetect_Address and that $g_NewRenderFunction
$_g_ObsDetect_Address = 0x007BEE00 ;Sig: 8B C8 8B 46 0C 85 C0 89 4D EC (-0x1D)

$g__NewRenderer_Function = Ptr(0x00619BB0) ; 53 8D 0C 40 A1 (-0x2B)
06/19/2018 13:41 phat34#51
What does ObsDetect do, I do not seem to have this in my code...(maybe gwa2api code...haven't checked there yet). (I am rambling)
06/22/2018 19:44 phat34#52
** BUMP ***

and.... This seems to be returning an out of bounds address and may need updating..any help on this?

Code:
$mBuildNumber = MemoryRead(GetScannedAddress('ScanBuildNumber', 0x54))

_('ScanBuildNumber:')
	AddPattern('8D8500FCFFFF8D')
06/23/2018 11:34 DerMoench14#53
Quote:
Originally Posted by phat34 View Post
** BUMP ***

and.... This seems to be returning an out of bounds address and may need updating..any help on this?

Code:
$mBuildNumber = MemoryRead(GetScannedAddress('ScanBuildNumber', 0x54))

_('ScanBuildNumber:')
	AddPattern('8D8500FCFFFF8D')
Is there really a use for it?
However:
Code:
$lTemp = GetScannedAddress('ScanBuildNumber', 0x2C)
$mBuildNumber = MemoryRead($lTemp + MemoryRead($lTemp) +5)

_('ScanBuildNumber:')
AddPattern('558BEC83EC4053568BD9')
06/30/2018 16:00 phat34#54
Quote:
Originally Posted by phat34 View Post
What does ObsDetect do, I do not seem to have this in my code...

...and in regards to new render function... does that pattern offset replace the load finished pattern/offset?

* bump *

In general I love the new load finished as far as memory usage goes.... however -- after 10 or so runs my code seems to hang at a pick up loot function and does not recover unless I manually cast shroud of distress and even then it seems shaky, unresponsive, and not accurate... has anyone experienced this phenomenon... first hour seems to go great though...
07/04/2018 00:31 Stary Pen'#55
Code:
Func tradeplayer($aagent)
	If IsPtr($aagent) <> 0 Then
		Local $lagentid = memoryread($aagent + 44, "long")
	ElseIf IsDllStruct($aagent) <> 0 Then
		Local $lagentid = DllStructGetData($aagent, "ID")
	Else
		Local $lagentid = convertid($aagent)
	EndIf
	sendpacket(8, 0x4F, $lagentid)
EndFunc

Func accepttrade()
	Return sendpacket(4, 0x07)
EndFunc

Func canceltrade()
	Return sendpacket(4, 0x01)
EndFunc

Func changeoffer()
	Return sendpacket(4, 0x05)
EndFunc

Func submitoffer($agold = 0)
	Return sendpacket(8, 0x03, $agold)
EndFunc

Func offeritem($aitemid, $aquantity = 1)
	If IsPtr($aitemid) <> 0 Then
		Local $litemid = memoryread($aitemid, "long")
		Local $lquantity = memoryread($aitemid + 75, "byte")
	ElseIf IsDllStruct($aitemid) <> 0 Then
		Local $litemid = DllStructGetData($aitemid, "ID")
		Local $lquantity = DllStructGetData($aitemid, "Quantity")
	Else
		Local $litemid = $aitemid
		Local $lquantity = memoryread(getitemptr($aitemid) + 75, "byte")
	EndIf
	If $aquantity > $lquantity Then
		Return sendpacket(12, 0x02, $litemid, $lquantity)
	Else
		Return sendpacket(12, 0x02, $litemid, $aquantity)
	EndIf
EndFunc
When account without open trade window accept trade then client crash... How fix it?
08/11/2018 18:27 phat34#56
* Please Sticky this thread! *