• 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!

Cannot Sell Item

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
I was creating an npc that sells bread to the player. I would also like to make it so that the player can sell the bread (cheaper) back to the npc, but for some reason, he isnt buying it back.

Here's what I mean:
34shy13.jpg


Here's the npc's XML file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ben" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="130" head="20" body="39" legs="45" feet="7" addons="0"/>
    <parameters>
	<parameter key="module_shop" value="1" />
	<parameter key="shop_buyable" value="meat,2666,5;ham,2671,8;grape,2681,3;carrot,2684,3;coconut,2678,150;apple,2674,3;cup,3942,2;bread,2689,4;" />
	<parameter key="shop_sellable" value="meat,2666,2;ham,2671,3;bread,2689,2;" />

 	<parameter key="module_keywords" value="1" />
	<parameter key="keywords" value="" />
	<parameter key="keyword_reply1" value="" />
    </parameters>
</npc>

Thanks in advance to anyone who can fix this.
 

Attachments

I don't know if it's because of the extra semi-colon at the end before the quotation marks.
Try removing it from both lines.
 
Back
Top Bottom