Jump to content

Question

12 answers to this question

Recommended Posts

  • 1
Posted (edited)
  On 6/28/2018 at 11:19 AM, Edasbeast said:

not working this.

Expand  

you could search about 1 sql query at google as @SweeTs mentioned.

 

The correct query is 

DELETE FROM droplist WHERE itemid <> 57

probably nightwolf made a mistake and used operators from SELECT command but the thought is the same

 

P.S. this query will delete drops even from raidbosses/grandbosses. in case you want an exception for those types you can edit the query 

Edited by melron
  • 0
Posted

I could give ya rdy query, but what about Google, checking how it works and trying to create it on your own?

Share the result =) 

 

Try here

https://www.w3schools.com/sql/sql_delete.asp

  • 0
Posted (edited)
DELETE * FROM `items` WHERE `item_id`!='57'

analyzing the query.

delete (everything) from (table name) where item id(column name) is not equal (!=) to adena (57)

 

  On 6/27/2018 at 8:20 PM, Solomun said:

Depends on what client u are working on. High5 stores droplist in npcs.xml

Expand  


he asks for frozen so its obviusly GoD !

Edited by Nightw0lf
  • 0
Posted
  On 6/28/2018 at 7:48 AM, Nightw0lf said:
DELETE * FROM `items` WHERE `item_id`!='57'

analyzing the query.

delete (everything) from (table name) where item id is not equal (!=) to adena (57)

 


he asks for frozen so its obviusly GoD !

Expand  

Oh lul, i didn't notice....My bad

  • Haha 1
  • 0
Posted
  On 6/28/2018 at 7:48 AM, Nightw0lf said:
DELETE * FROM `items` WHERE `item_id`!='57'

analyzing the query.

delete (everything) from (table name) where item id(column name) is not equal (!=) to adena (57)

 


he asks for frozen so its obviusly GoD !

Expand  

not working this.

  • 0
Posted (edited)
  On 6/28/2018 at 11:19 AM, Edasbeast said:

not working this.

Expand  

this is why I analyzed it for, so you can change it according to your database.. its not out of the box I just created it without having any idea what table or what l2jfrozen calls the item id in the database since you dont provide more info about it, it works but you have to be smart to edit it.

 

  On 6/28/2018 at 1:38 PM, melron said:

you could search about 1 sql query at google as @SweeTs mentioned.

 

The correct query is 

DELETE FROM items WHERE item_id <> 57

probably nightwolf made a mistake and used operators from SELECT command but the thought is the same

Expand  

I just wake and saw that and replied without having a coffee :)

 

additional conditions for raid bosses

DELETE FROM items WHERE item_id <> 57 AND npc_id <> 2222

OBVIOUSLY where 2222 is the example boss that you want this query to ignore

and where npc_id is your table column that holds the monster id

if you want more (you should) you continue with

AND npc_id <> number AND npc_id <> number AND npc_id <> number AND..

Edited by Nightw0lf
  • Haha 1
  • 0
Posted (edited)

Ok @Nightwolf now i'm laughing about 5 minutes non-stop. the guy want to delete drops not items at inventory. we are both so blinds

giphy.gif

 

 

DELETE FROM droplist WHERE itemid <> 57

 

 

Edited by melron
  • 0
Posted
  On 6/28/2018 at 1:38 PM, melron said:

you could search about 1 sql query at google as @SweeTs mentioned.

Expand  

Pointless as it's better to wait day or even two to get ready answer. =) 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...