npc->event_doall_id( "OnTradeEvent", sd->bl.id );
npc->event_doall_id( "OnTradeEvent", tsd->bl.id );
// Save char RID of exchanger into @trader variable
pc->setreg(sd,script->add_str("@trader"),tsd->status.account_id);
pc->setreg(tsd,script->add_str("@trader"),sd->status.account_id);
- script TradeTest FAKE_NPC,{
OnTradeEvent:
mes "Has exchanged with the player "+rid2name(@trader);
close;
}