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