Add or expose the lacking Pick Pocket information/functions.
ForSerious
Member Posts: 466
The lexicon mentions a bug with this and another function where, after a player logs back on to a server before a reset, it will return OBJECT_INVALID.
Really this is just what introduced me to the fact that we are missing some key functions, when it comes to the most aggravating skill in this game: Pick Pocket.
Exposing a script that gets fired when someone uses the pick pocket skill would be the most ideal fix. Then we could block or condone such actions as we see fit.
Since it's not exposed, we are left with hack options to disable players from getting the skill at all, or trying to block unwanted actions by means of the OnAquireItem script.
As far as I have been able to script, I can block players from stealing items.
Gold though, there is not enough exposed information to be able to tell who the gold came from and if it was done by means of the pick pocket skill.
Really this is just what introduced me to the fact that we are missing some key functions, when it comes to the most aggravating skill in this game: Pick Pocket.
Exposing a script that gets fired when someone uses the pick pocket skill would be the most ideal fix. Then we could block or condone such actions as we see fit.
Since it's not exposed, we are left with hack options to disable players from getting the skill at all, or trying to block unwanted actions by means of the OnAquireItem script.
As far as I have been able to script, I can block players from stealing items.
Gold though, there is not enough exposed information to be able to tell who the gold came from and if it was done by means of the pick pocket skill.
Post edited by ForSerious on
0
Comments
I did some testing and GetModuleItemAcquiredBy() never returned OBJECT_INVALID after more than three relogs. I'm not going to create an account just to update the lexicon, but it seems to need an update.
I did only test for like five minutes. I'm going to start using it, and see if it holds up after running a server for a week.
Anyway, I still would like more control over what happens when someone uses the Pick Pocket skill.
It should be possible to disable players pick-pocketing other players while still permitting pick-pocketing between players and NPCs and it should be possible to restrict pick pocket to only gold, only items, only items currently being worn as well as allowing anything to be pick-pocketed. It would be nice to also have a way to restrict the amount of gold or the number of items which could be obtained through pick pocket, either by NPC or by area.
And it should be possible to disable the pick pocket skill by area, the same way you can disable PvP by area.
A module I played for ages had Pick Pocket as a restricted skill, but I'm gonna experiment and see if I can script restrictions the way you have, FS.
What I have in place is, okay, but far from being a solution.
I didn't realise the initial request was from a year ago, but at this stage it's almost certain that something like this - Which only affects multiplayer and already fixable with nwnx - will be changed at all in the base game.