Hello people,
first of all. I'm a big noob. Im just cooking some copy pasta out of all the bots i got to get them to do whatever i want :D So far it worked alright. Until now.
I try to add the ability to salvage runes and sell them to the runes merchant to my feather bots.... but well, i dont get it to work.
My main problem for now is the function SalvageMod() does nothing. It is part of the GWA2.au3 collection
I hope you can tell me what i do wrong ... Isn't Runes Index 0 and Insignias Index 1 ?
PS: It would be awesome if you tell me how to sell those runes to the rune merchant (request price -> sell). Would save me a lot of time since im a total noob :P
first of all. I'm a big noob. Im just cooking some copy pasta out of all the bots i got to get them to do whatever i want :D So far it worked alright. Until now.
I try to add the ability to salvage runes and sell them to the runes merchant to my feather bots.... but well, i dont get it to work.
My main problem for now is the function SalvageMod() does nothing. It is part of the GWA2.au3 collection
Code:
Func SalvageMod($aModIndex) Return SendPacket(0x8, $HEADER_SALVAGE_MODS, $aModIndex) EndFunc ;==>SalvageMod
Code:
Func CI_Salvage($BAGINDEX) Local $bag Local $I Local $AITEM $BAG = GETBAG($BAGINDEX) For $I = 1 To DllStructGetData($BAG, "slots") ;von 1 bis X slots von Bags If FindSalvageKit() = 0 Then If GETGOLDCHARACTER() < 500 And GETGOLDSTORAGE() > 499 Then WITHDRAWGOLD(500) Sleep(GetPing()+500) EndIf Local $J = 0 Do BuyItem(3, 1, 400) ;buy 3th position Sleep(GetPing()+500) $J = $J + 1 Until FindSalvageKit() <> 0 Or $J = 3 If $J = 3 Then ExitLoop Sleep(GetPing()+500) EndIf $AITEM = GETITEMBYSLOT($Bagindex, $I) If DllStructGetData($AITEM, "ID") = 0 Then ContinueLoop ;this is a skip If CheckCustomTopRunes_Array Then SalvageMod(1) ElseIf CheckCustomTopInsignias_Array Then SalvageMod(0) ElseIf CheckCustomMidRunes_Array Then SalvageMod(1) ElseIf CheckCustomMidInsignias_Array Then SalvageMod(0) ElseIf CheckCustomLowRunes_Array Then SalvageMod(1) ElseIf CheckCustomLowInsignias_Array Then SalvageMod(0) EndIf Sleep(GetPing()+500) Next EndFunc