Thread: Merchant
View Single Post
  #2  
Old 12-17-2019, 03:53 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,333
Default

This just an example, with item trade, (this will trade a breadcake for a skin of milk.) I use this simple one for various npc's I have. (with different items)

Code:
sub EVENT_ITEM {

	if(plugin::check_handin(\%itemcount, 13005 => 1)) {
		quest::say("Thank you $name, here is the item you traded for.");
		quest::summonitem(13006);
	}
	else {
         #quest::say("I have no use for this, $name. You can have it back");
         plugin::return_items(\%itemcount);
    }
}
__________________
Hanging out at Antonica.World
Reply With Quote