Fixing Horse bug in blackrogue files

Results 1 to 7 of 7
  1. #1
    Always Trolling Around skerdikas is offline
    MemberRank
    Dec 2011 Join Date
    LithuaniaLocation
    504Posts

    Fixing Horse bug in blackrogue files

    So guys im starting this bcuz im interested in fixing this bug

    its related to honor buffs and transport

    without honor buffs or buff it isnt workin so far testing some params in db by changin it

    more info about bug can be showed like that


    ☆[Bug] Silkroad spawn 200 horses - YouTube

    idea is to remove dismount funcion and just leave termination some ideas where it can be found in dababase wich param i mean _refchar


  2. #2
    Always Trolling Around skerdikas is offline
    MemberRank
    Dec 2011 Join Date
    LithuaniaLocation
    504Posts

    Re: Fixing Horse bug in blackrogue files

    so anyone interested?

  3. #3
    Always Trolling Around skerdikas is offline
    MemberRank
    Dec 2011 Join Date
    LithuaniaLocation
    504Posts

    Re: Fixing Horse bug in blackrogue files

    so far nothing ran out of ideas since all params are same as vsro

  4. #4
    Member InPanic Kev is offline
    MemberRank
    Oct 2011 Join Date
    GERMANYLocation
    76Posts

    Re: Fixing Horse bug in blackrogue files

    show me ur _AddNewCos Proc

  5. #5
    Always Trolling Around skerdikas is offline
    MemberRank
    Dec 2011 Join Date
    LithuaniaLocation
    504Posts

    Re: Fixing Horse bug in blackrogue files

    ofc kev


    USE [BR_SHARD]
    GO
    /****** Object: StoredProcedure [dbo].[_AddNewCOS] Script Date: 11/20/2013 12:18:40 ******/
    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,
    @RentTime 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,@RentTime)
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    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

  6. #6
    Always Trolling Around skerdikas is offline
    MemberRank
    Dec 2011 Join Date
    LithuaniaLocation
    504Posts

    Re: Fixing Horse bug in blackrogue files

    kev what about idea with increasing cooldown time?

  7. #7
    Member InPanic Kev is offline
    MemberRank
    Oct 2011 Join Date
    GERMANYLocation
    76Posts

    Re: Fixing Horse bug in blackrogue files

    Quote Originally Posted by skerdikas View Post
    kev what about idea with increasing cooldown time?
    Try this One

    Code:
    use SRO_VT_SHARD
    update _RefObjItem 
    set Param4 = '20000' , Desc4_128 = 'COOLTIME:0x000000C8'
    from _RefObjItem as roi
    left join _RefObjCommon as roc on roc.Link = roi.ID
    where TypeID1 = 3 and TypeID2 = 3 and TypeID3 = 3 and TypeID4 = 2
    About the Proc i check it later :) atm a bit bussy but should fix easy



Advertisement