• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.6][NPC] Barman - NPC that sells vials of milk/beer/wine/water

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
As I wrote in title, I need a NPC that sells vials/bottles of beer/wine/water.
I tryed to use
Code:
shopModule:addBuyableItem({'vial of beer'}, 2006, 5, 3,'vial of beer')
function, but I doesn't work.
ATTENTION! I need the NPC uses "trade" command, not "buy vial of beer" etc.
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Tyoric" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="134" head="57" body="59" legs="40" feet="76" addons="0"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_sellable" value="crossbow,2455,150;bow,2456,130"/>
		<parameter key="shop_buyable" value="crossbow,2455,360;bow,2456,200;spear,2389,20;poison arrow,2545,18;bolt,2543,3;arrow,2544,2"/>
	</parameters>
</npc>

try a script like this Im to bored to find all id's etc!
So just edit crossbow to bottle of beer,ID,Price
trade does work like this that you know..
 
Back
Top