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

fixing humanoids and undead being pickpocketable when they shouldnt be #2729

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Simp-N
Copy link

@Simp-N Simp-N commented Aug 25, 2024

🍰 Pullrequest

This will change so that all humanoids and undead are no longer pickpocketable, only the ones that should be (as in, those that have a corresponding entry in pickpocketing_loot_template). This is done by removing the check for creature type, which appears to have been errantly written so pickpocket was succesful if the type was correct but even if the creature didnt have a pickpocket loot table.

Issues

All humans and undead are pickpocketable, even if they shouldn't be #2728

How2Test

To test pick pocket you can log in on GM account and do .learn 921 and .learn 1787 and then do .go cr "creature name" to teleport to the creature you want to check.

Here are a few examples of creatures that have no pickpocket-entry but are still pickpocketable currently: Ice Thistle Yeti, Ragged Owlbeast, Hungering Wraith, Wailing Death. The SQL query SELECT * FROM pickpocketing_loot_template WHERE entry IN (7458, 7450, 1802, 1804) will give no results, meaning they shouldn't be pickpocketable, but if you try it ingame they actually are.

If you want more examples of humanoids and undead with no pickpocket-entry you could try this SQL query: SELECT entry, name FROM creature_template WHERE type IN (6,7) AND NOT EXISTS (SELECT * FROM pickpocketing_loot_template AS pplt WHERE pplt.entry = creature_template.entry)

@0blu 0blu added the CPP A issue / PR which references CPP code label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CPP A issue / PR which references CPP code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants