Jump to content

ITEM_AWARD(SOCKET2) - 40k DB


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
Share on other sites

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

Top Posters In This Topic

Top Posters In This Topic

  • Active Member

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
Share on other sites

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.