Jump to content

How To Fix Auto Potion in Inventory


Minion

Recommended Posts

I think that error continues to occur in second page inventory. :P

if slotNumber >= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex: ## (e.g. 47(second page) >= 45 * 2; 47 >= 90 - false = bug)
	slotNumber -= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex ## (e.g. (third page) 93 -= 90 = 3 - true = fix)

Can you explain that to me?

Link to comment
Share on other sites

On 10/11/2014 at 9:14 AM, Lazy said:

I think that error continues to occur in second page inventory. :P

if slotNumber >= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex: ## (e.g. 47(second page) >= 45 * 2; 47 >= 90 - false = bug)
	slotNumber -= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex ## (e.g. (third page) 93 -= 90 = 3 - true = fix)

Can you explain that to me?

Link to comment
Share on other sites

On 10/11/2014 at 9:48 AM, Minion said:

 

I think that error continues to occur in second page inventory. :P

if slotNumber >= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex: ## (e.g. 47(second page) >= 45 * 2; 47 >= 90 - false = bug)
	slotNumber -= player.INVENTORY_PAGE_SIZE * self.inventoryPageIndex ## (e.g. (third page) 93 -= 90 = 3 - true = fix)

Can you explain that to me?

But it still doesn't agree with my theory.

 

// Ah, I understood! inventoryPageIndex begins 0 = first page.. 1 = second page etc. Sorry, my mistake.

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 2 months later...
  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 7 months later...
  • 5 months later...

Announcements



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