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

Error in database

Newbie Spellweaver
Joined
Mar 8, 2015
Messages
5
Reaction score
0
Hy, i just try some days ago to add some weapons from other repack and i added them all sides how should add in init and config and pk all places, when i write code in game i dont get anything not write any with green or any in inventory but in MainSrvT window i still see i get the item without any error and now when opened database is some specific error on IID ill atach photo so u can see what i mean.

Pls help me with this, any idea why that IID have error and how can i fix it? :(
 

Attachments

  • dberror - Error in database - RaGEZONE Forums
    dberror.jpg
    76.1 KB · Views: 40
Experienced Elementalist
Joined
Feb 27, 2008
Messages
226
Reaction score
21
Does they have the same index on both server and client side?
Is the index repeated either side?
Is the hypertext image client side with the correct name?

Kind regards,

Skye
 
Upvote 0
http://kalserverace.com
Loyal Member
Joined
Sep 12, 2006
Messages
477
Reaction score
17
Try and run this. its the negative IID is causation the errors that you have. this should fix.
PHP:
   <?php $db_host = ""; $auth_db = ""; $data_db = ""; 
mssql_connect($db_host); mssql_select_db($data_db); $query_item = mssql_query("SELECT [IID] FROM [Item] ORDER BY [IID] DESC"); $query_item_data = mssql_fetch_array($query_item); $item_id = $query_item_data[0]; if($item_id < 0) $item_id =0; $query = mssql_query("SELECT * FROM [Item] WHERE [IID] < 0"); while($data = mssql_fetch_array($query)) {     extract($data);     $item_id++;     mssql_query("UPDATE [Item] SET [IID] = $item_id WHERE [IID] = $IID");     echo "Changing ID: $IID to $item_id<br>"; } echo "Done"; ?>
 
Upvote 0
Newbie Spellweaver
Joined
Mar 8, 2015
Messages
5
Reaction score
0
seems is not that the problem in database cuz i created other items and apears same.... i really dont know reason why they doesent apear :( i have the ones with 13000 made by me indexes and the other is from the other repack and both kinds same problem not getting anything :(
 
Upvote 0
Newbie Spellweaver
Joined
Nov 13, 2014
Messages
10
Reaction score
2
IID is not the problem, just write the inititem.txt and config.pk lines here.
 
Upvote 0
Newbie Spellweaver
Joined
Mar 8, 2015
Messages
5
Reaction score
0
This is the Inititem.txt:

;G75 Heavenly Executioner Swords
(item (name 3057) (Index 1914) (Image "Wea219") (Action 23 1) (class weapon sword) (code 1 1 1 1) (country 0 2) (level 75) (wear 1) (limit knight 75) (range 30) (buy 0) (sell 547200) (endurance 140) (maxprotect 150) (specialty (aspeed 700) (Str 19) (Hth 25) (Dex 17) (Attack 920 990) (hp 1938) (hit 132) ) )
(item (name 3058) (Index 1915) (Image "Wea220") (Action 23 2) (class weapon sword2h) (code 1 2 1 1) (country 0 2) (level 75) (wear 1) (limit knight 75) (range 32) (buy 0) (sell 547200) (endurance 140) (maxprotect 150) (specialty (aspeed 1400) (Str 27) (Hth 17) (Dex 14) (Attack 1540 1810) (hp 1875) (hit 131) ) )
;G85 Blue Dragon Wing Stick
(item (name 13024) (Index 13024) (Image "Wea2222") (Action 22 1) (class weapon wand) (code 1 2 1 3) (country 2) (level 85) (wear 1) (limit mage 85) (range 18) (buy 3000000) (sell 500000) (endurance 236) (maxprotect 255) (specialty (aspeed 1000) (Int 65) (Wis 62) (Attack 1145 1155) (Magic 3250 4340) (hp 3250) (mp 3250) (hit 228) ) )



and this is from pk

;G75 Heavenly Executioner Swords
(item (name 3057) (Index 1914) (Image "Wea219") (Action 23 1) (class weapon sword) (code 1 1 1 1) (country 0 2) (level 75) (wear 1) (limit knight 75) (range 30) (buy 0) (sell 547200) (endurance 140) (maxprotect 150) (specialty (aspeed 700) (Str 19) (Hth 25) (Dex 17) (Attack 920 990) (hp 1938) (hit 132) ) )
(item (name 3058) (Index 1915) (Image "Wea220") (Action 23 2) (class weapon sword2h) (code 1 2 1 1) (country 0 2) (level 75) (wear 1) (limit knight 75) (range 32) (buy 0) (sell 547200) (endurance 140) (maxprotect 150) (specialty (aspeed 1400) (Str 27) (Hth 17) (Dex 14) (Attack 1540 1810) (hp 1875) (hit 131) ) )
;G85 Blue Dragon Wing Stick(item (name 13024) (Index 13024) (Image "Wea2222") (Action 22 1) (class weapon wand) (code 1 2 1 3) (country 2) (level 85) (wear 1) (limit mage 85) (range 18) (buy 3000000) (sell 500000) (endurance 236) (maxprotect 255) (specialty (aspeed 1000) (Int 65) (Wis 62) (Attack 1145 1155) (Magic 3250 4340) (hp 3250) (mp 3250) (hit 228) ) )


) )
 
Upvote 0
Back
Top