sestorme
Member
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Donald" script="default.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="128" head="20" body="100" legs="50" feet="99" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I buy and sell food and various equipment. I can also make equipment using leathers and buy certain dead
creatures."/>
<parameter key="shop_buyable" value="raw meat,2145,10;rope,2120,25;shovel,5790,15;leather helmet,2461,150;leather armor,2467,300;leather legs,2649,200;leather
boots,2643,150;leather,5878,25"/>
<parameter key="shop_sellable" value="cooked meat,2146,10;leather helmet,2461,5;leather armor,2467,15;leather legs,2649,10;leather boots,2643,5;rat tail,11213,1;dead
rat,3973,15;leather,5878,10"/>
</parameters>
<interact keywords="leather armor">
<response text="Do you want to make a leather armor for using 25 leathers?"/>
<action name="topic" value="1"/>
</interact>
<interact keywords="yes" topic="1">
<action name="script">
<![CDATA[
if(doPlayerRemoveItem(cid, 5878, 25) == TRUE) then
doPlayerAddItem(cid, 2467)
selfSay("Here you are.", cid)
else
selfSay("Sorry, you do not have enough leathers", cid)
end
]]>
</action>
</interact>
</npc>
Tradeworks, but it does not trigger leather armor. I guess I didn't do it right. TFS 8.54.