Register for your free account! | Forgot your password?

You last visited: Today at 03:26

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

Advertisement



Remove ADV Elixirs

Discussion on Remove ADV Elixirs within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 50
Received Thanks: 3
Remove ADV Elixirs

How i can delete them ?? or disable
elsarif94 is offline  
Old 04/02/2013, 18:02   #2
 
elite*gold: 0
Join Date: Mar 2013
Posts: 50
Received Thanks: 3
UP
elsarif94 is offline  
Old 04/02/2013, 19:55   #3

 
鳳凰城's Avatar
 
elite*gold: 273
Join Date: Aug 2012
Posts: 4,451
Received Thanks: 2,428
Here it is.
Code:
USE [SRO_VT_SHARD]
GO
UPDATE _RefObjItem  
SET _RefObjItem.Param1 = 0
FROM _RefObjItem AS Items
INNER JOIN _RefObjCommon AS Objects
ON Items.ID=Objects.Link
WHERE Quelle.CodeName128 like '%ITEM_ETC_ARCHEMY_UPPER_REINFORCE_RECIPE_%_%_%'
Credits goes to:
鳳凰城 is offline  
Thanks
3 Users
Old 04/02/2013, 20:07   #4
 
elite*gold: 0
Join Date: Mar 2013
Posts: 50
Received Thanks: 3
xD **** thanks

edit : ups xD ill get this error ?

Msg 4104, Level 16, State 1, Line 6
The multi-part identifier "Quelle.CodeName128" could not be bound.
elsarif94 is offline  
Old 04/03/2013, 00:10   #5

 
鳳凰城's Avatar
 
elite*gold: 273
Join Date: Aug 2012
Posts: 4,451
Received Thanks: 2,428
Try CodeName128 instead of Quelle.CodeName128 .
鳳凰城 is offline  
Old 04/09/2013, 18:47   #6
 
elite*gold: 0
Join Date: Mar 2013
Posts: 50
Received Thanks: 3
well i gets crash if i destroy an item
elsarif94 is offline  
Old 04/09/2013, 18:56   #7
 
elite*gold: 0
Join Date: Mar 2007
Posts: 849
Received Thanks: 667
use this and completely delete the item... problem solved

Quote:
exec _SEEK_N_DESTROY_ITEM 'ITEMNAME'
in case u dont have the stored procedure...

here it is:
Quote:
USE [SRO_VT_SHARD]
GO
/****** Object: StoredProcedure [dbo].[_SEEK_N_DESTROY_ITEM] Script Date: 04/09/2013 17:56:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


ALTER PROCEDURE [dbo].[_SEEK_N_DESTROY_ITEM]
@CodeName varchar(129)
AS

SET NOCOUNT ON

declare @RefItemID int
select @RefItemID = isnull(max(ID), 0) from _RefObjCommon with ( nolock ) where Codename128 = @CodeName

if(@RefItemID = 0)
begin
raiserror('Unknown Item', 1, 16)
return -1
end

-- Selecting inuse equal = 1
select ID64, OptLevel, Variance, Data into #DeleteItems from _Items as it with ( nolock, index = 0 ), _ItemPool as itp with ( nolock, index = 0 ) where it.RefItemID = @RefItemID and it.ID64 = itp.ItemID and itp.InUse = 1
delete from #DeleteItems where ID64 = 0

-- Avatar Table Exist?
declare @IsExistAvatarTable tinyint
if exists (select * from dbo.sysobjects where id = object_id(N'[_InventoryForAvatar]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
set @IsExistAvatarTable = 1
END
ELSE
BEGIN
set @IsExistAvatarTable = 0
END


BEGIN TRANSACTION
-- _Inventory = 1, _InvCOS = 2, _Chest = 3, _GuildChest = 4, _InventoryForAvatar = 5
-- Deleted Log Insert

select
1 as OwnerType, iv.CharID as OwnerID, iv.ItemID as ID64, di.OptLevel, di.Variance, di.Data into #DEL_INV
from _Inventory as iv with ( nolock ), #DeleteItems as di
where iv.ItemID = di.ID64
update _Inventory set ItemID = 0 where ItemID in (select ID64 from #DeleteItems)

select
2 as OwnerType, ic.COSID as OwnerID, ic.ItemID as ID64, di.OptLevel, di.Variance, di.Data into #DEL_INVCOS
from _InvCOS as ic with ( nolock ), #DeleteItems as di
where ic.ItemID = di.ID64
update _InvCOS set ItemID = 0 where ItemID in (select ID64 from #DeleteItems)

select
3 as OwnerType, c.UserJID as OwnerID, c.ItemID as ID64, di.OptLevel, di.Variance, di.Data into #DEL_CHEST
from _Chest as c with ( nolock ), #DeleteItems as di
where c.ItemID = di.ID64
update _Chest set ItemID = 0 where ItemID in (select ID64 from #DeleteItems)

select
4 as OwnerType, gc.GuildID as OwnerID, gc.ItemID as ID64, di.OptLevel, di.Variance, di.Data into #DEL_GUILDCHEST
from _GuildChest as gc with ( nolock ), #DeleteItems as di
where gc.ItemID = di.ID64
update _GuildChest set ItemID = 0 where ItemID in (select ID64 from #DeleteItems)


if( @IsExistAvatarTable = 1 )
BEGIN
select
5 as OwnerType, ivAva.CharID as OwnerID, ivAva.ItemID as ID64, di.OptLevel, di.Variance, di.Data into #DEL_INVAVA
from _InventoryForAvatar as ivAva with ( nolock ), #DeleteItems as di
where ivAva.ItemID = di.ID64
update _InventoryForAvatar set ItemID = 0 where ItemID in (select ID64 from #DeleteItems)
END

update _ItemPool set InUse = 0 where ItemID in (select ID64 from #DeleteItems)
update _Items set Serial64 = 0 where ID64 in (select ID64 from #DeleteItems)

if( @@ERROR <> 0 )
BEGIN
ROLLBACK TRANSACTION
RaisError('Items deleted fail', 1, 16)
return -1
END

if( @IsExistAvatarTable = 1 )
BEGIN
-- _Log_SEEK_N_DESTROY_ITEM_FAST ·Î±× Å×À̺í À̸§Àº ¿¹Àü ¹öÀüÀ» À¯ÁöÇÑ´Ù.
insert into _Log_SEEK_N_DESTROY_ITEM_FAST
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_INV union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_INVCOS union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_CHEST union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_GUILDCHEST union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_INVAVA
END
ELSE
BEGIN
-- _Log_SEEK_N_DESTROY_ITEM_FAST ·Î±× Å×À̺í À̸§Àº ¿¹Àü ¹öÀüÀ» À¯ÁöÇÑ´Ù.
insert into _Log_SEEK_N_DESTROY_ITEM_FAST
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_INV union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_INVCOS union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_CHEST union all
select getdate(), OwnerType, OwnerID, ID64, @CodeName, OptLevel, Variance, Data from #DEL_GUILDCHEST
END


COMMIT TRANSACTION

drop table #DEL_INV
drop table #DEL_INVCOS
drop table #DEL_CHEST
drop table #DEL_GUILDCHEST
if( @IsExistAvatarTable = 1 )
BEGIN
drop table #DEL_INVAVA
END
drop table #DeleteItems

return 1
SET NOCOUNT OFF


royalblade is offline  
Old 04/10/2013, 20:38   #8
 
elite*gold: 200
Join Date: Nov 2008
Posts: 1,263
Received Thanks: 679
Or, just use this:

Code:
USE SRO_VT_SHARD
UPDATE _RefObjCommon
SET CanUse = 0
WHERE CodeName128 like '%ITEM_ETC_ARCHEMY_UPPER_REINFORCE_RECIPE_%_%_%'
Adv elixirs will be unusable.
flozz is offline  
Old 05/10/2014, 20:55   #9
 
lepitismak's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 479
Received Thanks: 63
Quote:
Originally Posted by royalblade View Post
use this and completely delete the item... problem solved



in case u dont have the stored procedure...

here it is:
more explantion?
lepitismak is offline  
Old 06/04/2016, 19:38   #10
 
xxnukertube's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 578
Received Thanks: 166
Smile

Quote:
Originally Posted by lepitismak View Post
more explantion?
Code:
--Working Query
UPDATE _RefObjItem SET Param1 = 0 WHERE ID IN
(SELECT LINK FROM _RefObjCommon  WHERE TypeID1 = 3 and TypeID2 = 3 and TypeID3 = 10 and TypeID4 = 4)
xxnukertube is offline  
Thanks
1 User
Old 07/16/2016, 15:59   #11
 
elite*gold: 0
Join Date: Jul 2016
Posts: 37
Received Thanks: 4
Quote:
Originally Posted by elsarif94 View Post
How i can delete them ?? or disable
Use SRO_VT_SHARD select ID from _RefObjCommon where CodeName128 like 'The item you want remove'

USE SRO_VT_SHARD DELETE FROM _RefMonster_AssignedItemDrop where RefitemID like 'Item ID'
PlayIGNITE is offline  
Reply


Similar Threads Similar Threads
[Request Help] Remove mobs / remove eur items / remove npc
02/15/2013 - SRO Private Server - 0 Replies
Iam sure all now saies this guy is mad :D why not remove the db i want to know how i can remove mobs from samrkand and add alex mobs there and remove eur item from npc and drobs and remove some npcs ty guys _________________________ I see that there is too much help here it's my topic no.2 without any answer



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


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.