Skip to content
View in the app

A better way to browse. Learn more.

Learn more

[PY] CTRL+ E Activate all potions

Featured Replies

  • Administrator

127275_039e95dc43349028096888442a9b5197.

Instalation:  game.py

 

## Add below imports

item_list = [
    [20201],
    [20202],
    [20203],
    [20204],
    [20205],
    [20206],
    [20207],
    [20208],
    [20209],
    [20210],
    [20211],
    [20212],
    [20213],
    [20214],
]

## Search

        onPressKeyDict[app.DIK_F]            = lambda : self.__PressFKey()

## Add Below

       onPressKeyDict[app.DIK_E]            = lambda : self.click_use_item()

 

## Add to the bottom of the file

    def click_use_item(self):
        if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
            for i in xrange(player.INVENTORY_PAGE_SIZE*player.INVENTORY_PAGE_COUNT):
                for s in xrange(len(item_list)):
                    if player.GetItemIndex(i) == (item_list[s][0]):
                        net.SendItemUsePacket(i)
                        break

## ATTENTION TO THE SPACES

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.