Author Topic: Intercepting barter event with NPC  (Read 365 times)

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
Intercepting barter event with NPC
« on: October 04, 2011, 09:56:24 pm »


                <haggling over a...>

So, barter only works between players. If you try to give something (other than a potion) to an NPC (other than your henchman) a "you can't barter, stoopid" dialogue pops up.

Yet, the click-drag-an-item movement is quite intuitive...
Can we intercept the event when a player drops an item on an NPC so that we can put in place our own barter/gift system? I'd like to avoid convo, and let players drop items on NPCs.

Failing that, I might have to create some kind of horse-trading rug item that a PC could drop things on and target NPC... ugh.

Please tell me we can capture the event... Please? 

<...barrel of monkey-worms>
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Intercepting barter event with NPC
« Reply #1 on: October 04, 2011, 11:37:00 pm »


               The event isn't hooked. You could use onunacquire instead, though. Or you could give the pc a widget to give the npc whatever it is they want, by targeting the item. I strongly suspect, however, that one or more of the henchman systems on the vault has this sort of thing covered, since I recall playing through SP adventures where hench inventory was nonproblematic, years ago. Hopefully someone on here can be more specific  - I don't use henchman functionality at all, myself.

Funky
               
               

               
            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
Intercepting barter event with NPC
« Reply #2 on: October 05, 2011, 12:03:39 am »


               <up to his neck...>

TY, FS.
I was hoping it was, though.  

I am reading through the Module Builder's Henchman Kit, Henchmen Always Bleed To Death and OldManBeard's Henchman System for other reasons, but it's specifically for non-henchmen NPCs I'd like to make giving easier.

I'll implement convo's for bartering, since haggling *is* part of bartering. But giving... what a pain in the neck ;-/

<...in monkey-worms>
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Intercepting barter event with NPC
« Reply #3 on: October 05, 2011, 12:16:28 am »


               Yeah I sort of stinks that you can't.  I prevent bartering between players in shops as it's sort of tacky and shop owner just don't appreciate it.  Well that's the idea at least.  So all shops have a sign saying 'No Bartering'.  Not much help I know just thought to empathize with you point.