LF Help with a Simple Material sell/buy bot

04/06/2017 07:08 FG07#1
hey everyone, i'm writing a very simple sell/buy bot for the material trader, works perfect for buying but as soon as i change to a sell Request it just does nothing at all.


Edit:

Issue i have lies within this function and i can't for the life of me work out what it is.
Any help would be greatly appriciated.

Code:
Func TraderRequestSell($aItem)
	Local $lItemID
	Local $lFound = False
	Local $lQuoteID = MemoryRead($mTraderQuoteID)

	If IsDllStruct($aItem) = 0 Then
		$lItemID = $aItem
	Else
		$lItemID = DllStructGetData($aItem, 'ID')
	EndIf

	DllStructSetData($mRequestQuoteSell, 2, $lItemID)
	Enqueue($mRequestQuoteSellPtr, 8)

	Local $lDeadlock = TimerInit()
	Do
		Sleep(20)
		$lFound = MemoryRead($mTraderQuoteID) <> $lQuoteID
	Until $lFound Or TimerDiff($lDeadlock) > GetPing() + 5000
	Return $lFound
EndFunc   ;==>TraderRequestSell