Register for your free account! | Forgot your password?

You last visited: Today at 10:30

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

Advertisement



[FIX] Bank Teller

Discussion on [FIX] Bank Teller within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 33
Received Thanks: 6
Smile [FIX] Bank Teller

Code:
USE [PS_GameData]
GO
/****** DoN-A ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Proc [dbo].[usp_Save_Char_Product_Item_E]

@ServerID tinyint,
@UserUID int,
@BankSlot tinyint,
@CharID int,
@ItemUID bigint,
@Bag tinyint,
@Slot tinyint,
@ItemID int,
@Type tinyint,
@TypeID tinyint,
@Quality smallint,    --int
@Gem1 tinyint,
@Gem2 tinyint,
@Gem3 tinyint,
@Gem4 tinyint,
@Gem5 tinyint,
@Gem6 tinyint,
@Craftname varchar(20) = '', 
@Count tinyint,
@MakeTimeZ varchar(50),
@Maketype varchar(1)    --char(1)

AS
DECLARE @Maketime as datetime
SELECT @Maketime = CONVERT(datetime, @MaketimeZ, 120)

--SET NOCOUNT ON
SET XACT_ABORT ON

DECLARE @ProductCode varchar(20)
DECLARE @OrderNumber int
DECLARE @VerifyCode bigint
DECLARE @BuyDate datetime

IF(@Quality >= 5000)
BEGIN
    SET @Quality=0
END

BEGIN DISTRIBUTED TRANSACTION

-- Logging receipt of goods
SELECT @ProductCode=ProductCode,@OrderNumber=OrderNumber,@VerifyCode=VerifyCode,@BuyDate=BuyDate
FROM PS_Billing.dbo.Users_Product 
WHERE UserUID=@UserUID AND Slot=@BankSlot

-- Add inventory
INSERT INTO CharItems(CharID,Bag,Slot,ItemID,Type,TypeID,ItemUID,Quality,Gem1,Gem2,Gem3,Gem4, 
Gem5,Gem6,CraftName,[Count],Maketime,Maketype)
VALUES(@CharID,@Bag,@Slot,@ItemID,@Type,@TypeID,@ItemUID,@Quality,@Gem1,@Gem2,@Gem3,@Gem4, 
@Gem5,@Gem6,@Craftname,@Count,@Maketime,@Maketype)

-- Deleting the bank storage
DELETE FROM PS_Billing.dbo.Users_Product WHERE UserUID=@UserUID AND Slot=@BankSlot

IF( @@ERROR=0 AND @@ROWCOUNT=1)
BEGIN
    COMMIT TRAN
    RETURN 1
END
ELSE
BEGIN
    ROLLBACK TRAN
    RETURN -1
END

SET XACT_ABORT OFF
--SET NOCOUNT OFF
cok28rus is offline  
Thanks
4 Users
Old 02/27/2013, 22:31   #2
 
elite*gold: 0
Join Date: Oct 2005
Posts: 184
Received Thanks: 85
has anyone tried this yet?
Psycnosis is offline  
Old 02/27/2013, 22:36   #3

 
nephren's Avatar
 
elite*gold: 92
Join Date: Aug 2009
Posts: 739
Received Thanks: 977
Why do you release Fixes 2-times. This was done already 02-01-2012, 07:31 from [DEV]xXDASHXx


request close
nephren is offline  
Thanks
2 Users
Old 02/27/2013, 22:40   #4
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
#Closed
JohnHeatz is offline  
Thanks
3 Users
Closed Thread


Similar Threads Similar Threads
[RELEASE] FIX for Bank teller DC problem
11/04/2015 - Shaiya PServer Guides & Releases - 10 Replies
i have not fully 100 % tested with populated server and stuff like that it was tested on my local server first atempt proved dc happened aproxamently 15 mins after removeing an item from the bank teller due to errors in procs so i fixed what i seen and retryed again and lasted aproxamently 30 mins with absolutly no dc opened the db and checked the tabel the item removed from the bank teller had vanished from the tabel as it should i baught a stack of glod bars just after removeing the item from...
Bank Teller bug
02/25/2013 - Shaiya Private Server - 5 Replies
2013-02-22 00:29:19 PS_DBAGENT__system log start (DBAgent01) 2013-02-22 00:30:24 connect game, Name= 2013-02-22 00:30:24 connect game, Name=
Bank Teller
12/19/2012 - Shaiya Private Server - 5 Replies
Hey. How to add some items to the bank? Which table to use?
ELITE TELLER V2
05/07/2012 - WarRock Hacks, Bots, Cheats & Exploits - 2 Replies
V2 HAS BEEN JUST BEEN CODED!! hAVE FUN!!:bandit: Use this smart program to tell your friends about eltepvpers.com;) Scans: https://www.virustotal.com/file/57dcecc5cc3c93fdab 294e1c84b8e0328df54a3deca7b5902b0f402c17be6d90/ana lysis/1336384108/ Downloads: 2shared - Upload complete
[Help]Bank Teller
08/22/2010 - Shaiya Private Server - 2 Replies
Hey guys and Gals I know the stored Proc to send items to the Bank teller and it works great again thumbs up for the people who answered me. My problem is that when the person takes the item out it Dced them shortly after and the item is back the bank. This causes me problems as you can imagine. I have been messing around with it trying to figure out why it is doing that and can't find anything.. If anyone has any help in this matter that would be amazing:handsdown: Thank you!



All times are GMT +1. The time now is 10:31.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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