Jump to content
  • 0

ITEM_AWARD(SOCKET2) - 40k DB


Sephere92

Question

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
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

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)

$ uptime
1:26AM  up 732 days,  8:29, 1 user, load averages: 0.38, 0.31, 0.22

$ uname -srp
FreeBSD 9.1-RELEASE amd64

Link to comment

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


×
×
  • 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.