• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC 2 Simple NPC's (Food+Paladin items)

Snow

New Member
Joined
Jan 16, 2008
Messages
381
Reaction score
0
Paladin Item Seller
PHP:
PHP:
	<?xml version="1.0" encoding="UTF-8"?>
        <npc name="Tyoric" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="134" head="57" body="59" legs="40" feet="76" addons="0"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_sellable" value="
crossbow,2455,150;
hunting spear,3965,25;
bow,2456,130"/>
		<parameter key="shop_buyable" value="
crossbow,2455,500;
bow,2456,400;
spear,2389,10;
poison arrow,2545,4;
burst arrow,2546,10;
bolt,2543,4;
arrow,2544,3;
assassin star,7368,100;
earth arrow,7850,5;
flaming arrow,7840,5;
flash arrow,7838,5;
shiver arrow,7839,5;
piercing bolt,7363,5;
power bolt,2547,7;
sniper arrow,7364,5;
royal spear,7378,15;
throwing knife,2410,25;
throwing star,2399,4;
onyx arrow,7365,7
"/>
	</parameters>
</npc>

Food Seller
PHP:
 <?xml version="1.0" encoding="UTF-8"?>
      <npc name="Lector" script="data/npc/scripts/default.lua" floorchange="0" access="5" level="1" maglevel="1">
	<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'm a farmer, if you need any type of food say {trade}." />
		<parameter key="shop_buyable" value="
meat,2666,3;
fish,2667,5;
salmon,2668,4;
ham,2671,5;
dragon ham,2672,25;
pear,2673,4;
red apple,2674,8;
orange,2675,5;
banana,2676,2;
bluberry,2677,1;
cherry,2679,1;
strawberry,2680,1;
grapes,2681,3;
melon,2682,8;
pumpkin,2683,10;
carrot,2684,2;
tomato,2685,3;
corncob,2686,3;
cookie,2687,2;
bread,2689,3;
roll,2690,2;
brown bread,2691,3;
white mushroom,2787,6;
red mushroom,2788,8;
brown mushroom,2789,10;
mango,5097,10;
potato,8838,4;
plum,8839,3;
rasberry,8840,1;
lemon,8841,3;
cucumber,8842,3;
onion,8843,2;
jalapeno pepper,8844,2;
beetroot,8845,2;
cheese,8368,5;
bulb of garlic,9114,3;
egg,2695,2" />
	</parameters>
</npc>

Just a simple Release for people that want it a bit more complete.
It sells all types of sellable foods at the cheapest NPC prices from Mainland.

You're gonna probably have to add some stuff on your items.xml
the bulb of garlic and the stackable cheese are like nothing so add:

PHP:
	<item id="9114" name="bulb of garlic" plural="bulbs of garlic">

		<attribute key="weight" value="140"/>

	</item>

and
PHP:
	<item id="8368" name="cheese">

		<attribute key="weight" value="400"/>

		<attribute key="showcount" value="0"/>
	</item>




Thanks and Rep+++ Please :D
 
Last edited:
Thanks, Rep+++ please :D

And change update your items.xml if it's not yet.
 
not understanding how to do it exactly :(


PHP:
asajs 45845 8dfjsdf j54758437 dfhsdjfhsdfsd
dsfsdjfhsdjf
sdf
sdfsfd
sfd
fsd
sdf
s565
56
65
666666

remeber about space near [ P = [P :p
[ PHP]asajs 45845 8dfjsdf j54758437 dfhsdjfhsdfsd
dsfsdjfhsdjf
sdf
sdfsfd
sfd
fsd
sdf
s565
56
65
666666
[/PHP]
 
PHP:
asajs 45845 8dfjsdf j54758437 dfhsdjfhsdfsd
dsfsdjfhsdjf
sdf
sdfsfd
sfd
fsd
sdf
s565
56
65
666666

remeber about space near [ P = [P :p
[ PHP]asajs 45845 8dfjsdf j54758437 dfhsdjfhsdfsd
dsfsdjfhsdjf
sdf
sdfsfd
sfd
fsd
sdf
s565
56
65
666666
[/PHP]

only works on first sentence dunno why :(
 

Similar threads

Back
Top