Does anyone know a query code for this:
Delete all items which aren't in vendors.
Does anyone know a query code for this:
Delete all items which aren't in vendors.
You'd have to empty the creature loot tables, if that's what you mean.
Dude, thats not even related to what i was on about.
Delete ALL items which AREN"T in the vendors, if they are in vendor the item doesn't get deleted.
you said all items that aren't in vendors
only other place to get items are from drops
delete the loot tables, creatures don't have drops
only way to get items are from vendors.
items would still be there if you wanted to add items to vendors but that works
Xeneth, Your completely IGNORING what i want.
I don't give a shit about about the drops, i can wipe them like there nothing.
I want a QUERY CODE to delete ALL ITEMS WHICH AREN"T IN VENDORS! If they are in vendors then the query won't delete them.
Use PHP. It'll take some time though ;P
Deleting the drops is an easier solution. You'll have to drop that table anyways.
I don't see how PHP has anything to do with SQL Queries.
Here's a hint: You can use PHP as a programmable wrapper for SQL.
hmm easy one:
deletes all items from item table that are not sold by vendors...Code:DELETE FROM items WHERE NOT entry IN (SELECT item FROM vendors);
tested and working on a blizzlike DB, note: takes a while to execute :P
grtz
edit: i know they are not on the first pages anymore but they still help a lot if people only read them:
http://www.mmowned.com/forums/emulat...e-queries.html
http://www.mmowned.com/forums/emulat...-part-2-a.html
Last edited by latruwski; 03-19-2008 at 06:33 AM.
Thanks mate!
+Rep for helping me.
I'm saving that query.