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

OpenTibia Small NPC Tool v2

Real Tibia Dove-Parcel Seller
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Dove" script="data/npc/scripts/sample.lua" walkinterval="1000" floorchange="0">
    <health now="100" max="100"/>
    <look type="136" head="59" body="86" legs="106" feet="115" addons="0"/>
    <parameters>
        
        
        <parameter key="message_sendtrade" value="Here. Don't forget that you need to buy a label too if you want to send a parcel. Always write the name of the {receiver} in the first line and the name of the {city} in the second line."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="hi;receiver;city;help;letters;parcels;" />
        <parameter key="keyword_reply1" value="Be greeted, noble |PLAYERNAME| and welcome to the post office." />
        <parameter key="keyword_reply2" value="Well, the receiver - or addressee - is the person you want to send mail to. He or she can pick up your mail in the depot of the {city} you send it to." />
        <parameter key="keyword_reply3" value="The depots you can send parcels or letters to are in the following cities Ab'Dendriel, Ankrahmun, Carlin, Darashia, Edron, Kazordoon, Liberty Bay, Port Hope, Svargrond, Thais, Venore and Yalahar." />
        <parameter key="keyword_reply4" value="With our mail system you can send {letters} and {parcels} to other Tibians. I can either explain how {letters} and {parcels} work or sell them to you if you ask me for a {trade}." />
        <parameter key="keyword_reply5" value="If you want to buy a letter, ask me for a {trade}. Or do you want me to {explain} how letters work?" />
        <parameter key="keyword_reply6" value="Well, you can always ask me for {help} if you need information." />

        <parameter key="module_shop" value="1"/>
        <parameter key="shop_buyable" value="parcel,2595,15;letter,2597,8;label,2599,1;" />
        <parameter key="shop_sellable" value="" />
    </parameters>
</npc>

That's great ;d sometimes it helps
 
You gave example of npc which shouldn't be tracked by this tool. That's npc needs more advanced script than simple keywords.

Why?
If you say parcel he ask you to explain how to use them, then you have two options, yes or no. So don't call it real npc dove because it's not.

I am sick of ppl who are calling their shit like real npcs.

@edit
You didin't even ask him 'mail', 'post', 'name', 'tibia', 'job', and it is real npc dove?
 
Then you should change it to
Code:
if msg.contains("hi")
And it will works good. Because if you say 'hi noob' it still contains hi.

Yes, but if you say 'shields' it contains hi and will be considered a greet message. I think I figured out something and I'll post when I update.

Jo3
 
Seems like fluid containers needs subtype <look at attached screenshot>

I'll fix it when I get home, but the subtype, or charge, comes right after the cost: name, id, cost, charge/subtype, realname. If you want to manually add it until I fix it.

Jo3
 
Ok, sure. I've got also question, maybe you know. How to make npc walk only 5 sqm not 500? Eg. npc from carlin temple just went to amazons near carlin.
 
Ok, sure. I've got also question, maybe you know. How to make npc walk only 5 sqm not 500? Eg. npc from carlin temple just went to amazons near carlin.

Haha that's kinda funny...uhm well there's no function for the XML file that handles walk distance. Ask Tala or erp0t (elf), I'm sure they know.

Jo3
 
fix npc with runes pls fast :p and release tracker ;d
 
Last edited:
Rudixx thx i dont see this !:)


edit:


You make this
<parameter key="message_farewell" value="Good bye."/>
<parameter key="message_sendtrade" value="Of course, just browse through my wares."/>

can you make
parameter key="message_greet" ? :))
will be nice ;d
 
Last edited:
message_greet is already there, but due to a small problem you need to say hi or hello followed by a space ('hi ' 'hello '). When I get home I'll fix this and the rune problem...tracker is almost completed just having a small problem with the dat structure.

Jo3
 
Ok im asking about this because I make NPC Rose
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Rose" script="data/npc/scripts/sample.lua" walkinterval="1000" floorchange="0">
<health now="100" max="100"/>
<look type="136" head="79" body="77" legs="112" feet="116" addons="0"/>
<parameters>

<parameter key="message_farewell" value="Good bye."/>
<parameter key="message_sendtrade" value="Of course, just browse through my wares."/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="hi;name;job;offer;" />
<parameter key="keyword_reply1" value="Welcome to Crunor's finest warehouse, |PLAYERNAME|." />
<parameter key="keyword_reply2" value="My name is Rose, nice to meet you, |PLAYERNAME|." />
<parameter key="keyword_reply3" value="Here you may buy some of the most beautiful flowers." />
<parameter key="keyword_reply4" value="I am selling beautiful flowers here. Just ask me for a {trade} if you'd like to see them!" />

<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="exotic flowers,2107,300;indoor plant kit,3937,8;god flowers,2100,5;flower bowl,2102,6;honey flower,2103,5;potted flower,2104,5;" />
<parameter key="shop_sellable" value="" />
</parameters>
</npc>
and when i say HI she answer me
'Welcome, DUPA! I have been expecting you.'
I want to have this answer
Welcome to Crunor's finest warehouse, |PLAYERNAME|.
anyway excellent work :)


## OFFTOP

can anyone give me Rashid trade list after 8.4 update ?? :) ( maked this tool ofc ^^ )
 
http://otland.net/f19/small-npc-tool-v2-14979/index12.html#post179547

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Rashid" script="data/npc/scripts/Rashid.lua" walkinterval="1000" floorchange="0">
    <health now="100" max="100"/>
    <look type="146" head="99" body="102" legs="122" feet="115" addons="2"/>
    <parameters>
        <parameter key="message_greet" value="Ah, a customer! Be greeted, |PLAYERNAME|!"/>
        <parameter key="message_farewell" value="Farewell, |PLAYERNAME|, may the winds guide your way."/>
        <parameter key="message_sendtrade" value="Of course, old friend. You can also browse only {armor}, {legs}, {shields}, {helmets}, {boots}, {weapons}, {enchanted} weapons, {jewelry} or {miscellaneous} stuff."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="name;" />
        <parameter key="keyword_reply1" value="I am Rashid, son of the desert." />

        <parameter key="module_shop" value="1"/>
        <parameter key="shop_buyable" value="" />
        <parameter key="shop_sellable" value="amber staff,7426,8000;ancient amulet,2142,200;beastslayer axe,3962,1500;beholder helmet,3972,7500;bone shield,2541,80;brutetamer's staff,7379,1500;castle shield,2535,5000;chaos mace,7427,12000;cranial basher,7415,30000;crocodile boots,3982,1000;crystal necklace,2125,400;crystal ring,2124,250;crystal sword,7449,600;daramanian mace,2439,110;daramanian waraxe,2440,1000;dark shield,2521,400;death ring,6300,1000;demon shield,2520,30000;demonbone amulet,2136,32000;demonrage sword,7382,36000;devil helmet,2462,1000;diamond sceptre,7387,3000;doll,2110,200;dragon scale mail,2492,40000;dragon slayer,7402,15000;dragonbone staff,7430,3000;dreaded cleaver,7419,10000;dwarven armor,2503,30000;earth cranial basher,7866,30000;earth dragon slayer,7858,15000;earth heroic axe,7861,30000;earth mystic blade,7856,30000;earth war axe,7863,9000;emerald bangle,2127,800;energy cranial basher,7881,30000;energy dragon slayer,7873,15000;energy heroic axe,7876,30000;energy mystic blade,7871,30000;energy war axe,7878,9000;fiery cranial basher,7756,30000;fiery dragon slayer,7748,15000;fiery heroic axe,7751,30000;fiery mystic blade,7746,30000;fiery war axe,7753,9000;fur boots,7457,2000;furry club,7432,1000;glacier kilt,7896,11000;glacier mask,7902,2500;glacier robe,7897,11000;glacier shoes,7892,2500;gold ring,2179,8000;golden armor,2466,20000;guardian halberd,2427,11000;heavy machete,2442,90;heroic axe,7389,30000;hibiscus dress,8873,3000;icy cranial basher,7775,30000;icy dragon slayer,7767,15000;icy heroic axe,7770,30000;icy mystic blade,7765,30000;icy war axe,7772,9000;krimhorn helmet,7461,200;leopard armor,3968,1000;light shovel,5710,300;lightning boots,7893,2500;lightning headband,7901,2500;lightning legs,7895,11000;lightning robe,7898,11000;lunar staff,7424,5000;magma boots,7891,2500;magma coat,7899,11000;magma legs,7894,11000;magma monocle,7900,2500;mammoth fur cape,7463,6000;mammoth fur shorts,7464,850;mammoth whopper,7381,300;medusa shield,2536,9000;mercenary sword,7386,12000;mystic blade,7384,30000;nightmare blade,7418,35000;noble axe,7456,6000;norse shield,7460,1500;ornamented axe,7411,11000;paladin armor,8891,15000;patched boots,2641,2000;pirate boots,5462,3000;pirate hat,6096,1000;pirate knee breeches,5918,200;pirate shirt,6095,500;pirate voodoo doll,5810,500;platinum amulet,2171,2500;ragnir helmet,7462,400;relic sword,7383,25000;ring of the sky,2123,30000;ruby necklace,2133,2000;sapphire hammer,7437,7000;scarab amulet,2135,200;scarab shield,2540,2000;silver brooch,2134,150;silver dagger,2402,500;skull helmet,5741,40000;skullcracker armor,8889,18000;spellbook of enlightenment,8900,4000;spiked squelcher,7452,5000;steel boots,2645,30000;taurus mace,7425,500;terra boots,7886,2500;terra hood,7903,2500;terra legs,7885,11000;terra mantle,7884,11000;tortoise shield,6131,150;voodoo doll,3955,400;war axe,2454,9000;wyvern fang,7408,1500;" />
    </parameters>
</npc>
 
@kret

That's the default greet message for every NPC...to get that greet message add this to your npc:
Code:
<parameter key="message_greet" value="Welcome to Crunor's finest warehouse, |PLAYERNAME|."/>
Then when you talk to anymore NPCs just say 'hi ' or 'hello ' (notice the space, you HAVE to put a space until I fix it) and it'll catch the greet message for you.

Jo3
 
Code:
      <parameter key="message_farewell" value="Goodbye and please bring more gold next time <chuckles>. I mean, it would be nice to see you again."/>

Code:
Unescaped '<' not allowed in attributes values

How to fix it? :<


@EDIT!
Mate, if you just add subtype to containers and charges to runes it will work! Because I tracked NPC Frans, he have all runes in file, but it's not have charges, and console just show error of it. So I think if you add to tracker charges and subtype it should work!
 
Last edited:
Code:
      <parameter key="message_farewell" value="Goodbye and please bring more gold next time <chuckles>. I mean, it would be nice to see you again."/>

Code:
Unescaped '<' not allowed in attributes values

How to fix it? :<


@EDIT!
Mate, if you just add subtype to containers and charges to runes it will work! Because I tracked NPC Frans, he have all runes in file, but it's not have charges, and console just show error of it. So I think if you add to tracker charges and subtype it should work!

I know it'll work, but I'm not home to add it yet. I forgot about stuff like <...for now espace it with a backslash (\<chuckles\>) and I'll add it.

Jo3
 
Backslash doesn't work (look at screenshot)

Code:
<parameter key="shop_buyable" value="drum,2073,140;lute,2072,195;lyre,2071,120;simple fanfare,2075,150;piano kit,3933,200;harp kit,3934,50;" />

18:07 You see a furniture package.
It weighs 25.00 oz.
It is a kit for a pendelum clock.
ItemID: [3933].
18:07 You see a furniture package.
It weighs 25.00 oz.
It is a kit for a locker.
ItemID: [3934].

Should be piano kit and harp kit.
 

Attachments

Back
Top