Jump to content

Question

Posted

Hello. I',m trying to remove all droplist from monsters, and i wanna to leave only Adena.

I tried like that -

DELETE FROM droplist WHERE itemid IN (SELECT item_id FROM etcitem WHERE itemid <> 57);

But not working for me. Maybe anyone can me explain how to make it?

Recommended Posts

  • 1
Posted (edited)
5 minutes ago, Downwade said:

For me not working, or i'm doing something wrong..

uLXaOYb.png

 

Select your database, Click on the icon:

capture.PNG.a451e7489cf2bf3df53394d00d73d8a9.PNG

 

then press 'New Query' tool,

make sure the new tab of the query will have your database name after the @ like this

Capture2.PNG.0f739122178d1dcc6a61d77c2fc938cd.PNG

(sys is my db)

 

run the command by clicking Run tool , be happy

Edited by melron
  • 0
Posted
1 hour ago, HyperBlown said:

This should be your command.


DELETE FROM droplist WHERE NOT itemId = 57

delete from droplist what? there's no point-out what exactly to delete, just condition :?

  • 0
Posted (edited)
27 minutes ago, Dubxsion said:

delete from droplist what? there's no point-out what exactly to delete, just condition :?

This is correct since DELETE FROM droplist , will delete everything. I prefer to use DELETE FROM droplist WHERE itemId <> 57 

( Delete everything from droplist except rows who their itemId field is not equal to 57)

Edited by melron
  • 0
Posted
4 hours ago, Downwade said:

Hello. I',m trying to remove all droplist from monsters, and i wanna to leave only Adena.

I tried like that -


DELETE FROM droplist WHERE itemid IN (SELECT item_id FROM etcitem WHERE itemid <> 57);

But not working for me. Maybe anyone can me explain how to make it?

I can give u another "grandma" noob method to do ur job.

1: Dump ur droplist sql table on ur desktop

2: Make a separate copy of it.

3: Open it with Notepad++

4: Open Find menu (CTRL+F)

5: Navigate to "Mark" tab

6: Type '57' in the search field and check Bookmark line square

7: Press "Mark all" and u will see little dots appearing on the left side of all records containing the id '57'

8: Close search/find menu and navigate to Search tab in notepad++

9: Go to Bookmark tab from the falling menu

10: Click "Inverse Bookmark"

11: Then go again to Bookmark and press "Remove bookmarked lines"

12: This will delete all the records beside the ones that have the id 57

13: Then save the SQL, empty the "droplist" table u already have in ur navicat and execute the SQL u just modified.

14: All records with only Adena in  them will be set in the droplist and u have the thing u wanted.

Hope that helped.

 

Its not important how u made it, its important that u managed to do it!

  • 0
Posted (edited)
38 minutes ago, Dubxsion said:

delete from droplist what? there's no point-out what exactly to delete, just condition :?

this will delete all rows that dont have 57 as ItemId... Just execute this inside your database query, and it will work. Well, Ofc I tested first before posting and it worked.

Edited by HyperBlown
  • 0
Posted
1 minute ago, HyperBlown said:

this will delete all rows that dont have 57 as ItemId... Just execute this inside your database query, and it will work. Well, Ofc I tested first before posting and it worked.

i did, it was successful but nothing was deleted, anyway i did it my method with notepad++

  • 0
Posted
1 minute ago, Dubxsion said:

i did, it was successful but nothing was deleted, anyway i did it my method with notepad++

Well, it worked for me. Otherwise I wouldnt post... Did you do on the right database? Did you clicked "refresh" to see if updated? If the command executed without any errors, all rows that doesnt have 57 as itemId should go away. perhaps your droplist is named differently? or the colums are differently named?

  • 0
Posted
1 hour ago, melron said:

 I prefer to use DELETE FROM droplist WHERE itemId <> 57 

( Delete everything from droplist except rows who their itemId field is not equal to 57)

 

  • 0
Posted
9 minutes ago, Downwade said:

not working your command.

 

try

 

DELETE FROM droplist WHERE NOT (itemid = 57)

 

or

 

DELETE FROM droplist WHERE itemid NOT IN (57)

 

but what @melron said with the <> is the simplest and easiest way to negate the condition

  • 0
Posted
3 minutes ago, sepultribe said:

 

try

 

DELETE FROM droplist WHERE NOT (itemid = 57)

 

or

 


DELETE FROM droplist WHERE itemid NOT IN (57)

and this 2 not working.

  • 0
Posted (edited)

if it's not working you don't have any rows that have a column named itemid with values not equal to 57 in your droplist table.

 

post your table definition here (command follows)

 

describe [db_name.]table_name; //[] mean optional
Edited by sepultribe
  • 0
Posted
1 hour ago, sepultribe said:

if it's not working you don't have any rows that have a column named itemid with values not equal to 57 in your droplist table.

 

post your table definition here (command follows)

 


describe [db_name.]table_name; //[] mean optional

http://www.mediafire.com/file/2ylu7mujl0al39n/droplist.sql/file

This is my droplist.sql

  • 0
Posted
1 hour ago, Downwade said:

Do you know how to execute commands?

 

You are saying is not working. Post your error then lol

I just downloaded your droplist and the command is working excellent..

 

Message:

[SQL]DELETE FROM droplist WHERE itemId <> 57

Affected rows: 25607
Time: 0.107s

 

  • 0
Posted

Executing command without selected db, perhaps. :D

 

You have rdy working query, everything is in your hands. 

Guest
This topic is now closed to further replies.


  • Posts

    • You guys just give a damn for visuals only and not the main concept of this! Gj dude! Visuals could be upgraded ofc course but the possibilities are infinite   No more random runtime errors, criticals, fps drops and shits for example, look how smooth it is on 10000 rendered characters
    • this will explain better than words  
    • I would like to emphasize that I am selling the tool used to generate geodata for the client you are developing, not the geodata itself; therefore, I consider the price reasonable. As for your view that the price is high and shows a lack of respect for the customer—that is your own opinion. Thank you. I have also purchased his products, and—just as you said—he is skilled and provides very enthusiastic support. If you feel he is deserving, then you should continue buying from him.
    • Ημουν μικρος οταν τον επαιξα, οριακα δεν ηξερα τι ειναι το Lineage, θυμαμαι πηγαιναμε στα νετ με τους φιλους και προσπαθουσαμε να κανουμε log-in αλλα πολλες φορες δεν μπορουσαμε γιατι ο server ηταν heavy σε load και πολλες φορες προλαβαιναμε να παιξουμε μονο κανα τεταρτακι η εικοσαλεπτο απ την μια ωρα που βαζαμε για να ανοιξουμε pc, ωστοσο εχω πολλες αναμνησεις να βλεπω τους μεγαλυτερους τοτε να παιζουν και εγω να καθομαι διπλα και να χαζευω gameplay, Λιγα πραγματα που ξερω (δεν ξερω αν ισχυουν) ειναι οτι τον σερβερ τον ειχε ανοιξει η αλυσιδα TheWeb, επισης οτι ηταν δυο οι σερβερ, ενας rpg low rate και ενας pvp με higher rates, περα απο αυτο δεν μπορεσα να βρω καμια αλλη χρησιμη πληροφορια, ουτε στα forum του theweb.gr ουτε στo l2.thegame.gr (waybackmachine) οποτε ερχομαι εδω που ειμαι σιγουρος οτι θα υπαρχουν σιγουρα καποιοι που επαιξαν εκει και δεν ηταν οσο πιτσιρικας οσο ημουν εγω που δεν καταλαβαινε τι γινοταν.   Γενικοτερα οποιος ξερει οτιδηποτε για τον thegame ας το πει, ακομη κι ας ειναι μια μικρη ιστορια που ακουσε πριν πολλα χρονια, ακομη κι αν ειναι μια μικρη πληροφορια για κατι που θυμαται μεσα στο παιχνιδι, οπως πως λεγανε τους admins, κανα σκηνικο ιντερνετ καφε και μπουνιδια, οοοοοτι μα οτιδηποτε κι αν ειναι αυτο αρκει να εχει να κανει με τον TheGame   (εννοειται εαν εχετε φωτογραφιες η βιντεο να τα linkαρετε)   μερικες δικες μου αποριες ειναι: απο τι chronicle αρχισε και μεχρι που εφτασε? ποια χρονια ηταν το peak του και σε ποιο chronicle? επισης μεχρι πιο chronicle εξελιχθηκε? γιατι εκλεισε αφου τοτε ηταν στο peak το να πηγαινει ο κοσμος στα ιντερνετ καφε και να παιζει λ2, τι features ειχε σαν σερβερ? επι ποσο ηταν? custom πραγματα κτλπ? η ηταν ενας bone stock server?    να'στε καλα!
    • Yeah... the price for the project at this stage is the kind of disrespect to the customer I was talking about.     As for deMEV, he’s overpriced too, but he’s one of the very few people in the L2 market who is available almost 24/7.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..