Register for your free account! | Forgot your password?

You last visited: Today at 21:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Forgotten Doors Bug

Discussion on Forgotten Doors Bug within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 285
Received Thanks: 49
Forgotten Doors Bug

help i use this Query and the Forgotten World got bug

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,
    [MENTION=975074]Refo[/MENTION]bjID    int,
    @Level        int,
    @HP        int,
    @MP        int,
    @HGP        int,
    @KeeperNPC    int,
    [MENTION=1174895]state[/MENTION]        int,
    @InventorySize  int,
    @itemID        int,
    @PickItemConfig tinyint,
    [MENTION=5344908]renten[/MENTION]dTime     smalldatetime
as

begin tran

    declare @COS_ID    int
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--        pet_skill_item (ÃÖ¼±È£)        
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    declare @MaxInventorySize tinyint
    select @MaxInventorySize = InventorySize
    from _RefObjCommon, _RefObjChar
    where _RefObjCommon.ID = [MENTION=975074]Refo[/MENTION]bjID and _RefObjCommon.Link = _RefObjChar.ID
    
    if( @@rowcount = 0 or @MaxInventorySize < @InventorySize )
    begin
        rollback tran
        return -5
    end

    insert into _CharCOS values (@OwnerCharID, [MENTION=975074]Refo[/MENTION]bjID, @HP, @MP, @KeeperNPC, [MENTION=1174895]state[/MENTION], NULL, @Level, 0, @HGP, @PickItemConfig, [MENTION=5344908]renten[/MENTION]dTime)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    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 [MENTION=303108]slot[/MENTION]  int
        set [MENTION=303108]slot[/MENTION] = 0
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--        pet_skill_item (ÃÖ¼±È£)        
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        while  [MENTION=303108]slot[/MENTION] < @MaxInventorySize)
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
        begin
            insert into _InvCOS values(@COS_ID, [MENTION=303108]slot[/MENTION], 0)
            if (@@error <> 0)
            begin
                -- Àκ¥Å丮 »ý¼º ½ÇÆÐ!
                rollback tran
                return -2
            end    
        
            set [MENTION=303108]slot[/MENTION] = [MENTION=303108]slot[/MENTION] + 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
        
        --BEGIN ADDITIONAL 112 SLOT IN GRAB PETS FOR 7684 DAYS
        declare [MENTION=300567]Serial[/MENTION]64 bigint
        select [MENTION=300567]Serial[/MENTION]64 = Serial64 from _Items where Data = @COS_ID
        exec _AddTimedJobForPet @COS_ID,5,22926,1992999999,1111708465,1,56,0,0,0,0,0 [MENTION=300567]Serial[/MENTION]64
        --BEGIN ADDITIONAL 112 SLOT IN GRAB PETS FOR 7684 DAYS
        
    end

    commit tran

return @COS_ID
and i get this bug


loader8 is offline  
Old 12/22/2017, 07:42   #2
 
elite*gold: 0
Join Date: Jul 2011
Posts: 69
Received Thanks: 38
_RefEventZone check if the door'a service is 0 , btw the procedure you have posted have no thing to cause that issue
Kai· is offline  
Old 12/22/2017, 20:12   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 285
Received Thanks: 49
Quote:
Originally Posted by Parx* View Post
_RefEventZone check if the door'a service is 0 , btw the procedure you have posted have no thing to cause that issue
i got this

loader8 is offline  
Old 12/31/2017, 00:40   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 285
Received Thanks: 49
up
loader8 is offline  
Reply


Similar Threads Similar Threads
[SEARCH]Gold bug , castel bug ans speed repair bug for key bug or crystal bug
04/23/2020 - Browsergames - 3 Replies
Hi I search key or crystal bug :) I will give gold , castel and speed repair bug Please send me skype : ciechomek111



All times are GMT +1. The time now is 21:44.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.