Jump to content
External pictures are being replaced... ×
×
×
  • Create New...

[ Dead Download Link ] [C++] 6 inventory safebox [ We Need You ]


Taz21

Recommended Posts

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

Hi guys, I've tried to put this on my server, it wasn't working so well with 6 pages, so I reduced it to just 5, and it worked perfectly but I've got a bug, when I try o take an item from the mall storeroom I get DC. So I've been thinking... The storage is an original part of Metin2, can't we just "expand" the number of pages with 2 or 3 simple changes?

Link to comment
Share on other sites

  • 2 months later...
  • Premium

I made it working for 550 slots but I can't use it for 600 slots. I can't move items on slots higher than 550 and I can't move items in safebox i must move them into a inventory and then again to safebox. Someone have fix for it?

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 3 months later...

9*5*6 = 270
DWORD's limit = 255..

Change DWORD to int.

 

bool CSafebox::IsEmpty(DWORD dwPos, BYTE bSize)

//Replace with: bool CSafebox::IsEmpty(DWORD dwPos, DWORD bSize)

 

Remplace with :

Code:

bool CSafebox::IsEmpty(int dwPos, int bSize)

Link to comment
Share on other sites

  • Moon
7 hours ago, genezis said:

DWORD's limit = 255..

Change DWORD to int. 

255 is byte's max value.

05ff4e0608.png

https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types

On 8/16/2017 at 1:05 PM, kordel33 said:

I have bug with 6th slot ?

this is a general word, you have to be more specific.

 

 

  • Love 1
Link to comment
Share on other sites

8 godzin temu, genezis napisał:

9*5*6 = 270
DWORD's limit = 255..

Change DWORD to int.

 

bool CSafebox::IsEmpty(DWORD dwPos, BYTE bSize)

//Replace with: bool CSafebox::IsEmpty(DWORD dwPos, DWORD bSize)

 

Remplace with :

Code:

bool CSafebox::IsEmpty(int dwPos, int bSize)

X D

  • Love 2
Link to comment
Share on other sites

hace 1 hora, metin2team dijo:

255 is byte's max value.

05ff4e0608.png

https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types

this is a general word, you have to be more specific.

 

hace 1 hora, metin2team dijo:

 

 

 

The bug is:

 

- Have only 256 Slot (From 0 to 255)

So the last 3 lines of slot doesen't work. doesen't take item.

Justo ahora, genezis dijo:

 

 

 

The bug is:

 

- Have only 256 Slot (From 0 to 255)

So the last 3 lines of slot doesen't work. doesen't take item.

-- Dwork Limit in c++ is 255

Link to comment
Share on other sites

  • 2 weeks later...

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.


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.