Pet spawn DC VSRO

05/03/2014 23:36 lepitismak#1
when i spawn pick pet i get dc

- ATACK PET IS OK
- TRANS PET IS OK
- PICK PET 3 DAYS IS OK
- CLOSED ALL REGIONS AND GET DC


[Only registered and activated users can see links. Click Here To Register...]
PHP Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddNewCOS]    Script Date: 05/03/2014 18:35:15 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE 
[dbo].[_AddNewCOS]
    @
OwnerCharID    int,
    @
RefObjID    int,
    @
Level        int,
    @
HP        int,
    @
MP        int,
    @
HGP        int,
    @
KeeperNPC    int,
    @
State        int,
    @
InventorySize  int,
    @
itemID        int,
    @
PickItemConfig tinyint,
    @
RentEndTime     smalldatetime
as

begin tran

    
declare @COS_ID    int
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--        
pet_skill_item (최선호)        
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    declare @
MaxInventorySize tinyint
    select 
@MaxInventorySize = InventorySize
    from _RefObjCommon
, _RefObjChar
    where _RefObjCommon
.ID = @RefObjID and _RefObjCommon.Link = _RefObjChar.ID
    
    
if( @@rowcount = 0 or @MaxInventorySize < @InventorySize )
    
begin
        rollback tran
        
return -5
    end

    insert into _CharCOS values 
(@OwnerCharID, @RefObjID, @HP, @MP, @KeeperNPC, @State, NULL, @Level, 0, @HGP, @PickItemConfig, @RentEndTime)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    
set @COS_ID = @@identity
    
if (@COS_ID = 0 OR @@error <> 0)
    
begin
        rollback tran
        
return -1
    end

--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--        
pet_skill_item (최선호)        
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    if (@
MaxInventorySize > 0)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    
begin
        
declare @Slot  int
        set 
@Slot = 0
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--        
pet_skill_item (최선호)        
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        while (@
Slot < @MaxInventorySize)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        
begin
            insert into _InvCOS values
(@COS_ID, @Slot, 0)
            if (@@
error <> 0)
            
begin
                
-- 인벤토리 생성 실패!
                
rollback tran
                
return -2
            end    
        
            set 
@Slot = @Slot + 1
        end
    end
    
/*    --더 이상 이 컬럼에는 데이터를 넣지 않는다!
    UPDATE _Char SET EngagedCOS = @COS_ID WHERE CharID = @OwnerCharID
    IF (@@ERROR <> 0 OR @@ROWCOUNT = 0)
    BEGIN
        ROLLBACK TRANSACTION
        RETURN -3
    END
*/
    
if( @itemID <> 0 )
    
begin
        update _Items set Data 
= @COS_ID where ID64 = @itemID
        
if( @@error <> 0 or @@rowcount = 0 )
        
begin
            rollback transaction
            
return -4
        end
    end

    commit tran

return @COS_ID 
05/04/2014 01:21 Dracula Untold#2
check >SRO(SHARD)>Programmability>Storedprocedures>dbo._ AddNewChar

maybe there is the problem !
05/04/2014 04:29 lepitismak#3
AddNewChar?
05/04/2014 07:04 Crue*#4
Quote:
Originally Posted by OwnerDracula View Post
check >SRO(SHARD)>Programmability>Storedprocedures>dbo._ AddNewChar

maybe there is the problem !
lol.
05/04/2014 08:08 lepitismak#5
fixed.
restored db and make updates again
thx