Jump to content
Banner 730x90px boost

[PY] CTRL+ E Activate all potions


Daemon

Recommended Posts

  • 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

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...