USE [SRO_VT_SHARD]
GO
/****** Object: StoredProcedure [dbo].[_STRG_DEL_ITEM_NoTX] Script Date: 11/13/2011 12:21:32 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[_STRG_DEL_ITEM_NoTX]
@DelFromPC_Inv AS TINYINT,
@CharID AS BIGINT, -- 매직 큐브 추가로 인해 확장
@Slot AS TINYINT
as
declare @Rvalue int
declare @ItemToDel bigint
if (@DelFromPC_Inv = 1)
select @ItemToDel = ItemID FROM _Inventory WHERE CharID = @CharID AND Slot = @Slot
else if ( @DelFromPC_Inv = 2 )
select @ItemToDel = ItemID FROM _InventoryForLinkedStorage WHERE LinkedItemID = @CharID AND Slot = @Slot
else
select @ItemToDel = ItemID FROM _InvCOS WHERE COSID = @CharID AND Slot = @Slot
if (@ItemToDel IS NULL or @ItemToDel = 0)
return -1
----------------------------------------
-- 졸라 이 아래쪽 순전히 펫 소환아이템 때문에
-- 들어간 코드이다. 분명 overhead이긴 하지만
-- _STRG_DEL_ITEM 의 신뢰도와 게임�*버 코드 복잡도
-- 증가를 유발하지 않기 위해 어쩔 수 없는 판단이었다. T_T
----------------------------------------
declare @BoundCOS int
declare @RefItemID int
select @RefItemID = RefItemID, @BoundCOS = Data from _Items where ID64 = @ItemToDel
if (@@ROWCOUNT = 0)
return -2
----------------------------------------
-- 혹시 이눔 PET 소환아이템인가?
----------------------------------------
declare @TypeID1 tinyint
declare @TypeID2 tinyint
declare @TypeID3 tinyint
select @TypeID1 = TypeID1, @TypeID2 = TypeID2, @TypeID3 = TypeID3 from _RefObjCommon where ID = @RefItemID
if (@TypeID1 = 3 and @TypeID2 = 2 and @TypeID3 = 1 )
begin
----------------------------------------
-- 엮여있는 PET 이 있으면 그넘 삭제
----------------------------------------
if (@BoundCOS <> 0)
begin
exec @Rvalue = _DeleteCharCOS_NoTX @BoundCOS
if (@Rvalue < 0)
return @Rvalue
end
end
----------------------------------------
-- 혹시 이눔 LinkedStorage아이템인가?
----------------------------------------
else if( @TypeID1 = 3 and @TypeID2 = 2 and @TypeID3 = 3 )
begin
----------------------------------------
-- 엮여있는 Storage 있으면 그넘 삭제
----------------------------------------
if (@BoundCOS <> 0)
begin
IF( NOT EXISTS( select LinkedItemID from _InventoryForLinkedStorage where LinkedItemID = @ItemToDel ) )
BEGIN return -1000 END
IF( EXISTS( select top 1 ItemID from _InventoryForLinkedStorage where LinkedItemID = @ItemToDel and ItemID <> 0 and ItemID IS NOT NULL ) )
BEGIN
update _ItemPool Set InUse = 0 from _ItemPool as IP join _InventoryForLinkedStorage as IFLS on IP.ItemID = IFLS.ItemID
where IFLS.LinkedItemID = @ItemToDel AND IFLS.ItemID <> 0
END
DELETE FROM _InventoryForLinkedStorage where LinkedItemID = @ItemToDel
IF( @@ERROR <> 0 )
BEGIN return -2 END
end
end
----------------------------------------------------------
-- 슬롯 비우기
----------------------------------------------------------
if (@DelFromPC_Inv = 1 )
update _Inventory SET ItemID = 0 WHERE CharID = @CharID AND Slot = @Slot
else if (@DelFromPC_Inv = 2 )
update _InventoryForLinkedStorage SET ItemID = 0 WHERE LinkedItemID = @CharID AND Slot = @Slot
else
update _InvCOS SET ItemID = 0 WHERE COSID = @CharID AND Slot = @Slot
if (@@error <> 0 OR @@rowcount = 0)
return -3
----------------------------------------------------------
-- 삭제 대상 아이템에 �*인 임대 정보 삭제
----------------------------------------------------------
if exists (select 1 from _RentItemInfo with (nolock) where nItemDBID = @ItemToDel)
begin
delete from _RentItemInfo where nItemDBID = @ItemToDel
if (@@ERROR <> 0 OR @@ROWCOUNT = 0)
begin
rollback transaction
return -6
end
end
----------------------------------------------------------
-- 해당 아이템 삭제
----------------------------------------------------------
exec @Rvalue = _STRG_FREE_ITEM_NoTX @ItemToDel
if (@Rvalue < 0)
return -4
[Release] Massive Mesh List! *Warning* Massive pics 08/02/2011 - CO2 PServer Guides & Releases - 31 Replies Ok so this thread was requesting a list of all npc meshes... while obviously you can get them from the client quite simply... I wanted a nice reference for what they LOOK like last year and so coded a simple command to continually spawn the next possible npc/mob and one of my members used it to take a screenshot of each mesh.
NOTE: TQ HAS CHANGED MOST OF THESE MESHES. MANY HAVE CHANGED
I'm posting this for reference material only (myself as much as for you). All credit goes to schmidt who...
2Moons DC's after i log in with CE. 06/23/2010 - Dekaron - 12 Replies Hello guys, thanks a bunch for all these scripts and everything, but i have problems. I Use Nebular's bypass to launch dekaron.exe and then when its loading up i open up CE and put in all the scripts. I log into the character selection, enable to scripts, and when i log in i DC in about a second. Ive even tried to run around with CE loaded up no scripts enabled or anything and yeah, its still DC's in about a second when im in the game. Could anyone help me with this problem? Please and Thanks.
To much Dc's?? 03/04/2010 - Dekaron - 10 Replies Guys since the new update come i cant play.. iam lvling my AK lv 86 on A crespo Dungeon and i play 2 min there and it disconect o.O
Iam using script for NO DC DUNGEON see if its right:
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
0045C38D: //8B 50 1C 89 51 20
SJSro DC's Bug 08/01/2009 - SRO Private Server - 6 Replies Hello, im playing on sjsro (On server which has the first registration web ;D)
But im getting lots of DC's, it cannot be of PK2 cuz my cousin using same Media.pk2 data.pk2 and particles.pk2, and he don't get any dc in 7h, i get dc in 5min. REinstalled like 3 times..
Can it be cuz of Vista windows? or its internet connection?
Best way against DC's 11/06/2007 - SRO Hacks, Bots, Cheats & Exploits - 8 Replies Here is they best way for dont getting Dc's every 30 minutes
This is very simple:
:eek::eek::eek::eek::eek::eek:
1. DO NOT USE ANY ANTI DC'S PROGRAMS;)
2. Deactivate you VIRUS SCAN and Disable you FIREWALL:)
3. 24/7 HAPPY BOTTING :eek::eek::eek: