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!

[TUT] How To Use Your Central Bank (Storage)

Newbie Spellweaver
Joined
Apr 22, 2009
Messages
44
Reaction score
20
Hey All,
Since im fixing the my gunz database i wanted to post a tut how to get central bank (storage) work.

here wee go, thats realy simple right.

<-- Yeah almost all my id are under 500000 --> and 1 of my weapond are higher than 500000 -->
Wanted To Test if im right.

REQUIREMENT : A Brain:blink:

<-- If your not using system32 database go read the botom of my post --> Text will be red soo you will found it easy.

Open Zitem.xml

1- All your donator item id must be higher than = 500000 <- if not you cant withdraw or move item in your central bank (storage) <-> sound funny because for the shop, if the item id are higher than 500000 its fail :laugh:

2- Make all your donator cash item -> iscashitem="TRUE" />

3- when your done open SQL Server Management Studio Express, go in your gunzdb -> Tables -> DBO.Item, right click -> open table

4- Add all your donator info in there, you dont know what im talking about ? Look at my screenshot.
Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums

Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums

Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums

Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums

5- Test Time -> open your admin panel -> gift you a donator item <-> than try to move it in your central bank (Storage) and withdraw it

<-- For People Not Using System32 Database -->

If your not using system32 database you will need to execute this script and be sure your dbo.accountItem are same than mine

Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums


Than Here Are The Script

Code:
USE [GunZDB]
GO
/****** Object:  StoredProcedure [dbo].[spSelectAccountItem]    Script Date: 06/16/2009 02:49:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


/* 중앙은행 아이템 보기 */
ALTER PROC [dbo].[spSelectAccountItem]
	@AID			int
AS
SET NOCOUNT ON

DECLARE @NowTime DATETIME
SELECT @NowTime = GETDATE()

SELECT AIID, ItemID, (RentHourPeriod*60) - (DateDiff(n, RentDate, @NowTime)) AS RentPeriodRemainder
FROM AccountItem(NOLOCK)
WHERE AID=@AID ORDER BY AIID

I dont know if someone already released this <-- this why i do -->
Srry for my english =P

Now you know why weapond higher than 500000 dont work in shop
 
Last edited:
Experienced Elementalist
Joined
May 30, 2009
Messages
298
Reaction score
8
Very nice!
Thank you very much Goldoracko.
10/10.
 
DRGunZ 2 Creator
Loyal Member
Joined
Jan 21, 2007
Messages
4,493
Reaction score
161
wow, like not most of us already know how to give items using the DB :p
nice tut though ;)
 
Junior Spellweaver
Joined
Feb 24, 2007
Messages
189
Reaction score
1
Well wes this is useful for web shops. and I've been had this done on my server a long time ago.

And thanks for releasing it to the open world. not sure that anyone will use it though as they can just insert directly into account.
 
DRGunZ 2 Creator
Loyal Member
Joined
Jan 21, 2007
Messages
4,493
Reaction score
161
Well wes this is useful for web shops. and I've been had this done on my server a long time ago.

And thanks for releasing it to the open world. not sure that anyone will use it though as they can just insert directly into account.
yes but I went ahead and gave criticism early since almost everyone can just use the search button to find out how to do it :p
 
Experienced Elementalist
Joined
Apr 30, 2009
Messages
297
Reaction score
63
LOL, Can't put some item's from the inventory to the Storage !
Well, I can send a item's from my panel to the storage ( central bank ) it work fine but,
Can't withdraw it to the inventory lol's!
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 22, 2009
Messages
44
Reaction score
20
Did you add all your item correctly in DBO.item because for me its work perfect
And your admin item are cash = true ? right
 
Legendary Battlemage
Joined
Aug 1, 2008
Messages
635
Reaction score
4
This is nice... i might do it when im not lazy =]
 
Custom Title Activated
Loyal Member
Joined
Nov 14, 2007
Messages
1,829
Reaction score
177
LOL, Can't put some item's from the inventory to the Storage !
Well, I can send a item's from my panel to the storage ( central bank ) it work fine but,
Can't withdraw it to the inventory lol's!

your items in zitem, must also be cash items if it isn't a cash item set the cash bit to 0 and it will work
 
Elite Diviner
Joined
Feb 18, 2009
Messages
486
Reaction score
38
cant seem to enter the information into the SQL, gave me a nice error, anyways gona try some other ways first.
 
Newbie Spellweaver
Joined
Apr 22, 2009
Messages
44
Reaction score
20
There are some value u cant fill like
Ressex,Resrace,
EffectID = Useless,
Slugoutput,Blendcolor

You can only if you change some colum to varchar.
But it will work if u dont fill it too.
 
Elite Diviner
Joined
Feb 18, 2009
Messages
486
Reaction score
38
anyone else got problems with adding it into the SQL or just me? :/
 
Newbie Spellweaver
Joined
Apr 22, 2009
Messages
44
Reaction score
20
Here are the screenshot of my dbo.item try to make it same.
Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums

Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums


When your done editing dont forget to generate script:lol:
 
Elite Diviner
Joined
Feb 18, 2009
Messages
486
Reaction score
38
Here are the screenshot of my dbo.item try to make it same.
Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums

Goldoracko - [TUT] How To Use Your Central Bank (Storage) - RaGEZONE Forums


When your done editing dont forget to generate script:lol:

thanks, you mean this script btw?

USE [GunZDB]
GO
/****** Object: StoredProcedure [dbo].[spSelectAccountItem] Script Date: 06/16/2009 02:49:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


/* 중앙은행 아이템 보기 */
ALTER PROC [dbo].[spSelectAccountItem]
@AID int
AS
SET NOCOUNT ON

DECLARE @NowTime DATETIME
SELECT @NowTime = GETDATE()

SELECT AIID, ItemID, (RentHourPeriod*60) - (DateDiff(n, RentDate, @NowTime)) AS RentPeriodRemainder
FROM AccountItem(NOLOCK)
WHERE AID=@AID ORDER BY AIID

Wish i was better at SQL related things :/:
 
Experienced Elementalist
Joined
Apr 30, 2009
Messages
297
Reaction score
63
Done, I use the panel to gift to all accounts storage, Well to withdraw into the inventory, it work now fine,
But, To put item's from inventory to central bank ( Click Put to the storage ) Well it has disappeared, ( Not in the inventory / Not in the central bank ) !
After a relog, The item's come back to the inventory !
 
Newbie Spellweaver
Joined
Apr 22, 2009
Messages
44
Reaction score
20
1- All your donator item id must be higher than = 500000 <- if not you cant withdraw or move item in your central bank (storage) <-> sound funny because for the shop, if the item id are higher than 500000 its fail :laugh:
 
Back
Top