Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Arcturus] - To add a item in bank

Status
Not open for further replies.
Joined
Dec 22, 2004
Messages
513
Reaction score
162
The [GUIDE]. Acturus:
We add a item in bank of an account.
1. Clear bank of items.
2. We add in bank the items which is necessary.
3. It is necessary to define a code of a item executed a command:
Code:
select ' 0x ' +upper (SHO.dbo.ufn_VarbinaryToVarcharHex ((select blobITEMS from SHO.. tblGS_BANK where txtACCOUNT ='accountname ')))
accountname - it is necessary to change to your or any another.
We have received a code of a :
0x0A3E0100000000000000000000000000000000000000000000000000.....
4. Now using stored procedure it is possible to add a item independently using php or other programming language.
Code:
exec sp_warehousedeposit 'accountname', '0A3E0900000000000000000000'
 
Last edited:
Junior Spellweaver
Joined
Sep 14, 2006
Messages
158
Reaction score
15
How can you put an item into the platinum storage? And how do you use a stored procedure with php?

Thanks in advance.
 
Last edited:
Joined
Dec 22, 2004
Messages
513
Reaction score
162
And how do you use a stored procedure with php?

Thanks in advance.
Code:
<?
//***** IME - (ITEM MALL ENGINE)******

//Config----------------------------
$mysecretfile='LogItemMallProcess.txt';
$myServer = "IPDB";
$myUser = "DBUSER";
$myPass = "DBPASSWD";
$myDB = "SHO";

echo "Add item and All Close\r\n";
//Data from FORM------------------
$AccountName=$_POST['username'];
echo $AccountName . "-";
$ItemCode=$_POST['BinCode'];
echo $ItemCode;
$conn=mssql_connect($myServer,$myUser,$myPass);
mssql_select_db($myDB);
$sql = "exec sp_warehousedeposit \"$AccountName\",\"$ItemCode\"";
$res = mssql_query($sql);
if(!$res) {
   die("ERROR!");
mssql_close($conn);
} else {
mssql_close($conn);
$f=fopen($mysecretfile,"a");
fputs($f, "User -".$AccountName." ItemCode - ".$ItemCode.' '.date("d.m.Y H:i",time())."\r\n");
fclose($f);
print "Tnx!!!";
}
?>
 
Junior Spellweaver
Joined
Jun 8, 2008
Messages
123
Reaction score
3
great release..

unfortunately i have a small problem

Code:
Add item and All Close
buzbee2 - A3E01000000000000000000000
Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'SHO.dbo.ufn_VarbinaryToVarcharHex'. (severity 16) in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'SHO.dbo.ufn_VarbinaryToVarcharHex'. (severity 16) in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'WHERE'. (severity 15) in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

it seems to place the item in my storage, but it also isnt an item
hover over it and game crashes
 
Joined
Dec 22, 2004
Messages
513
Reaction score
162
great release..

unfortunately i have a small problem

Code:
Add item and All Close
buzbee2 - A3E01000000000000000000000
Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'SHO.dbo.ufn_VarbinaryToVarcharHex'. (severity 16) in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'SHO.dbo.ufn_VarbinaryToVarcharHex'. (severity 16) in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'WHERE'. (severity 15) in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\xxxx\CloseAll.php on line 21

it seems to place the item in my storage, but it also isnt an item
hover over it and game crashes

1. Delete row in tblGS_BANK whit name buzbee2 for correct crash
2. Delete row in item_mail
3. New query
Code:
INSERT INTO item_mall (ItemName,BinCode,Description,ItemCount) VALUES('Christmas Tree','0A3E0100000000000000000000','Christmas Tree 1',1)

PS: i repack attach...
sorry..I wish to sleep..

and warning..u need setup output warnings on web server//or use ini_set("display_errors","0"); //disable warning in php scripts...

oh ZZzzzzzzz.................
 
Last edited:
Junior Spellweaver
Joined
Jun 8, 2008
Messages
123
Reaction score
3
okay im not understanding this i guess
0A3E01 = the item id in hex?

0A = 10 = usable items

3E = 62????

what i am not understanding is how you get the item id in hex

i have tried several different ways to do this but i am still stuck

if you could help i would appreciate it
 
Last edited:
Junior Spellweaver
Joined
Mar 10, 2007
Messages
165
Reaction score
38
You can try this. To get the hex id for the item, put the item in the storage. Open "tblGS_BANK" tables in your "SHO" or whatever your named it in MSSQL database. Open blob field, then you can see the hex for you item. Use EMS SQL Manager to view blob field.
 
Junior Spellweaver
Joined
Jun 8, 2008
Messages
123
Reaction score
3
okay i was finally able to get my items to show up

i had to edit something in the user defined functions, ufn_varbinarytovarcharhex
its was still trying to find SHO and obviously my database isnt named SHO anymore

now can someone give me a clue as to making the item drop in the platinum storage tab,
dont like the idea of overwriting existing items in the bank
 
Newbie Spellweaver
Joined
Sep 22, 2006
Messages
75
Reaction score
0
Add item and All Close
HKRnewADM - 0A3E0100000000000000000000
Warning: mssql_query() [function.mssql-query]: message: Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32). (severity 16) in D:\xampplite\htdocs\rose\CloseAll.php on line 21

Warning: mssql_query() [function.mssql-query]: Query failed in D:\xampplite\htdocs\rose\CloseAll.php on line 21
ERROR!
 
Last of the OsRose Devs
Loyal Member
Joined
Oct 15, 2006
Messages
2,154
Reaction score
101
I may be wrong but it looks like you have too many open queries.

You might need to close some of your queries with mssql_close(); in your php code
 
Experienced Elementalist
Joined
Aug 22, 2007
Messages
295
Reaction score
1
i'm geting this error:
Add item and All Close
name - 0A3E0100000000000000000000
Warning: mssql_query() [function.mssql-query]: message: Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32). (severity 16) in C:\AppServ\www\mall\CloseAll.php on line 15

Warning: mssql_query() [function.mssql-query]: Query failed in C:\AppServ\www\mall\CloseAll.php on line 15
ERROR!
And i have no idea why -.-
 
Last edited:
Junior Spellweaver
Joined
Jun 8, 2008
Messages
123
Reaction score
3
try adding some more items to your db

seems after i added all my items the error stopped displaying
 
Experienced Elementalist
Joined
Aug 22, 2007
Messages
295
Reaction score
1
can you give me some random codes?
have no idea how get them
 
Experienced Elementalist
Joined
Oct 6, 2006
Messages
210
Reaction score
0
Ok here is what you do open up windows notepad and put this line it.

select ' 0x ' +upper (SHO.dbo.ufn_VarbinaryToVarcharHex ((select blobITEMS from SHO.. tblGS_BANK where txtACCOUNT ='accountname ')))

Then click on file in the upper left corner and go down to save as and click on that and save it to whatevername.sql

Then open up your mssql analizer and you will see a box in the middle on the tool bar make sure it say's sho or what ever you named sho.

Then goto file then click on open and click on the sql file you just made...Then click on the geen arrow that is pointing to the right.

Now you will see a box open up below the sql file box and there is your code.

I hope this helped.
 
Experienced Elementalist
Joined
Aug 22, 2007
Messages
295
Reaction score
1
thanks .
but i already know how to do that
the thing is , i don't know what
"0A3E01" means :
10100011111000000001
int binary
so for example i want to add a T7 into some1's storage.
the id of T7 is 337
type - 11
the number of items i want , 2

so how can i do that?
 
Joined
Dec 22, 2004
Messages
513
Reaction score
162
omg
thanks .
so for example i want to add a T7 into some1's storage.
the id of T7 is 337
type - 11
the number of items i want , 2

so how can i do that?

/item 11 337 1

for itemmask,weapon...etc Slot -1; Amount - 1
and
for materials,ammo,etc Slot-1;Amount - 100

The [GUIDE]. Acturus:
We add a item in bank of an account.
1. Clear bank of items.
2. We add in bank the items which is necessary.
3. It is necessary to define a code of a item executed a command:
Code:
select ' 0x ' +upper (SHO.dbo.ufn_VarbinaryToVarcharHex ((select blobITEMS from SHO.. tblGS_BANK where txtACCOUNT ='accountname ')))
 
Last edited:
Experienced Elementalist
Joined
Aug 22, 2007
Messages
295
Reaction score
1
you got me all wrong..
i ment :
0A3E01
is :
10100011111000000001

so if i take a T7 , how can i get the hex value of it?
what should i write in the binry form
 
Status
Not open for further replies.
Back
Top