Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add any deprecated item to the disabled item table #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

georgzoeller
Copy link

Will adddeprecated items to the disabled table if they don't exist already.

@@ -366,3 +366,7 @@ VALUES
(53890), (54069), (54860), (50840), (53891), (53924), (51997), (51998), (54847), (54857), (56806), (54212), (54452), (54810), (50093), (54822),
(50289), (50301), (50307), (52189), (52202), (52272), (52275), (52276), (52345), (52562), (52563), (52565), (52729), (53510), (54218), (54455),
(54467), (50248), (50431), (52011), (52062), (54291), (54470);

-- This adds any item with the deprecated flag (0x10) to the disabled item table as long as it isn't already in there.
insert INTO acore_world.mod_auctionhousebot_disabled_items (item) SELECT t.entry FROM acore_world.mod_auctionhousebot_disabled_items AS d right JOIN acore_world.item_template t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz don't write the database name, fix character case and just compare with other SQL statements above

@BarbzYHOOL
Copy link
Member

but that seems like a good idea @georgzoeller

@BarbzYHOOL
Copy link
Member

seems good, but i cannot test (also haven't done mysql for 1+ year :P)
and i don't have merge rights anymore -__-'

@dedmen
Copy link

dedmen commented Oct 31, 2023

I had a bunch of "test" items in my AH.
I applied this script and as far as I can see it caught them all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants