Author Topic: How to check if a PC is in barter?  (Read 442 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to check if a PC is in barter?
« on: December 09, 2014, 04:46:36 pm »


               

How to check if a PC is in barter?



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to check if a PC is in barter?
« Reply #1 on: December 13, 2014, 11:20:26 pm »


               

when you try barter with a player that is already in barter the nwn inform that current player you try barter is busy. there is a way to check if PC is busy?



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to check if a PC is in barter?
« Reply #2 on: December 24, 2014, 03:03:13 am »


               

Since no one answered me, I finally found the answer.


 


Answer: By using GetItemPossessor(oItem) onplayerunacquireditem you can check if it is in barter (if the item's location is invalid, and the possessor invalid, it is in a barter screen - in limbo).