Jump to content

Recommended Posts

Hello!

 

I want do two things in Game source and DB source.

The first one: I want make maximum item stacks higher than 255. I know I have to change the data types but I don't know where.

The second: I want make the /shutdown command to instantly save the players' items after the server kick them out.

 

Regards,
Randomize

  • Love 1
Link to comment
Share on other sites

char_item.cpp

count = MIN(200 - item2->GetCount(), count);

line 5666 > change 200 to 250.

BYTE bCount2 = MIN(200 - item2->GetCount(), bCount);

line 5887 > change 200 to 250.

line 6623 > change 200 to 250.
 
cmd_gm.cpp
 
iCount = MINMAX(1, iCount, 200);

line 517  > change 200 to 250

 

safebox.cpp

			count = MIN(200 - item2->GetCount(), count);

line 208  > change 200 to 250

 

Link to comment
Share on other sites

Are you editing the client & server length? I mean, if you increase it over 255 and change the data type, the packet is going to need a type change as well.

 

The second: I want make the /shutdown command to instantly save the players' items after the server kick them out.

Why's that relevant? It will flush most of the player's items and those who don't get flushed will get flushed when you shut it down.

Link to comment
Share on other sites

I tried change in the client binary too, but it  not works. I will try again later.

 

 


The second: I want make the /shutdown command to instantly save the players' items after the server kick them out.

Why's that relevant? It will flush most of the player's items and those who don't get flushed will get flushed when you shut it down.

 

I don't like to wait 5-10 minutes after the /shutdown command to be sure all items and player informations (money, experience, level etc.). are saved.

Link to comment
Share on other sites

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.