Newbie Spellweaver
- Joined
- Aug 21, 2006
- Messages
- 74
- Reaction score
- 4
USE [RanGame1]
GO
/****** Object: StoredProcedure [dbo].[UpdateChaHairColor] Script Date: 06/29/2008 15:38:36 edited by sanarunnow******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[UpdateChaHairColor]
@nChaNum int,
@nChaHairColor int,
@nReturn int OUTPUT
AS
DECLARE
@error_var int,
@rowcount_var int
SET NOCOUNT ON
SET @nReturn = 0
UPDATE ChaInfo
SET ChaHairColor=@nChaHairColor
WHERE ChaNum=@nChaNum
SELECT @error_var = @@ERROR, @rowcount_var = @@ROWCOUNT
IF @error_var <> 0 OR @rowcount_var = 0
BEGIN
SET @nReturn = -1
SET NOCOUNT OFF
RETURN @nReturn
END
ELSE
BEGIN
SET @nReturn = 0
SET NOCOUNT OFF
RETURN @nReturn
END
sanarunnow said:Problem in wiping database? Use this instead of my RanGame1.bak
Quote:
USE [RanGame1]
GO
/****** Object: StoredProcedure [dbo].[UpdateChaHairColor] Script Date: 06/29/2008 15:38:36 edited by sanarunnow******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[UpdateChaHairColor]
@nChaNum int,
@nChaHairColor int,
@nReturn int OUTPUT
AS
DECLARE
@error_var int,
@rowcount_var int
SET NOCOUNT ON
SET @nReturn = 0
UPDATE ChaInfo
SET ChaHairColor=@nChaHairColor
WHERE ChaNum=@nChaNum
SELECT @error_var = @@ERROR, @rowcount_var = @@ROWCOUNT
IF @error_var <> 0 OR @rowcount_var = 0
BEGIN
SET @nReturn = -1
SET NOCOUNT OFF
RETURN @nReturn
END
ELSE
BEGIN
SET @nReturn = 0
SET NOCOUNT OFF
RETURN @nReturn
END
Copy paste and run this script at your database.. by using sql query method
Pls Note: this will only fix your HairColor rollback problem..
Tenzou said:@all
Info to have perfect no rollback for pet at RanLog i think magenik put the error appearing in Field Server....The PetInven or something appear he stored it at RanLog..... And He Added Something On RanGame1...
sanarunnow said:Problem in wiping database? Use this instead of my RanGame1.bak
USE [RanGame1]
GO
/****** Object: StoredProcedure [dbo].[UpdateChaHairColor] Script Date: 06/29/2008 15:38:36 edited by sanarunnow******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[UpdateChaHairColor]
@nChaNum int,
@nChaHairColor int,
@nReturn int OUTPUT
AS
DECLARE
@error_var int,
@rowcount_var int
SET NOCOUNT ON
SET @nReturn = 0
UPDATE ChaInfo
SET ChaHairColor=@nChaHairColor
WHERE ChaNum=@nChaNum
SELECT @error_var = @@ERROR, @rowcount_var = @@ROWCOUNT
IF @error_var <> 0 OR @rowcount_var = 0
BEGIN
SET @nReturn = -1
SET NOCOUNT OFF
RETURN @nReturn
END
ELSE
BEGIN
SET @nReturn = 0
SET NOCOUNT OFF
RETURN @nReturn
END
Copy paste and run this script at your database.. by using sql query method
Tenzou said:@all
Info to have perfect no rollback for pet at RanLog i think magenik put the error appearing in Field Server....The PetInven or something appear he stored it at RanLog..... And He Added Something On RanGame1...
thx for the iNfo.
hayzz i have now DB for Color and style that will not roll back your char!! ~_~ and i have a pet that will not roll back!!
@nurjah
can i have your NPC talk that can create a gang for mix class then i will give you my DB for no roll back of hair color, style, and PET!!
so why you didnt share it.. no offense but i think the "OLD atitude" still exist.. I miss the old dayzzz...
Thanks
@SeraphiPod
This database is a query to fix the sp_procedure.. it didnt affect your database..