Register for your free account! | Forgot your password?

You last visited: Today at 03:36

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

Advertisement



Pet spawn DC VSRO

Discussion on Pet spawn DC VSRO within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
lepitismak's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 479
Received Thanks: 63
Pet spawn DC VSRO

when i spawn pick pet i get dc

- ATACK PET IS OK
- TRANS PET IS OK
- PICK PET 3 DAYS IS OK
- CLOSED ALL REGIONS AND GET DC



PHP Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddNewCOS]    Script Date: 05/03/2014 18:35: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
    end

    commit tran

return @COS_ID 
lepitismak is offline  
Old 05/04/2014, 01:21   #2
 
Dracula Untold's Avatar
 
elite*gold: 247
Join Date: Feb 2014
Posts: 1,815
Received Thanks: 495
check >SRO(SHARD)>Programmability>Storedprocedures>dbo._ AddNewChar

maybe there is the problem !
Dracula Untold is offline  
Old 05/04/2014, 04:29   #3
 
lepitismak's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 479
Received Thanks: 63
AddNewChar?
lepitismak is offline  
Old 05/04/2014, 07:04   #4
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
Quote:
Originally Posted by OwnerDracula View Post
check >SRO(SHARD)>Programmability>Storedprocedures>dbo._ AddNewChar

maybe there is the problem !
lol.
Crue* is offline  
Old 05/04/2014, 08:08   #5
 
lepitismak's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 479
Received Thanks: 63
fixed.
restored db and make updates again
thx
lepitismak is offline  
Reply


Similar Threads Similar Threads
[VSRO] Unique Spawn Time
06/07/2016 - SRO Private Server - 12 Replies
Hey guys, is it possible that i can change the original spawn time from Tiger Girl to Demon Shaitan etc from 4Hours to 1 Hour or lower?
[Guide] Unique spawn Area & Multi-spawn! & hints to Add New Uniqes ! [Vsro]
02/17/2013 - SRO PServer Guides & Releases - 31 Replies
Please Follow this thread, this topic OUTDATE and it have alot of wrong information http://www.elitepvpers.com/forum/private-sro-expl oits-hacks-bots-guides/2339110-epic-release-us-uni que-spot.html Well as you can read from the topic title lets start USE
[REQUEST] UNIQUE SPAWN MAP for Vsro
10/15/2012 - SRO Private Server - 7 Replies
Anyone have a nice pk2 edit or know how to make unique spawn map on vsro based server ? to look like this: http://i49.tinypic.com/b9gfpu.jpg
[Vsro]How spawn uniq?
10/23/2011 - SRO Private Server - 9 Replies
Hi :) Whats the command to spawn uniq? (tigerwoman, isy... )
RefMonsterID Spawn Possible? VSRO
10/03/2011 - SRO Private Server - 0 Replies
Im trying to figure out how to configure rare item drops and ive found within the table "_RefMonster_AssignedItemRndDrop" The rare items seem to be listed but linked to a MonsterRefID is there anyways we can spawn monsters via the ID?



All times are GMT +2. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.