Register for your free account! | Forgot your password?

You last visited: Today at 11:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Add items to storage query

Discussion on Add items to storage query within the SRO PServer Questions & Answers forum part of the SRO Private Server category.

Closed Thread
 
Old   #1

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Add items to storage query

Hello everyone, i am trying to build a query to add items to storage.
This is what i have achieved so far

exec _ADD_ITEM_EXTERN_CHEST 1417, 3683, 15, 1

1417 -- The Account JID
3683 -- The Item ID
15 -- The Item Quantity
1 -- default

this is the results i am getting after execute

(1 row(s) affected)
(null)
Msg 50000, Level 1, State 16
Msg 8114, Level 16, State 3, Procedure _ADD_ITEM_EXTERN_CHEST_FAST, Line 7
Error converting data type int to tinyint.

The '_ADD_ITEM_EXTERN_CHEST' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

I have tried to modify the procedure it self to int instead of tinyint, the results was

(1 row(s) affected)
(null)
Msg 50000, Level 1, State 16

But still, i see no item in the storage.

I have also discovered that items are added with serials not ITEM ID, but how can it have a serial if it wasn't exist in the first place!!

What i am trying to do is, adding an item to specific account storage, so the item wasn't anywhere so i believe the query should first, make the item then have the serial, then add the serial to the first query.

This is all i know so far...

Your answers will be appreciated. Thanks in advance.
devdash is offline  
Old 04/06/2021, 01:59   #2
 
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
Hello,

Wrong
Code:
1417 -- The Account JID
3683 -- The Item ID
15 -- The Item Quantity
1 -- default
Correct
Code:
'123' -- Account Name
'ITEM_ETC_ARENA_COIN' -- Code Name
15 -- The Item Quantity
1 -- Plus
Code:
USE SRO_VT_SHARD
exec _ADD_ITEM_EXTERN_CHEST '123', 'ITEM_ETC_ARENA_COIN', 15, 1

You must add one item in storage

IF you need fix this wrong can go to _ADD_ITEM_EXTERN_CHEST_FAST and fix

Good Luck
Laag#82 is offline  
Thanks
2 Users
Old 04/06/2021, 21:41   #3

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by khaleed2010 View Post
Hello,

Wrong
Code:
1417 -- The Account JID
3683 -- The Item ID
15 -- The Item Quantity
1 -- default
Correct
Code:
'123' -- Account Name
'ITEM_ETC_ARENA_COIN' -- Code Name
15 -- The Item Quantity
1 -- Plus
Code:
USE SRO_VT_SHARD
exec _ADD_ITEM_EXTERN_CHEST '123', 'ITEM_ETC_ARENA_COIN', 15, 1

You must add one item in storage

IF you need fix this wrong can go to _ADD_ITEM_EXTERN_CHEST_FAST and fix

Good Luck
It doesn't work, i will need further help if possible.
I have tried the query u have mentioned, but no success still.
devdash is offline  
Old 04/06/2021, 22:04   #4
 
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
Quote:
Originally Posted by alydandy View Post
It doesn't work, i will need further help if possible.
I have tried the query u have mentioned, but no success still.
Hello,

Code:
Test


You must add one item in storage



Laag#82 is offline  
Thanks
2 Users
Old 04/07/2021, 16:40   #5

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by khaleed2010 View Post
Hello,

Code:
Test


You must add one item in storage



The storage have an item already, still same errors

#CASE 1



#CASE 2 (after i edit the tinyint to int in _ADD_ITEM_EXTERN_CHEST procedure)



I believe u have edited something else that u forgot to mention.

NOTE: i tried to use JID, CharName, CharID, and UserName, the same error all the time.
devdash is offline  
Old 04/12/2021, 21:16   #6
 
elite*gold: 0
Join Date: Jul 2020
Posts: 234
Received Thanks: 230
Account does not exist:
Code:
(1 row(s) affected)
(null)
Msg 50000, Level 1, State 16
Msg 8114, Level 16, State 3, Procedure _ADD_ITEM_EXTERN_CHEST_FAST, Line 0
Fehler beim Konvertieren des int-Datentyps in tinyint.
Storage Empty and Account does exist:
Code:
(1 row(s) affected)
chest Full! JID is 8              , item: 25834          
Msg 50000, Level 1, State 16
Msg 8114, Level 16, State 3, Procedure _ADD_ITEM_EXTERN_CHEST_FAST, Line 0
Fehler beim Konvertieren des int-Datentyps in tinyint.
Storage not empty and Accound does exist:
Code:
(1 row(s) affected)

(1 row(s) affected)

(1 row(s) affected)

(1 row(s) affected)

(1 row(s) affected)

(1 row(s) affected)
I guess your account name is wrong. Go to account DB, TB_USER and select an existing StrUserID to use the query (Storage not empty!).
My account name was "log5"...
OKeks is offline  
Old 04/14/2021, 13:40   #7

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
interesting, worked only when i created an account with username log5 xD
Idk what is wrong with other usernames, this is what i am trying to figure out now.

Thanks anyway you all <3, helped a lot.

#Request_Topic_Close. @
devdash is offline  
Old 04/14/2021, 21:30   #8
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,871
Received Thanks: 4,686
Quote:
Originally Posted by alydandy View Post
interesting, worked only when i created an account with username log5 xD
Idk what is wrong with other usernames, this is what i am trying to figure out now.

Thanks anyway you all <3, helped a lot.

#Request_Topic_Close. @
Nice you mention Spidy but she isn't any mod. Please use the report button! To request a close...
Devsome is offline  
Old 04/14/2021, 22:46   #9

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by Devsome View Post
Nice you mention Spidy but she isn't any mod. Please use the report button! To request a close...
Old habit, alright next time then.

done.
devdash is offline  
Closed Thread


Similar Threads Similar Threads
[Release][Query] Query _InvCOS Items WITH _Char Connection
12/29/2015 - SRO PServer Guides & Releases - 1 Replies
Ok, so i needed to write this query for a procedure im working on and not many people know how to connect the pet inventory table to the character table.... so this query will explain how its done... im not going to explain every single detail, like how there is no charcos when pet is despawned / dead... but yea you can probably figure that all out from this query... The code... USE SELECT pet_invo. ,pet_invo. PetSlot



All times are GMT +1. The time now is 11:40.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.