Author Topic: Global Pick Pocket nerf?  (Read 329 times)

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Global Pick Pocket nerf?
« on: July 30, 2011, 08:37:51 am »


               I have tried a couple of the anti-pick pocket scripts off the vault, but they don't seem to work for NPCs. My PW used to have such a system, but it doesn't seem to be functioning any longer, nor can I find it. There are 1000's of custom creatures on the server so going through them 1 by one to remove PP skill is tedious to say the least. I have gotten most of them, but would love to institute a global system for peice of mind on any that were missed. Can anyone point me in the right direction?
               
               

               


                     Modifié par Lazarus Magni, 30 juillet 2011 - 11:15 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #1 on: July 30, 2011, 03:38:27 pm »


               It seems odd to need to change an NPCs PP skill that way, but if you're using NWNX you could just add a line to the generic (nw_c2_default9, or whatever replacement script you use) to set the pick pocket skill to zero.

 In the windows version, it would just need this:
NWNXFuncs_SetSkill (OBJECT_SELF, SKILL_PICK_POCKET, 0);
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #2 on: July 30, 2011, 05:48:19 pm »


               or in nw_c2_default9 script check if the OBJECT_SELF has any base pickpocket rank and is so apply -50 penalty and print the creature resreg/name into log so you can find her and edit it manually

other than that old letoscript can do this too, but there are no tutorials and probably even a place where you can download it (i have the offline version in my door system package at vault but it doesnt do this unless you are able to rewrite that leto-script)
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #3 on: July 30, 2011, 08:51:09 pm »


               Thanks for the info you two. I will look into these options. It's too bad the systems on the vault only work for PCs, there are some decent ones on there. Why is it odd though Failed Bard? And I am in fact using nwnx (windows), and have the nwnx_functions plugin installed so this might be a good solution if I can just add that line to the on spawn event scripts used.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #4 on: July 30, 2011, 10:18:43 pm »


               its odd because the issue with pickpocket is that you can use it withouth hostility on neutral PC so you have lower DC, but NPC cannot ake advantage of this

Second, NPCs often dont have enough pickpocket to always overcome DC and if they do, then its maybe builders(yours) intend?

It makes sense only if you care of the item size/etc. But those are details, that not many bother with.
               
               

               
            

Legacy_Baragg

  • Sr. Member
  • ****
  • Posts: 496
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #5 on: July 30, 2011, 11:32:46 pm »


               Would it be easier to set most items where they cant be pickpocketed?
               
               

               
            

Legacy_Baragg

  • Sr. Member
  • ****
  • Posts: 496
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #6 on: July 30, 2011, 11:36:42 pm »


               I may be a bit off, but can't you use the onmodload handle to set items above XXX gold value where they can't be pickpocketed?
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #7 on: July 31, 2011, 12:52:18 am »


               I could not tell you Baragg, but FB's solution is working beautifully with maxrock's nwnx_funcs plugin (for windows.) Thank you all!
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Global Pick Pocket nerf?
« Reply #8 on: July 31, 2011, 02:42:21 am »


               

Lazarus Magni wrote...

Thanks for the info you two. I will look into these options. It's too bad the systems on the vault only work for PCs, there are some decent ones on there. Why is it odd though Failed Bard? And I am in fact using nwnx (windows), and have the nwnx_functions plugin installed so this might be a good solution if I can just add that line to the on spawn event scripts used.


  I've just never seen a mod where non-DM controlled NPCs would pick-pocket outside of scripted events.  Glad to hear the NWNX function is working for you, though.




Baragg wrote...

  I may be a bit off, but can't you use the onmodload handle to set items above XXX gold value where they can't be pickpocketed?


It's the OnAquire script you do that in.  I use this in the one for my little mod.

object oItem = GetModuleItemAcquired ();
 if (GetWeight (oItem) >= 30) SetPickpocketableFlag (oItem, FALSE);

Weight is in 1/10ths of a pound, so in this case any item over 3 pounds is set as unpick-pocketable the moment any PC or NPC "aquires" it, which they do on spawning (npc) or entering the game world (pc).
               
               

               


                     Modifié par Failed.Bard, 31 juillet 2011 - 01:45 .