• 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] TFS - Npc error add new items

docma

New Member
Joined
Feb 21, 2011
Messages
14
Reaction score
0
Hi, i have problem adding new items in my npc, when i try buy the console say..

[ShopModule.onBuy]
Item not found on shopItems List

But, somebody npc's work correct, for example rune NPC, i try add item "mpa" to this npc and is the same reult

Code:
shopModule:addBuyableItem({'magic plate armor'}, 2472, 20000, 1, 'magic plate armor')

Any idea?¿
 
Last edited:
Code:
shopModule:addBuyableItem({'magic plate armor'}, 2472, 20000, 'magic plate armor')
Check this - without ",1" :D
 
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Vip Seller" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="261" head="57" body="59" legs="40" feet="76" addons="0"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_buyable" value="Baiak Axe,8925,10000000;Vip Sword,8932,15000000;Vip Axe,8293,15000000;Vip Wand,7414,15000000;Vip Club,8929,15000000;Vip Rod,7958,15000000;Vip Star,7366,15000000;Baiak Helmet,12606,6000000;Baiak Armor,12603,6000000;Baiak Legs,12604,6000000;Baiak Shoes,9931,6000000;Baiak Shield,12605,7000000;Staff of Baiak,12609,8000000;Baiak Sword,8931,8000000;ManaRune,2298,10000000;"/>
	</parameters>
</npc>

try this one ;D
how to add items:
itemname,itemid,priceingps;
 
Back
Top Bottom