• 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 Ultimate Armor and Weapon Shopkeepers

Ziggy

Member
Joined
Aug 11, 2007
Messages
49
Reaction score
6
Here is the armor shopkeeper
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Teelm" script="default.lua" walkinterval="2000" floorchange="0">
	<health now="150" max="150"/>
	<look type="131" head="78" body="19" legs="82" feet="132" addons="1" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I buy and sell helmets, boots, legs, shields, and armors."/>
		<parameter key="shop_buyable" value="
			dark helmet,2490,1000;
			brass helmet,2460,120;
			chain helmet,2458,52;
			helmet of the deep,5461,5000;
			iron helmet,2459,390;
			leather helmet,2461,12;
			party hat,6578,600;
			soldier helmet,2481,110;
			steel helmet,2457,580;
			studded helmet,2482,60;
			viking helmet,2473,265;
			
			leather boots,2643,2;
			sandals,2642,2;
			
			studded armor,2484,90;
			spirit cloak,8870,1000;
			scale armor,2483,260;
			ranger's cloak,2660,450;
			plate armor,2463,1200;
			magician's robe,8819,450;
			leather armor,2467,25;
			jacket,2650,10;
			green tunic,2652,25;
			ethno coat,8892,750;
			doublet,2485,16;
			coat,2651,8;
			chain armor,2464,200;
			cape,2654,9;
			brass armor,2465,450;
			belted cape,8872,1300;
			noble armor,2486,8000;
			dark armor,2489,1500;
			
			ancient shield,2532,5000;
			brass shield,2511,65;
			dwarven shield,2525,500;
			plate shield,2510,125;
			steel shield,2509,200;
			studded shield,2526,50;
			viking shield,2531,260;
			wooden shield,2512,13;
			
			studded legs,2468,60;
			leather legs,2649,9;
			chain legs,2648,80;
			brass legs,2487,195
		" />
		<parameter key="shop_sellable" value="
			warrior helmet,2475,5000;
			viking helmet,2473,66;
			tribal mask,3967,250;
			terra hood,7903,2500;
			studded helmet,2482,20;
			strange helmet,2479,500;
			steel helmet,2457,293;
			skull helmet,5741,40000;
			ragnir helmet,7462,400;
			pirate hat,6096,1000;
			pair of earmuffs,7459,1500;
			magma monocle,7900,2500;
			mage hat,8820,150;
			lightning headband,7901,2500;
			legion helmet,2480,22;
			leather helmet,2461,4;
			krimhorn helmet,7461,200;
			iron helmet,2459,150;
			horseman helmet,3969,280;
			royal helmet,2498,30000;
			warrior helmet,2475,5000;
			crusader helmet,2497,6000;
			crown helmet,2491,2500;
			devil helmet,2462,1000;
			mystic turban,2663,150;
			chain helmet,2458,17;
			iron helmet,2459,150;
			dark helmet,2490,250;
			strange helmet,2479,500;
			batwing hat,10016,8000;
			beholder helmet,3972,3000;
			brass helmet,2460,30;
			charmer's tiara,3971,900;
			feather headdress,3970,850;
			glacier mask,7902,2500;
			helmet of the deep,5461,5000;
		
			steel boots,2645,30000;
			boots of haste,2195,30000;
			crocodile boots,3982,1000;
			fur boots,7457,2000;
			glacier shoes,7892,2500;
			leather boots,2643,2;
			lightning boots,7893,2500;
			magma boots,7891,2500;
			patched boots,2641,2000;
			pirate boots,5462,3000;
			terra boots,7886,2500;
		
			dragon scale mail,2492,40000;
			golden armor,2466,20000;
			crown armor,2487,12000;
			knight armor,2476,5000;
			blue robe,2656,10000;
			plate armor,2463,400;
			brass armor,2465,150;
			chain armor,2464,70;
			crown armor,2487,12000;
			noble armor,2486,900;
			dark armor,2489,400;
			belted cape,8872,500;
			brass armor,2465,150;
			coat,2651,1;
			crystalline armor,8878,16000;
			doublet,2485,3;
			dwarven armor,2503,30000;
			ethno coat,8892,200;
			focus cape,8871,6000;
			glacier robe,7897,11000;
			hibiscus dress,8873,3000;
			jacket,2650,1;
			leather armor,2467,12;
			leopard armor,3968,1000;
			lightning robe,7898,11000;
			magma coat,7899,11000;
			mammoth fur cape,7463,6000;
			paladin armor,8891,15000;
			pirate shirt,6095,500;
			red robe,2655,300;
			scale armor,2483,75;
			skullcracker armor,8889,18000;
			spirit cloak,8870,350;
			studded armor,2484,25;
			swamplair armor,8880,16000;
			terra mantle,7884,11000;

			brass legs,2487,49;
			crown legs,2488,12000;
			knight legs,2477,5000;
			plate legs,2647,115;
			bast skirt,3983,750;
			chain legs,2648,25;
			glacier kilt,7896,11000;
			leather legs,2649,9;
			lightning legs,7895,11000;
			magma legs,7894,11000;
			mammoth fur shorts,7464,850;
			pirate knee breeches,5918,200;
			studded legs,2468,15;
			terra legs,7885,11000;
		
			beholder shield,2518,1000;
			crown shield,2519,8000;
			demon shield,2520,30000;
			dragon shield,2516,4000;
			dwarven shield,2525,100;
			guardian shield,2515,2000;
			medusa shield,2536,9000;
			phoenix shield,2539,16000;
			tower shield,2528,8000;
			vampire shield,2534,15000;
			ancient shield,2532,900;
			battle shield,2513,95;
			black shield,2529,800;
			bone shield,2541,80;
			brass shield,2511,25;
			castle shield,2535,5000;
			copper shield,2530,50;
			dark shield,2521,400;
			norse shield,7460,1500;
			plate shield,2510,45;
			salamander shield,3975,280;
			scarab shield,2540,2000;
			sentinel shield,3974,120;
			steel shield,2509,80;
			studded shield,2526,16;
			tortoise shield,6131,150;
			tusk shield,3973,850;
			viking shield,2531,85;
			wooden shield,2512,5;
			spellbook of enlightenment,8900,4000;
			spellbook of warding,8901,8000;
			spellbook of mind control,8902,13000;
			spellbook of lost souls,8903,19000
		"/>
	</parameters>
</npc>
Here is the weapon shopkeeper
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Nitas" script="default.lua" walkinterval="2000" floorchange="0">
	<health now="150" max="150"/>
	<look type="139" head="22" body="135" legs="1" feet="108" addons="2" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I buy and sell swords, clubs, and axes."/>
		<parameter key="shop_buyable" value="
			serpent sword,2409,6000;
			spike sword,2383,8000;
			short sword,2406,30;
			sword,2376,85;
			ice rapier,2396,5000;
			rochhill sword,2395,473;
			crimson sword,7385,610;
			dagger,2379,5;
			jagged sword,8602,500;
			longsword,2397,160;
			machete,2420,35;
			rapier,2384,15;
			sabre,2385,25;
			two handed sword,2377,950;
				
			axe,2386,20;
			barbarian axe,2429,590;
			battle axe,2378,235;
			hand axe,2380,8;
			hatchet,2388,85;
			obsidian lance,2425,3000;
			sickle,2405,7;
			steel axe,8601,500;
				
			battle hammer,2417,350;
			clerical mace,2423,540;
			club,2382,5;
			crowbar,2416,260;
			daramanian mace,2439,500;
			mace,2398,90;
			morning star,2394,430;
			scythe,2550,12;
			staff,2401,40;
			war hammer,2391,10000
		" />
		<parameter key="shop_sellable" value="
			broad sword,2413,500;
			earth spike sword,7854,1000;
			energy spike sword,7869,1000;
			fiery spike sword,7744,1000;
			fire sword,2392,4000;
			giant sword,2393,17000;
			ice rapier,2396,1000;
			icy spike sword,7763,1000;
			serpent sword,2409,900;
			short sword,2406,10;
			spike sword,2383,1000;
			sword,2376,25;
			osbrooken sword,7391,16000;
			assassin dagger,7404,20000;
			berserker,7403,40000;
			blacksteel sword,7406,1000;
			rochhill sword,2395,118;
			crystal sword,7449,600;
			dagger,2379,2;
			demonrage sword,7382,36000;
			dragon slayer,7402,15000;
			earth blacksteel sword,7857,1000;
			earth dragon slayer,7858,15000;
			earth mystic blade,7856,30000;
			earth relic sword,7855,25000;
			energy blacksteel sword,7872,1000;
			energy dragon slayer,7873,15000;
			energy mystic blade,7871,30000;
			energy relic sword,7870,25000;
			epee,2438,8000;
			fiery blacksteel sword,7747,1000;
			fiery dragon slayer,7748,15000;
			fiery mystic blade,7746,30000;
			fiery relic sword,7745,25000;
			haunted blade,7407,8000;
			heavy machete,2442,90;
			icy blacksteel sword,7766,1000;
			icy dragon slayer,7767,15000;
			icy mystic blade,7765,30000;
			icy relic sword,7764,25000;
			justice seeker,7390,60000;
			katana,2412,35;
			knife,2403,1;
			longsword,2397,51;
			machete,2420,6;
			mercenary sword,7386,12000;
			mystic blade,7384,30000;
			nightmare blade,7418,35000;
			poison dagger,2411,50;
			rapier,2384,7;
			relic sword,7383,25000;
			sabre,2385,12;
			scimitar,2419,150;
			silver dagger,2402,500;
			templar scytheblade,3963,200;			
			two handed sword,2377,450;
			wyvern fang,7408,1500;
			
			angelic axe,7436,5000;
			battle axe,2378,80;
			butcher's axe,7412,18000;
			double axe,2387,260;
			dragon lance,2414,9000;
			fire axe,2432,8000;
			glorious axe,7454,3000;
			guardian halberd,2427,11000;
			halberd,2381,400;
			hatchet,2388,25;
			knight axe,2430,2000;
			obsidian lance,2425,500;
			royal axe,7434,60000;
			axe,2386,7;
			barbarian axe,2429,185;
			beastslayer axe,3962,1500;
			daramanian waraxe,2440,1000;
			dreaded clever,7419,15000;
			earth barbarian axe,7859,185;
			earth headchopper,7862,1000;
			earth heroic axe,7861,30000;
			earth knight axe,7860,2000;
			earth war axe,7863,12000;
			energy barbarian axe,7874,185;
			energy headchopper,7877,1000;
			energy heroic axe,7876,30000;
			energy knight axe,7875,2000;
			energy war axe,7878,12000;
			fiery barbarian axe,7749,185;
			fiery headchopper,7752,1000;
			fiery heroic axe,7751,30000;
			fiery knight axe,7750,2000;
			fiery war axe,7753,12000;
			hand axe,2380,5;
			headchopper,7380,1000;
			heroic axe,7389,30000;
			icy barbarian axe,7768,185;
			icy headchopper,7771,1000;
			icy heroic axe,7770,30000;
			icy knight axe,7769,2000;
			icy war axe,7772,12000;
			naginata,2426,2000;
			noble axe,7456,10000;
			orcish axe,2428,350;
			ornamented axe,7411,20000;
			ripper lance,3964,500;
			ruthless axe,6553,45000;
			sickle,2405,3;
			titan axe,7413,4000;
			vile axe,7388,30000;
			war axe,2454,12000;
			
			battle hammer,2417,120;
			blessed sceptre,7429,60000;
			clerical mace,2423,170;
			cranial basher,7415,30000;
			dragon hammer,2434,2000;
			mace,2398,30;
			orcish maul,7392,1000;
			queen's sceptre,7410,20000;
			shadow sceptre,7451,10000;
			skull staff,2436,6000;
			war hammer,2391,1200;
			abyss hammer,7414,20000;
			amber staff,7426,8000;
			banana staff,3966,1000;
			bone club,2449,5;
			bonebreaker,7428,10000;
			brutetamer's staff,7379,1500;
			chaos mace,7427,9000;
			club,2382,1;
			crowbar,2416,50;
			crystal mace,2445,20000;
			daramanian mace,2439,110;
			diamond sceptre,7387,3000;
			dragonbone staff,7430,3000;
			earth clerical mace,7864,170;
			earth cranial basher,7866,30000;
			earth crystal mace,7865,20000;
			earth orcish maul,7867,1000;
			earth war hammer,7868,1200;
			energy clerical mace,7879,170;
			energy cranial basher,7881,30000;
			energy crystal mace,7880,20000;
			energy orcish maul,7882,1000;
			energy war hammer,7883,1200;
			fiery clerical mace,7754,170;
			fiery cranial basher,7756,30000;
			fiery crystal mace,7755,20000;
			fiery orcish maul,7757,1000;
			fiery war hammer,7758,1200;
			furry club,7432,1000;
			giant smithhammer,2321,250;
			hammer of wrath,2444,30000;
			heavy mace,2452,50000;
			icy clerical mace,7773,170;
			icy cranial basher,7775,30000;
			icy crystal mace,7774,20000;
			icy orcish maul,7776,1000;
			icy war hammer,7777,1200;
			jade hammer,7422,25000;
			lich staff,3961,10000;
			lunar staff,7424,5000;
			mammoth whopper,7381,300;
			morning star,2394,100;
			onyx flail,7421,22000;
			sapphire hammer,7437,7000;
			scythe,2550,10;
			spiked squelcher,7452,5000;
			studded club,2448,10;
			taurus mace,7425,500
		"/>
	</parameters>
</npc>
both are basically the green djinn, the blue djinn, and rashid combined, every weapon and armor that is sellable in real tibia is in the npc, the npcs also sell a few items that they sell in real tibia, all prices are real tibia except maybe 1 or 2 (one is the crystal mace, a very rare drop (like 1%) from a pharaoh so I set its price to 20,000 (I only did so because I wanted every enchantable item to be sellable) all greenhorn arena weapons are sellable for 1000, all scrapper arena weapons are sellable for 30,000 and the last arena level weapons are sellable for 60,000, all other weapons and armor are buyable/sellable just like they are in real tibia, you can just take out the arena weapons and the crystal mace (and its enchanted forms) if you want it to be exactly like real tibia, and anything sellable to H.L. is not on the list since he pays practically nothing for rare items, and stuff like magic plate armor is sellable to sam for 6,400 is not on the list since its like H.L., its so cheap theres no point in putting it in the list

you may notice that all of the items are in alphabetical order as well, most are set twice, as in it goes alphabetical then restarts at A and goes down, this was because I started on the djinns first and then went through every item after that in alphabetical order, if it isnt sellable in real tibia, its not on the list

newer items (released in 8.54 and up) are not on the list like the bonelord shield (introduced in 8.54) replaces the beholder shield, but even in TFS 0.3.6 it still comes up as a beholder shield and beholders drop beholder shields in the monster files for TFS 0.3.6, not bonelord shields

this was all tested on TFS 0.3.6 so if you are using 0.2 then some items may or may not work
 
ey man, would love it if i could have the script as well? Seems i cant get those to work with the one i have ;)
 
The NPC.xml has the sellable Items and the Script is default.lua
Personally I like to make a NPC.xml without the items and make a script with all the items. works for me
anyway good NPC
 
Using this on 0.3.6pl1 it works fine except it sells a crown armor for 195 gold.I cant find it listed anywhere.Do you know how to fix this?
 
"Unexpected symbol near '<' " in the server console..This is on TFS 0.4, though. Anyone got the fix?
 
Anyone got a fix for the crown armor issue?


@Suss if its the weaponeer try taking out the extra space----
war hammer,2391,10000
" />
<parameter key="shop_sellable" value="
change to
war hammer,2391,10000
"/>
<parameter key="shop_sellable" value="

hope that helps
 
Last edited:
There are some mistakes on items ID's/Names:

XML:
brass legs,2487,195   -> change to    -> brass legs,2478,195
rochhill sword,2395,473 ->-> carlin sowrd,2395,473; <!--(unless u got a sword called  rochhill)-->
osbrooken sword,7391,16000 ->-> thaian sword,7391,16000;<!--(unless u got a sword called osbrooken)-->
 
Back
Top