Aller au contenu

Photo

Intercepting barter event with NPC


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
 <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>

#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
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

#3
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<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>

#4
ffbj

ffbj
  • Members
  • 593 messages
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.