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

NPC + Vial of Water (Solved)

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,857
Reaction score
96
Location
Brazil
I have this NPC and she must sell vial of water, but how can I add it here?
LUA:
<?xml version="1.0"?>
<npc name="Sandra" script="data/npc/scripts/sandra.lua" walkinterval="2000">
  <health now="200" max="200" />
<look type="137" head="115" body="120" legs="121" feet="19" addons="0"/>
  <parameters>
    <parameter key="message_greet" value="Hello |PLAYERNAME|" />
    		<parameter key="module_shop" value="1"/>
    <parameter key="shop_buyable" value="great spirit potion,8472,120;great mana potion,7590,120;great health potion,7591,190;strong health potion,7588,100;strong mana potion,7589,80;health potion,7618,45;mana potion,7620,50;ultimate health potion,8473,310;" />
    <parameter key="shop_sellable" value="empty potion flask,7634,5;empty potion flask,7635,5;empty potion flask,7636,5;vial,2006,5;" />
  </parameters>
</npc>
 
Add it on this line

LUA:
    <parameter key="shop_buyable" value="vial of water,ID,PRICE;great spirit potion,8472,120;great mana potion,7590,120;great health potion,7591,190;strong health potion,7588,100;strong mana potion,7589,80;health potion,7618,45;mana potion,7620,50;ultimate health potion,8473,310;" />

I have added it in, now you just need to put the ID and the price.
 
I changed this:
item: 2006
cid: 2874 or 135

item: 2007
cid: 2875 or 136

When I start my .exe it is giving error, wrong .otb
'Unable to load itens.otb'
What I do now? :S
 
Last edited:
You must save it with a proper version of OTItemEditor, did you only get that 1 error or "Another client version~" too?
 
Back
Top