[release]140 pet inventory expand

Results 1 to 19 of 19
  1. #1
    Member chichi is offline
    MemberRank
    Jun 2004 Join Date
    97Posts

    happy [release]140 pet inventory expand

    find pet that u want to expand from _refobjcommon.
    change column of inventery to 140
    then change chardataXXX of media.pk2 to 140
    then modify store_procedure _addnewCOS
    right click ,execute
    u can find your pet has 140 inventory.

    sorry for my poor English .
    hope can help some one.

    _addnewCOS is below .


    PHP Code:
    USE [SRO_VT_SHARD_INIT]
    GO
    /****** Object:  StoredProcedure [dbo].[_AddNewCOS]    Script Date: 12/29/2011 12:41:21 ******/
    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
                    
    -- à?o¥???? ?y????D!
                    
    rollback tran
                    
    return -2
                end    
            
                set 
    @Slot = @Slot 1
            end
        end
        
    /*    --′? àì?ó àì ??·3??′? μ¥àì?í?| 3?á? ?ê′?′ù!
        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
        
        exec _ADDTIMEDJOBFORPET 
    @COS_ID,5,22926,1590084174,1111708465,1,112,0,0,0,0,0,72339069016407748

        
        end

        commit tran

    return @COS_ID 
    Last edited by chichi; 27-12-11 at 12:42 PM.


  2. #2
    I hear your strange heart egsro is offline
    MemberRank
    Aug 2010 Join Date
    277Posts

    Re: [release]140 pet inventory expand

    would be greet if you told us which column should we modify in _refobjcommon

  3. #3
    Member chichi is offline
    MemberRank
    Jun 2004 Join Date
    97Posts

    Re: [release]140 pet inventory expand

    end of _refobjcommon is column 'link'
    then look for 'InventorySize' from _refchar
    notice:_refchar id = link ,

    help helpful to u .

  4. #4
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: [release]140 pet inventory expand

    this will make all the grap pets have 140 slots?

    not working....

  5. #5
    Member chichi is offline
    MemberRank
    Jun 2004 Join Date
    97Posts

    Re: [release]140 pet inventory expand

    every pet has the data inventorysize
    u should change one by one,u may also use sql querry.
    i have tested this,and successful.

    right click the store_proceed,and exeute .

  6. #6
    Account Upgraded | Title Enabled! saxz is offline
    MemberRank
    Jul 2010 Join Date
    1,293Posts

    Re: [release]140 pet inventory expand

    i told you not working lol
    i already tested this

  7. #7
    Member chichi is offline
    MemberRank
    Jun 2004 Join Date
    97Posts

    Re: [release]140 pet inventory expand

    is there store_procedure _ADDTIMEDJOBFORPET ?
    if not,add it .

  8. #8
    Enthusiast kid1110 is offline
    MemberRank
    Nov 2005 Join Date
    31Posts

    Re: [release]140 pet inventory expand

    Quote Originally Posted by chichi View Post
    find pet that u want to expand from _refobjcommon.
    change column of inventery to 140
    then change chardataXXX of media.pk2 to 140
    then modify store_procedure _addnewCOS
    right click ,execute
    u can find your pet has 140 inventory.

    sorry for my poor English .
    hope can help some one.

    _addnewCOS is below.
    Good job. Done.

    Thanks.

  9. #9
    I hear your strange heart egsro is offline
    MemberRank
    Aug 2010 Join Date
    277Posts

    Re: [release]140 pet inventory expand

    ITEM_COS_P_CAT_SCROLL
    Link = 10498 ?!

    how to change it to 140 slots xD

  10. #10
    Enthusiast kid1110 is offline
    MemberRank
    Nov 2005 Join Date
    31Posts

    Re: [release]140 pet inventory expand

    Quote Originally Posted by egsro View Post
    ITEM_COS_P_CAT_SCROLL
    Link = 10498 ?!

    how to change it to 140 slots xD
    Step 1: Find ID Pet in _RefObjCommon (Don't need link).
    - Ex: 9264
    - Modify 'InventorySize' in _RefObjChar of ID 9264.

    Step 2: Edit file characterdata_10000.txt
    - Ex:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    - Complete look like:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    Step 3: Modify SRO_VT_SHARD \ Programmability \ Stored Procedures \dbo._AdNewCOS
    - Add:
    Code:
    exec _ADDTIMEDJOBFORPET @COS_ID,5,22926,1590084174,1111708465,1,112,0,0,0,0,0,72339069016407748
    - Beforce:
    Code:
        end
    
        commit tran
    
    return @COS_ID
    - Execute.

    Step 4: Import characterdata_10000.txt to media.pk2.

    Done.
    Last edited by kid1110; 28-12-11 at 04:38 PM.

  11. #11
    Apprentice susii is offline
    MemberRank
    Dec 2011 Join Date
    6Posts

    Re: [release]140 pet inventory expand

    Quote Originally Posted by kid1110 View Post
    Step 1: Find ID Pet in _RefObjCommon (Don't need link).
    - Ex: 9264
    - Modify 'InventorySize' in _RefChar of ID 9264.

    Step 2: Edit file characterdata_10000.txt
    - Ex:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    - Complete look like:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    Step 3: Import characterdata_10000.txt to media.pk2.

    Done.

    _RefChar doesn't exist. Did you mean _RefObjChar ?

  12. #12
    Enthusiast kid1110 is offline
    MemberRank
    Nov 2005 Join Date
    31Posts

    Re: [release]140 pet inventory expand

    Sorry, wrong write.

    _RefObjChar is true.


  13. #13
    Apprentice susii is offline
    MemberRank
    Dec 2011 Join Date
    6Posts

    Re: [release]140 pet inventory expand

    Thanks.. It's working correctly..

  14. #14
    I hear your strange heart egsro is offline
    MemberRank
    Aug 2010 Join Date
    277Posts

    Re: [release]140 pet inventory expand

    Quote Originally Posted by kid1110 View Post
    Sorry, wrong write.

    _RefObjChar is true.

    how to spawn 2x grap pets xD or 2x attack pet !

    thx alot for your simple guild :)

  15. #15
    Novice adelnaim is offline
    MemberRank
    Dec 2011 Join Date
    2Posts

    Re: [release]140 pet inventory expand

    Quote Originally Posted by egsro View Post
    how to spawn 2x grap pets xD or 2x attack pet !

    thx alot for your simple guild :)
    hi can u upload Ur media.pk2 if u can Ty

    Quote Originally Posted by kid1110 View Post
    Sorry, wrong write.

    _RefObjChar is true.

    hi can u upload Ur media.pk2 if u can Ty....

  16. #16
    Member Shellbullet is offline
    MemberRank
    Oct 2011 Join Date
    51Posts

    thumbs down Re: [release]140 pet inventory expand

    Quote Originally Posted by kid1110 View Post
    Step 1: Find ID Pet in _RefObjCommon (Don't need link).
    - Ex: 9264
    - Modify 'InventorySize' in _RefObjChar of ID 9264.

    Step 2: Edit file characterdata_10000.txt
    - Ex:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    - Complete look like:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    Step 3: Modify SRO_VT_SHARD \ Programmability \ Stored Procedures \dbo._AdNewCOS
    - Add:
    Code:
    exec _ADDTIMEDJOBFORPET @COS_ID,5,22926,1590084174,1111708465,1,112,0,0,0,0,0,72339069016407748
    - Beforce:
    Code:
        end
    
        commit tran
    
    return @COS_ID
    - Execute.

    Step 4: Import characterdata_10000.txt to media.pk2.

    Done.
    mhhh this is all false or?
    what is the diferent between the lines??
    Step 2: Edit file characterdata_10000.txt
    - Ex:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    - Complete look like:
    Code:
    1	9264	COS_P_SEOWON	서원	xxx	SN_COS_P_SEOWON	xxx	0	1	1	2	3	4	5000	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	3	0	0	0	0	0	50	120	45	0	4	0	cos\p_seowon.bsr	xxx	cos\cos_p_seowon.ddj	xxx	xxx	1	0	109	0	140	0	0	0	0	0	1	0	0	0	7	10	1	1	27	0	27	2	0	1679057940	3	3000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    is the same ...

    and in the _RefObjCommon i search for example ITEM_COS_P_CAT_SCROLL he have the ID 23276 or Link 10498!

    but nothing from this i found in _RefObjChar ???
    or in the media.pk2 !

    this post is totaly false and dont work!
    or is not for vsro files!

  17. #17
    Enthusiast molinota is offline
    MemberRank
    Dec 2011 Join Date
    29Posts

    Re: [release]140 pet inventory expand

    Nice thx

  18. #18
    I ♥ Coding BlackNova is offline
    MemberRank
    Jan 2010 Join Date
    235Posts

    Re: [release]140 pet inventory expand

    Bugged all my Pets .... bad query
    Last edited by BlackNova; 30-01-12 at 07:46 PM.

  19. #19
    Member chichi is offline
    MemberRank
    Jun 2004 Join Date
    97Posts

    Re: [release]140 pet inventory expand

    almost all mediapk2 is ok,its easy to find it .Im from China.i cant use mediafire,maybe they ban Chinese ip .



Advertisement