• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Hanna, the juwel seller/buyer

christiandb

Member
Joined
Feb 5, 2008
Messages
2,469
Reaction score
5
Location
010
TFS 0.3.5pl1
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Hanna" script="data/npc/scripts/secondcitizen.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="136" head="78" body="79" legs="79" feet="58" corpse="2131"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_buyable" value="white pearl,2143,320;black pearl,2144,560;small diamond,2145,600;small sapphire,2146,500;small ruby,2147,500;small emerald,2149,500;small amethyst,2150,400;golden amulet,2130,6600;ruby necklace,2133,3560;wedding ring,2121,990"/>
		<parameter key="shop_sellable" value="white pearl,2143,160;black pearl,2144,280;small diamond,2145,300;small sapphire,2146,250;small ruby,2147,250;small emerald,2149,250;small amethyst,2150,200"/>
	</parameters>
</npc>

Everything looks fine but Hanna doesn't wanna buy jewels with the trade window. The jewels are viewable in the trade window but it doesnt recognize that I have for example black pearls in my backpack so I can't sell them. The strange thing is that I can sell them when saying "sell black pearl" then it does recognize that I have them with me. Check the attachments
 

Attachments

Last edited:
I always use LUA files with NPC's...

Example:
LUA:
shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion')
shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 1, 'antidote potion')
 
Back
Top