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

Gem NPC

ZeeBeast

Preferable Beta Tester
Joined
Dec 5, 2013
Messages
206
Reaction score
10
Location
United States
TFS 0.3.6
Hello everyone. I am looking for an NPC the sells and buys gems and such.
Can anyone help with this?
Any help will be useful.
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Tessa" script="gems.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="140" head="9" body="159" legs="55" feet="22" addons="2"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME|."/>
        <parameter key="message_farewell" value="Good bye."/>
        <parameter key="message_walkaway" value="Farewell then.." />

<parameter key="module_shop" value="1"/>
        <parameter key="shop_sellable" value="white pearl,2143,160;black pearl,2144,280;small topaz,9970,200;small diamond,2145,300;small sapphire,2146,250;small ruby,2147,250;small emerald,2149,250;small amethyst,2150,200;gold ingot,9971,5000;wedding ring,2121,100" />
        <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;ruby necklace,2133,3560;wedding ring,2121,990;golden goblet,5805,5000;silver goblet,5806,3000;bronze goblet,5807,2000" />
 
    </parameters>


</npc>
(This is the XML) Tessa.xml

Edit: It won't let me upload the lua part so I will send it to you in a private message. I am prtty sure you can link this NPC up with the script "bank.lua" and it should work the same.
 
Back
Top