Register for your free account! | Forgot your password?

You last visited: Today at 22:34

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

Advertisement



[Release] Completely Delete An Item

Discussion on [Release] Completely Delete An Item within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
-HiwatariKai*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 9
[Release] Completely Delete An Item

Hello epvp. I prepared a small query. With this query you can delete all the characters item. I hope help you.

Quote:
USE [SRO_VT_SHARD]

/* ***** -HiwatariKai* ***** */


DECLARE @Codename128 VARCHAR(128)SET @Codename128 = 'ITEM_MALL_GLOBAL_CHATTING' -- Write code to delete item
UPDATE _Inventory SET ItemID = 0 FROM _Inventory JOIN _Items ON _Items.ID64 = _Inventory.ItemID JOIN _RefObjCommon ON _Items.RefItemID = _RefObjCommon.ID WHERE _RefObjCommon.CodeName128 = @Codename128
UPDATE _Chest SET ItemID = 0 FROM _Chest JOIN _Items ON _Items.ID64 = _Chest.ItemID JOIN _RefObjCommon ON _Items.RefItemID = _RefObjCommon.ID WHERE _RefObjCommon.CodeName128 = @Codename128
UPDATE _GuildChest SET ItemID = 0 FROM _GuildChest JOIN _Items ON _Items.ID64 = _GuildChest.ItemID JOIN _RefObjCommon ON _Items.RefItemID = _RefObjCommon.ID WHERE _RefObjCommon.CodeName128 = @Codename128
UPDATE _InvCOS SET ItemID = 0 FROM _InvCOS JOIN _Items ON _Items.ID64 = _InvCOS.ItemID JOIN _RefObjCommon ON _Items.RefItemID = _RefObjCommon.ID WHERE _RefObjCommon.CodeName128 = @Codename128
-HiwatariKai* is offline  
Thanks
3 Users
Old 07/04/2013, 00:01   #2

 
Haxor's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 3,777
Received Thanks: 1,455
#Approved
Haxor is offline  
Thanks
1 User
Old 07/04/2013, 00:18   #3
 
-HiwatariKai*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 9
Thanks.

Sorry for my bad English.
-HiwatariKai* is offline  
Old 07/04/2013, 04:15   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
You know you can use seek and destroy procedure,right?

PHP Code:
exec _SEEK_N_DESTROY_ITEM 'ITEM_MALL_GLOBAL_CHATTING' 
magicanoo is offline  
Thanks
2 Users
Old 07/04/2013, 06:37   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 1,759
Received Thanks: 401
KRALLLAR RELEASE^^
Almouhissen is offline  
Thanks
1 User
Old 07/04/2013, 11:57   #6
 
elite*gold: 0
Join Date: Mar 2012
Posts: 289
Received Thanks: 23
Quote:
Originally Posted by magicanoo View Post
You know you can use seek and destroy procedure,right?

PHP Code:
exec _SEEK_N_DESTROY_ITEM 'ITEM_MALL_GLOBAL_CHATTING' 
o.O I Wasn't Know it :@ kidding us ?
mohamedlove1 is offline  
Old 07/04/2013, 11:58   #7
 
-HiwatariKai*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 9
Quote:
Originally Posted by magicanoo View Post
You know you can use seek and destroy procedure,right?

PHP Code:
exec _SEEK_N_DESTROY_ITEM 'ITEM_MALL_GLOBAL_CHATTING' 
I know this query. It is Alternative B
-HiwatariKai* is offline  
Old 07/04/2013, 14:21   #8
 
elite*gold: 0
Join Date: Jul 2013
Posts: 72
Received Thanks: 14
Thank you
MaDenGo* is offline  
Thanks
1 User
Old 07/04/2013, 14:23   #9
 
-HiwatariKai*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 9
Quote:
Originally Posted by MaDenGo* View Post
Thank you
NP Bro. I hope help you.
-HiwatariKai* is offline  
Old 07/04/2013, 23:43   #10
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
You aren't deleting the items, you're just removing them from players. You should add a query that sets _ItemPool.InUse to 0 for affected ID64's, By setting the _ItemPool.InUse column to 0 it frees the record from _Items for further use in the database. Otherwise the record will stay unused and waste crucial space depending on the times you run your query.
IceAmStiel is offline  
Old 07/05/2013, 00:17   #11
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
Quote:
Originally Posted by Phoenix 1337 View Post


Nuff said.
And yeah, If you dont know it, I'm begodofwar
How is this messy thread supposed to be related to my post? ;D
IceAmStiel is offline  
Old 07/05/2013, 01:38   #12
 
-HiwatariKai*'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 9
Quote:
Originally Posted by IceAmStiel View Post
You aren't deleting the items, you're just removing them from players. You should add a query that sets _ItemPool.InUse to 0 for affected ID64's, By setting the _ItemPool.InUse column to 0 it frees the record from _Items for further use in the database. Otherwise the record will stay unused and waste crucial space depending on the times you run your query.
Yes lol. I write "DELETE FROM ALL CHARECTERS". Im not noop.
-HiwatariKai* is offline  
Old 07/05/2013, 10:19   #13
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
Quote:
Originally Posted by -HiwatariKai* View Post
Yes lol. I write "DELETE FROM ALL CHARECTERS". Im not noop.
You didn't..

Quote:
Originally Posted by -HiwatariKai* View Post
Hello epvp. I prepared a small query. With this query you can delete all the characters item. I hope help you.
= delete the items of characters. And it's "noop" to not free the records afterwards as they're not going to be used anymore. It simply consumes unnecessarily space at your db and might slower queries that are ran on _Items.

My latter post was supposed to be constructive criticism, yet you took it as an offense..
IceAmStiel is offline  
Old 07/05/2013, 10:24   #14

 
鳳凰城's Avatar
 
elite*gold: 273
Join Date: Aug 2012
Posts: 4,451
Received Thanks: 2,429
Quote:
Originally Posted by IceAmStiel View Post
How is this messy thread supposed to be related to my post? ;D
Sorry meant another post. I was opening both threads together.
鳳凰城 is offline  
Reply


Similar Threads Similar Threads
[HELP] Delete item
09/04/2020 - SRO Private Server - 4 Replies
hello my GM char item bug. ITEM_MALL_M_SANTA item write and item wear.now char bug have :( ID - PW enter 1-2 sec. later game error
[HOW] How to Delete NPC and Item
11/06/2011 - EO PServer Hosting - 3 Replies
How to delete them? i cant find in cq_NPC and cq_itemtype all i need just query to remove them someone help me :)
[Quest]Item Delete
04/11/2011 - Metin2 PServer Guides & Strategies - 14 Replies
Hallo Elitepvpers Ich habe diese Quest geschrieben, damit man die Items die man nicht vk oder runterwerfen kann. Diese Quest löscht diese Items quest: quest itemdelete begin state start begin when 20001.take with pc.get_level() > 80 and item.vnum != 11971 and item.vnum != 11972 and item.vnum != 11973 and item.vnum != 11974 and item.count >= 1 begin local vnum = item.get_vnum()
Completely New Release Thread
09/08/2009 - EO PServer Guides & Releases - 0 Replies
Ok guys with alot of people releasing alot of stuff, rather than having everyone having to use the search function or telling new members to use the search function (and trust me seeing that all the time gets annoying) I have decided to make a list of Releases. They are done by the creator of them. I take no credit for any of the work, unless i made the one. This thread is going to be locked right away to keep the spam out of it. If you want something added to it then private message me with...
Delete an Item in Mail
02/14/2005 - WoW Exploits, Hacks, Tools & Macros - 0 Replies
1. Find someone annoying ie a person who constantly is spamming an item they own. 2. Tell them you are interested in it and have it sent to you COD 3. Open the mail but dont buy, delete, or return it. Let it stay there for 3 days in limbo. 4. In 3 days the email will be deleted like junk mail. 5. It will not be returned to the sender. ------ gut um paar lamer auf die eier zu gehn :>



All times are GMT +1. The time now is 22:37.


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