Jump to content

How To Fix Auto Potion in Inventory


Recommended Posts

Open in uiinventory

 

search this

 

if slotNumber >= player.INVENTORY_PAGE_SIZE:
slotNumber -= player.INVENTORY_PAGE_SIZE
 
Replace to
 
if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex
  • Metin2 Dev 2
  • Think 1
  • Love 18
Link to comment
https://metin2.dev/topic/3400-how-to-fix-auto-potion-in-inventory/
Share on other sites

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?

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?

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.

  • 2 months later...
  • 1 month later...
  • 2 months later...
  • 2 weeks later...
  • Premium

And how it should be added to the Belt Slot too?

Why don't you try it instead of begging ? xD

 

No, It's not usefull to add it in BeltSlot, so, for me it's working without adding it here, but moreover there isn't any bug in BeltSlot regarding to auto potions. ^^

  • 2 weeks later...
  • 1 month later...
  • 7 months later...
  • 5 months later...
  • 9 years later...
On 10/10/2014 at 8:40 PM, Minion said:

Open in uiinventory

 

search this

 

if slotNumber >= player.INVENTORY_PAGE_SIZE:
slotNumber -= player.INVENTORY_PAGE_SIZE
 
Replace to
 
if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex:
slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex

Tanks B)

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.