Help About trans pets

12/22/2012 17:03 russak8642#1
On my Server test the pet´s trans has only 1 space in the inventory
how i can open the rest to it be 5 page full ?_?

And if u know a easy way to make own quest´s tell me too <3 thx in advanced!
12/22/2012 17:54 Zodiao#2
PHP Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddNewCOS]    Script Date: 02/10/2012 11:32: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 or @MaxInventorySize < @InventorySize )
    
begin
        rollback tran
        
return -5
    end

    insert into _CharCOS values 
(@OwnerCharID, @RefObjID, @HP, @MP, @KeeperNPC, @StateNULL, @Level0, @HGP, @PickItemConfig, @RentEndTime)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    
set @COS_ID = @@identity
    
if (@COS_ID 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, @Slot0)
            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 <> )
    
begin
        update _Items set Data 
= @COS_ID where ID64 = @itemID
        
if( @@error <> or @@rowcount )
        
begin
            rollback transaction
            
return -4
        end
        
        
--BEGIN ADDITIONAL 112 SLOT IN GRAB PETS FOR 1 MONTH
        
declare @Serial64 bigint
        select 
@Serial64 Serial64 from _Items where Data = @COS_ID
        exec _AddTimedJobForPet 
@COS_ID,5,22926,1331260204,1111708465,1,112,0,0,0,0,0,@Serial64
        
--BEGIN ADDITIONAL 112 SLOT IN GRAB PETS FOR 1 MONTH
        
    end

    commit tran

return @COS_ID 
Regards
12/22/2012 19:09 russak8642#3
dont worked '-'