Hello, I have the logininfo.py switchbot and I use it on a server.
It's the only switchbot I can use, because this server has protection, but somehow this switchbot works, lol.
So there is no bonus switcher at the NPC directly. To buy the bonus switcher you need to click on the NPC, then a windows will appear and you need to select from a list of quests the "Bonus Switcher" and then a new window will appear and select "I want to buy Bonus switcher". So there is no actual shop that I can let open in order for the switchbot to auto buy...
How could I make my switchbot bypass this and autobuy when there is no bonus switcher in the inventory. Because like this I always have to be near the PC to buy another bonus switcher.
The code of the switchbot where it buys from the shop I think it's this:
Can you help me change this code in order to auto buy bonus switcher?
Or if there is something else I need to do, please teach me :)
It's the only switchbot I can use, because this server has protection, but somehow this switchbot works, lol.
So there is no bonus switcher at the NPC directly. To buy the bonus switcher you need to click on the NPC, then a windows will appear and you need to select from a list of quests the "Bonus Switcher" and then a new window will appear and select "I want to buy Bonus switcher". So there is no actual shop that I can let open in order for the switchbot to auto buy...
How could I make my switchbot bypass this and autobuy when there is no bonus switcher in the inventory. Because like this I always have to be near the PC to buy another bonus switcher.
The code of the switchbot where it buys from the shop I think it's this:
Code:
if player.GetItemCountByVnum(int(Switchvalue)) <= 0: for eachSlot in xrange(shop.SHOP_SLOT_COUNT): getShopItemID = shop.GetItemID(eachSlot) if getShopItemID == int(Switchvalue) and not itemVNum == int(Switchvalue): net.SendShopBuyPacket(eachSlot)
Or if there is something else I need to do, please teach me :)