[Release] Pet Inventory 5 Slots

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! TryToMakeServer is offline
    MemberRank
    Dec 2008 Join Date
    257Posts

    [Release] Pet Inventory 5 Slots

    Yup, got that procedure from the chink and didnt tested it.

    USE [SRO_VT_SHARD_INIT]
    GO
    /****** Object: StoredProcedure [dbo].[_AddNewCOS] Script Date: 10/23/2011 14:30:07 ******/
    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
    -- ¨¤?o£¤???? ?y?o ???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 <> 0 )
    begin
    update _Items set Data = @COS_ID where ID64 = @itemID
    if( @@error <> 0 or @@rowcount = 0 )
    begin
    rollback transaction
    return -4
    end

    exec _ADDTIMEDJOBFORPET @COS_ID,5,22926,1320084174,1111708465,1,112,0,0,0,0,0,72339069016407748


    end

    commit tran

    return @COS_ID
    Have fun


  2. #2
    Moderator Blacksheep25 is offline
    ModeratorRank
    Jan 2009 Join Date
    AustraliaLocation
    715Posts

    Re: [Release] Pet Inventory 5 Slots

    thanks ;) ill test it in a few mins
    Last edited by Blacksheep25; 27-12-11 at 12:37 PM.

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

    Re: [Release] Pet Inventory 5 Slots

    this method is useful.but after one day,pet cant be called out.
    maybe certain data should be change larger .

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

    Re: [Release] Pet Inventory 5 Slots

    Well the only thing he did !

    This line

    exec _ADDTIMEDJOBFORPET @COS_ID,5,22926,1320084174,1111708465,1,112,0,0,0,0,0,72339069016407748
    Thanks for your kind sharing :)

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

    Re: [Release] Pet Inventory 5 Slots

    so this working fine?

  6. #6
    Member Chrysler is offline
    MemberRank
    Dec 2011 Join Date
    55Posts

    Re: [Release] Pet Inventory 5 Slots

    It does works for a little time.
    When i relogged its not working anymore :(

  7. #7
    Account Upgraded | Title Enabled! TryToMakeServer is offline
    MemberRank
    Dec 2008 Join Date
    257Posts

    Re: [Release] Pet Inventory 5 Slots

    Ah ye, the chink told me, to change something at the time.
    No idea how to yo.

  8. #8
    Member Xia is offline
    MemberRank
    Jan 2012 Join Date
    2e:70:6b:32Location
    86Posts

    Re: [Release] Pet Inventory 5 Slots

    So did anyone to get this to work? Im really interested in this ;)

  9. #9
    Proficient Member safty0202 is offline
    MemberRank
    Dec 2011 Join Date
    174Posts

    Re: [Release] Pet Inventory 5 Slots

    so should i edit CharData15000 ?? SPOT Rabbit ?

  10. #10
    Member Xia is offline
    MemberRank
    Jan 2012 Join Date
    2e:70:6b:32Location
    86Posts

    Re: [Release] Pet Inventory 5 Slots

    I got this to work, but, When someone summons an old pet, gameserver exe crashes, and if 2 days go by, the same shit happens wit hthe pets that had 5 pages and new pets have 1 again only. Something's wrong wit hthe procedure at the bottom line where it says exec _AddTimedJobForPet, the numbers are wrong or in a wrong format most likely, well, that's what ive found out til now :P



Advertisement