Code:
USE [atum2_db_1]GO
/****** Object: StoredProcedure [dbo].[atum_CharacterSaveDataInfinityFin] Script Date: 02.11.2013 18:55:03 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
--------------------------------------------------------------------------------
-- PROCEDURE NAME : dbo.atum_CharacterSaveDataInfinityFin
-- DESC : -- // 2009-09-09 ~ 2010 by dhjin, 인피니티 - 인피 종료 후 MainSvr에 인피 진행하면서 수정된 케릭터 정보 수정
--------------------------------------------------------------------------------
ALTER PROCEDURE [dbo].[atum_CharacterSaveDataInfinityFin]
@i_CharacterUID INT,
@i_Level TINYINT,
@i_Experience FLOAT,
@i_DownExperience FLOAT,
@i_DownSPIOnDeath INT, -- 2006-04-10 by cmkwon
@i_totalPlayTime BIGINT,
@i_PCBangtotalPlayTime BIGINT, -- 2007-06-07 by dhjin, PC방 총 플레이 시간
@i_SecretInfoOption INT, -- // 2008-06-23 by dhjin, EP3 유저정보옵션
@i_AttackPart SMALLINT,
@i_DefensePart SMALLINT,
@i_FuelPart SMALLINT,
@i_SoulPart SMALLINT,
@i_ShieldPart SMALLINT,
@i_DodgePart SMALLINT,
@i_bstat TINYINT,
@i_bstatPoint TINYINT,
@i_LevelUpTime VARCHAR(30), --// 2006-12-18 by dhjin, 레벨업 시간
@i_WarPoint INT, -- // 2007-04-17 by dhjin, WP
@i_CumulativeWarPoint INT, -- // 2007-05-28 by dhjin, 누적WP
@i_MapIndex SMALLINT, -- // 2009-09-09 ~ 2010 by dhjin, 인피니티 - 팅긴 유저 재접속 처리
@i_ChannelIndex SMALLINT -- // 2009-09-09 ~ 2010 by dhjin, 인피니티 - 팅긴 유저 재접속 처리
-- // 2009-02-17 by cmkwon, MARK for Yedang -- // 2008-09-04 by cmkwon, 예당 보안관련 숨긴 계정 적용 하기(SQL Server 2005이상만 지원하는 기능) -
AS
UPDATE td_Character
SET Level = @i_Level,
Experience = @i_Experience,
DownExperience = @i_DownExperience,
DownSPIOnDeath = @i_DownSPIOnDeath, -- 2006-04-10 by cmkwon
totalPlayTime = @i_totalPlayTime,
PCBangtotalPlayTime = @i_PCBangtotalPlayTime, -- 2007-06-07 by dhjin, PC방 총 플레이 시간
SecretInfoOption = @i_SecretInfoOption, -- // 2008-06-23 by dhjin, EP3 유저정보옵션
AttackPart = @i_AttackPart,
DefensePart = @i_DefensePart,
FuelPart = @i_FuelPart,
SoulPart = @i_SoulPart,
ShieldPart = @i_ShieldPart,
DodgePart = @i_DodgePart,
BonusStat = @i_bstat,
BonusStatPoint = @i_bstatPoint,
LevelUpTime = @i_LevelUpTime, -- // 2006-12-18 by dhjin, 레벨업 시간
WarPoint = @i_WarPoint, -- // 2007-04-17 by dhjin, WP
CumulativeWarPoint = @i_CumulativeWarPoint, -- // 2007-05-28 by dhjin, 누적WP
MapIndex = @i_MapIndex, -- // 2009-09-09 ~ 2010 by dhjin, 인피니티 - 팅긴 유저 재접속 처리
ChannelIndex = @i_ChannelIndex -- // 2009-09-09 ~ 2010 by dhjin, 인피니티 - 팅긴 유저 재접속 처리
WHERE UniqueNumber = @i_CharacterUID
DECLARE @AccountUID INT = (SELECT AccountUniqueNumber FROM td_Character WHERE UniqueNumber = @i_CharacterUID)
/*UPDATE atum2_db_account.dbo.td_Account
SET WarPoint = @i_WarPoint,
CumulativeWarPoint = @i_CumulativeWarPoint
WHERE AccountUniqueNumber = @AccountUID*/
but now there is the Problem that they will loose their WP everytime they go to IF, and i cannot give the WP via Admin Tool because it's not inserting the new amount of WP, i checked all Update/Get/Change Procedures with WP but i cannot find the Error, may someone here is able to help me