Jump to content
Flourine

c++ Auto Opener by CMD

Recommended Posts

Hi, 

i did command that can be used for auto opener of items (like 27987)

Code of func. is here https://paste.ubuntu.com/p/YPGX6ZXsXg/

Example: /fast_opener itemvnum howMuchtoOpen positionOfItem

Share this post


Link to post
                elif self.IsTreasureBox(itemSlotIndex):
                    self.SendMultipleUseItemPacket(itemSlotIndex)    

  

  def IsTreasureBox(self, slotIndex):
        itemVnum = player.GetItemIndex(slotIndex)
        item.SelectItem(itemVnum)
        
        if item.GetItemType() == item.ITEM_TYPE_GIFTBOX:
            return True            
        treasures = {
            0: 27987,
            1: 50024,
            2: 50025,
            3: 50031,
            4: 50032,
            5: 80003,
        }
        
        if itemVnum in treasures.values():
            return True
            
        return False    
	def SendMultipleUseItemPacket(self, slotIndex):	
		for i in xrange(player.GetItemCount(slotIndex)):
			self.__SendUseItemPacket(slotIndex)	

 

Share this post


Link to post
2 godziny temu, ManiacRobert napisał:

                elif self.IsTreasureBox(itemSlotIndex):
                    self.SendMultipleUseItemPacket(itemSlotIndex)    

  


  def IsTreasureBox(self, slotIndex):
        itemVnum = player.GetItemIndex(slotIndex)
        item.SelectItem(itemVnum)
        
        if item.GetItemType() == item.ITEM_TYPE_GIFTBOX:
            return True            
        treasures = {
            0: 27987,
            1: 50024,
            2: 50025,
            3: 50031,
            4: 50032,
            5: 80003,
        }
        
        if itemVnum in treasures.values():
            return True
            
        return False    

	def SendMultipleUseItemPacket(self, slotIndex):	
		for i in xrange(player.GetItemCount(slotIndex)):
			self.__SendUseItemPacket(slotIndex)	

 

I can't python thats why i did like that.

Share this post


Link to post
2 hours ago, ManiacRobert said:

                elif self.IsTreasureBox(itemSlotIndex):
                    self.SendMultipleUseItemPacket(itemSlotIndex)    

  


  def IsTreasureBox(self, slotIndex):
        itemVnum = player.GetItemIndex(slotIndex)
        item.SelectItem(itemVnum)
        
        if item.GetItemType() == item.ITEM_TYPE_GIFTBOX:
            return True            
        treasures = {
            0: 27987,
            1: 50024,
            2: 50025,
            3: 50031,
            4: 50032,
            5: 80003,
        }
        
        if itemVnum in treasures.values():
            return True
            
        return False    

	def SendMultipleUseItemPacket(self, slotIndex):	
		for i in xrange(player.GetItemCount(slotIndex)):
			self.__SendUseItemPacket(slotIndex)	

 

200 packets vs 1 command

thinking-face_1f914.png

  • Love 3
  • Sad 1

Share this post


Link to post
1 minutę temu, ManiacRobert napisał:

 

Do with autoclicker and it's same result :P

not same

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.