Meister Posted April 1, 2013 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 841 Reputation: 17 Joined: 04/16/12 Last Seen: March 4, 2024 Share Posted April 1, 2013 Hi i'm certain that there was a requested topic that deletes one particular item in the server. example I want to delete 16774 to every player including on their storage.. how will I do it on my sql? or any script? Thank you! Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 4, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted August 4, 2013 shutdown server...and try run these in your SQL Machine.. DELETE FROM `auction` WHERE `nameid` = '16774' DELETE FROM `cart_inventory` WHERE `nameid` = '16774' DELETE FROM `guild_storage` WHERE `nameid` = '16774' DELETE FROM `inventory` WHERE `nameid` = '16774' DELETE FROM `mail` WHERE `nameid` = '16774' DELETE FROM `storage` WHERE `nameid` = '16774' do a backup before try it. Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 1, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted April 1, 2013 shutdown server...and try run these in your SQL Machine.. DELETE FROM `auction` WHERE `nameid` = '16774' DELETE FROM `cart_inventory` WHERE `nameid` = '16774' DELETE FROM `guild_storage` WHERE `nameid` = '16774' DELETE FROM `inventory` WHERE `nameid` = '16774' DELETE FROM `mail` WHERE `nameid` = '16774' DELETE FROM `storage` WHERE `nameid` = '16774' do a backup before try it. 1 Quote Link to comment Share on other sites More sharing options...
0 burwinkelito Posted August 9, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 06/17/16 Last Seen: August 14, 2024 Share Posted August 9, 2018 On 9/7/2013 at 4:40 PM, Capuche said: Make an update instead of delete to change the id Could you make an example, please? SQL is messy and dont want to fuck it up... Quote Link to comment Share on other sites More sharing options...
0 burwinkelito Posted August 10, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 06/17/16 Last Seen: August 14, 2024 Share Posted August 10, 2018 On 9/7/2013 at 4:40 PM, Capuche said: Make an update instead of delete to change the id Could you post an example? Im sorry but trying isnt my thing, im afraid of fucking things up Quote Link to comment Share on other sites More sharing options...
Lugia Posted April 1, 2013 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 95 Reputation: 2 Joined: 08/23/12 Last Seen: September 2, 2015 Share Posted April 1, 2013 (edited) I guess he's looking for a script? Try to insert this one : Try this in your test server first : Mes "Input Item ID"; input .@delitem$; if(.@delitem$ == " ") goto failed; next; Mes "Deleting Items!"; query_sql(DELETE FROM `auction` WHERE `nameid` = "+.@delitem$+"); query_sql(DELETE FROM `cart_inventory` WHERE `nameid` = "+.@delitem$+"); query_sql(DELETE FROM `guild_storage` WHERE `nameid` = "+.@delitem$+"); query_sql(DELETE FROM `inventory` WHERE `nameid` = "+.@delitem$+"); query_sql(DELETE FROM `mail` WHERE `nameid` = "+.@delitem$+"); query_sql(DELETE FROM `storage` WHERE `nameid` = "+.@delitem$+"); next; Mes "Successful!"; close; failed: Mes "Invalid Item ID!"; close; } I dunno if this code will work but try this first, and tell me the errors, or post some screenshots. Edited April 1, 2013 by Lugia Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 1, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted April 1, 2013 it's better to do this during the server is offline or the SQL will temporary stop update the database. it will be a problems if the deleted item still exist in the player account since sometime the database will re-update the database with the items info . Quote Link to comment Share on other sites More sharing options...
Lugia Posted April 1, 2013 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 95 Reputation: 2 Joined: 08/23/12 Last Seen: September 2, 2015 Share Posted April 1, 2013 yes of course, and try this one : x,x,x,x script sample 915,{ mes "Hello"; mes "Want to delete items?"; next; mes "Please input item id"; input .@delitem$; if(.@delitem$ == "") goto fail; next; query_sql(DELETE FROM `auction` WHERE `nameid` = '"+.@delitem$+"'); query_sql(DELETE FROM `cart_inventory` WHERE `nameid` = '"+.@delitem$+"'); query_sql(DELETE FROM `guild_storage` WHERE `nameid` = '"+.@delitem$+"'); query_sql(DELETE FROM `inventory` WHERE `nameid` = '"+.@delitem$+"'); query_sql(DELETE FROM `mail` WHERE `nameid` = '"+.@delitem$+"'); query_sql(DELETE FROM `storage` WHERE `nameid` = '"+.@delitem$+"'); next; Mes "Successful!"; close; fail: mes "Invalid Item ID!"; close; } try this script if still not working just message me or comment here asap. Quote Link to comment Share on other sites More sharing options...
Brian Posted April 3, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted April 3, 2013 yes of course, and try this one :Your re-post of the script does not address what Emistry said in post #4. Quote Link to comment Share on other sites More sharing options...
zhaosin Posted August 4, 2013 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 172 Reputation: 0 Joined: 07/07/12 Last Seen: May 22, 2016 Share Posted August 4, 2013 Script of Lugia not active, please fix Quote Link to comment Share on other sites More sharing options...
Darkpurple Posted August 4, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted August 4, 2013 shutdown server...and try run these in your SQL Machine.. DELETE FROM `auction` WHERE `nameid` = '16774' DELETE FROM `cart_inventory` WHERE `nameid` = '16774' DELETE FROM `guild_storage` WHERE `nameid` = '16774' DELETE FROM `inventory` WHERE `nameid` = '16774' DELETE FROM `mail` WHERE `nameid` = '16774' DELETE FROM `storage` WHERE `nameid` = '16774' do a backup before try it. Thanks! but how about delete multi items? Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 4, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted August 4, 2013 DELETE FROM `table` WHERE `nameid` IN ( 607,608,512 ); Quote Link to comment Share on other sites More sharing options...
ajaytrix Posted August 28, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 84 Reputation: 0 Joined: 03/29/12 Last Seen: February 15, 2017 Share Posted August 28, 2013 shutdown server...and try run these in your SQL Machine.. DELETE FROM `auction` WHERE `nameid` = '16774' DELETE FROM `cart_inventory` WHERE `nameid` = '16774' DELETE FROM `guild_storage` WHERE `nameid` = '16774' DELETE FROM `inventory` WHERE `nameid` = '16774' DELETE FROM `mail` WHERE `nameid` = '16774' DELETE FROM `storage` WHERE `nameid` = '16774' do a backup before try it. do you just save this as .sql file and click on database and import this? Quote Link to comment Share on other sites More sharing options...
Brian Posted August 28, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted August 28, 2013 do you just save this as .sql file and click on database and import this?Yes, that's one way to do it. Or you can copy-paste those queries directly in the "SQL Query" window, then click Execute. Quote Link to comment Share on other sites More sharing options...
archilles89 Posted September 7, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 72 Reputation: 0 Joined: 10/28/12 Last Seen: December 1, 2017 Share Posted September 7, 2013 is there a way to remove an armor[2] from inventory and storage, while simultaneously giving back an armor[1] plus whatever 2 cards that were socketed in the previous armor? need help with this Quote Link to comment Share on other sites More sharing options...
Capuche Posted September 7, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted September 7, 2013 Make an update instead of delete to change the id 1 Quote Link to comment Share on other sites More sharing options...
Question
Meister
Hi i'm certain that there was a requested topic that deletes one particular item in the server.
example I want to delete 16774 to every player including on their storage.. how will I do it on my sql?
or any script?
Thank you!
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.