• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

WarRocK V4 item table fix - Get cash increase of characters has been corrected.

Status
Not open for further replies.
Banned
Banned
Joined
Nov 26, 2012
Messages
245
Reaction score
105
Get cash increase of characters has been corrected.

İtem.sql download:

shopping dinar are cash 6. tables have been added.

Open GameServer Source Search:

ItemManager.cs

Code:
                    string[] Data = DB.runReadRow("SELECT wid, strcode, damage, price1

Change:

Code:
                    string[] Data = DB.runReadRow("SELECT wid, strcode, damage, price1, price2, price3, price4, price5, price6, cash1, cash2, cash3, cash4, cash5, cash6, premiumOnly, validWeapon, validShopItem, name, validPX, level FROM items WHERE id=" + tableIDs[I]);
                    if (_Weapons.ContainsKey(Data[1].ToLower()) == false)
                    {
                        int[] _tPrice = new int[6];
                        for (int J = 0; J < 6; J++)
                        {
                            _tPrice[J] = int.Parse(Data[3 + J]);
                        }
                        int[] _cPrice = new int[6];
                        for (int X = 0; X < 6; X++)
                        {
                            _cPrice[X] = int.Parse(Data[8 + X]);
                        }
                        _Weapons.Add(Data[1].ToLower(), new virtualItem(int.Parse(Data[0]), int.Parse(Data[2]), Data[1].ToLower(), Data[16], _tPrice, _cPrice, Data[13].Equals("1"), Data[14].Equals("1"), Data[15].Equals("1"), Data[17].Equals("1"), int.Parse(Data[18])));
                    }
 
Last edited:
Initiate Mage
Joined
Nov 6, 2011
Messages
3
Reaction score
0
how to fix this error?
[3/10/2014 9:23:22 AM] [Program.StartUp] » WarRocK GameServer started!
[3/10/2014 9:23:22 AM] [ItemManager.Load] » Failed to load all weapons into the memory!
[3/10/2014 9:23:22 AM] [ItemManager.Load] » Error: Input string was not in a correct format.
 
◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜
Developer
Joined
May 29, 2007
Messages
2,167
Reaction score
899
You should lowercase your variables.
 
Status
Not open for further replies.
Back
Top