January 19, 20233 yr Administrator 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.