need help w cupcake on pongmei bot

11/01/2023 22:56 1337Uriel#1
id like to use cupcakes every run of pongmei. ill gladly give 250e in game or something similar. will somone help me with placement of this/and check for error. thanks,



Func UseCupcake()
Local $aBag
Local $aItem
Sleep(200)
For $i = 1 To 4
$aBag = GetBag($i)
For $j = 1 To DllStructGetData($aBag, "Slots")
$aItem = GetItemBySlot($aBag, $j)
If DllStructGetData($aItem, "ModelID") == 22269 Then
UseItem($aItem)
Return True
EndIf
Next
Next
EndFunc
11/02/2023 10:25 Mrjambix#2
Quote:
Originally Posted by 1337Uriel View Post
id like to use cupcakes every run of pongmei. ill gladly give 250e in game or something similar. will somone help me with placement of this/and check for error. thanks,



Func UseCupcake()
Local $aBag
Local $aItem
Sleep(200)
For $i = 1 To 4
$aBag = GetBag($i)
For $j = 1 To DllStructGetData($aBag, "Slots")
$aItem = GetItemBySlot($aBag, $j)
If DllStructGetData($aItem, "ModelID") == 22269 Then
UseItem($aItem)
Return True
EndIf
Next
Next
EndFunc
Restructured the code a bit for cleaner improvements and simplifications.
Code:
Func UseCupcake()
    For $i = 1 To 4
        Local $aBag = GetBag($i)
        If Not IsDllStruct($aBag) Then ContinueLoop

        Local $iSlots = DllStructGetData($aBag, "Slots")
        For $j = 1 To $iSlots
            Local $aItem = GetItemBySlot($aBag, $j)
            If IsDllStruct($aItem) And DllStructGetData($aItem, "ModelID") == 22269 Then
                UseItem($aItem)
                Return True
            EndIf
        Next
    Next
    Return False
EndFunc
12/10/2023 02:48 CosmicGates#3
Hi, this bot crashed when it went to merch items. Was wondering if this was fixable?

suddenly this just stopped working. wont start the bot at all when you hit start.
01/23/2024 12:15 Death_Fire#4
Hey,
I tried this Bot and its working, but if I start it on my normal account ( the sin is better and has all Skills + City etc) the Bot is doing nothing.
Check Box is loading the Character, all fine. Sometimes hes travelling to Boreas sometimes not. If is press "start" nothing happens
With the other accounts it is working
Any Ideas?
05/26/2024 02:01 ATbs#5
Quote:
Originally Posted by Death_Fire View Post
Hey,
I tried this Bot and its working, but if I start it on my normal account ( the sin is better and has all Skills + City etc) the Bot is doing nothing.
Check Box is loading the Character, all fine. Sometimes hes travelling to Boreas sometimes not. If is press "start" nothing happens
With the other accounts it is working
Any Ideas?
What i found out is that sometimes u see the "this character doesn't meet the requirements for hard mode" and it wont do nothing. If that happens manually travel to the map and it will go.

That message shows in game, not in the bot.