Jump to content

Recommended Posts

Hi everyone.

 

I have found a problem, while I was testing my itemshop(with item_award) script on my website.

When I try to buy a weapon or armor which has '1' value at the is_items table (socket0,socket1,socket2), after I go to ingame and try to get it from the is lager, but it has just 2 empty slot for the stones instead of 3.

 

I read about it in an another forum, but there was the fix just the older version of the db.

So can anyone help me to fix it in src?

 

(using 40k game, and its 40k db from mainline)

((((( SORRY FOR THE VERY VERY BAD ENGLISH, IF ANYTHING IS NOT UNDERSTANDABLE, THEN LETS ASK ME ABOUT THAT)))))

Link to comment
https://metin2.dev/topic/5140-item_awardsocket2-40k-db/
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Open db/src/ClientManager.cpp

 

In function CClientManager::RESULT_SAFEBOX_LOAD look for:

					if (pItemTable->bType == ITEM_UNIQUE)
					{
						if (pItemAward->dwSocket2 != 0)
							dwSocket2 = pItemAward->dwSocket2;
						else
							dwSocket2 = pItemTable->alValues[0];
					}
					else if ((dwItemVnum == 50300 || dwItemVnum == 70037) && pItemAward->dwSocket0 == 0)

And edit like below:

					if (pItemTable->bType == ITEM_UNIQUE)
					{
						if (pItemAward->dwSocket2 != 0)
							dwSocket2 = pItemAward->dwSocket2;
						else
							dwSocket2 = pItemTable->alValues[0];
					}
					else if (pItemTable->bType == ITEM_WEAPON || pItemTable->bType == ITEM_ARMOR)
					{
						dwSocket2 = pItemAward->dwSocket2;
					}
					else if ((dwItemVnum == 50300 || dwItemVnum == 70037) && pItemAward->dwSocket0 == 0)

Link to comment
https://metin2.dev/topic/5140-item_awardsocket2-40k-db/#findComment-33343
Share on other sites

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.