Jump to content

Stack items Like 39028


Recommended Posts

I found it on a forum i don't rember which and i want to post it here it's little but nice!

Normall you can't stack items like 39028 or 25040(e.g. in your invtetory you had 25040(x2) but not stacked with this mod you can stack all of these items like that.

*sorry for my english

root/uiinvetory.py

search for:

Spoiler

if item.IsRefineScroll(srcItemVNum):
            if player.REFINE_OK == player.CanRefine(srcItemVNum, dstSlotPos):
                return TRUE

then replace with this

Spoiler

elif item.IsRefineScroll(srcItemVNum):
            if player.REFINE_OK == player.CanRefine(srcItemVNum, dstSlotPos):
                return True

under this add

Spoiler

if srcItemVNum == player.GetItemIndex(dstSlotPos):
            if player.GetItemCount(dstSlotPos) < 200:
                return True

or you can use Ken's way

Spoiler

if (player.GetItemIndex(dstSlotPos) == srcItemVNum and player.GetItemCount(dstSlotPos) < 200):
	return True

it should looks like 

https://metin2.download/picture/H56to4wAn1kGGmP435zV5BiGck3KM0kD/.png

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Confused 1
  • Good 6
  • Love 2
  • Love 1
Link to comment
Share on other sites

11 minutes ago, BackPlayer said:

if srcItemVNum == player.GetItemIndex(dstSlotPos):
            if player.GetItemCount(dstSlotPos) < 200:
                return TRUE

 
if (player.GetItemIndex(dstSlotPos) == srcItemVNum and player.GetItemCount(dstSlotPos) < 200):
	return True # Python 2.7 is using True & False                                                                                             

We shouldn't rather the long way :)

Kind Regards ~ Ken

  • Love 2

Do not be sorry, be better.

Link to comment
Share on other sites

  • 2 weeks 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.