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

Solved Lack of item names in NPC Trade

elektrus

Uninvited Guest
Joined
Jun 16, 2011
Messages
28
Reaction score
0
Location
Poland
I got code like this:

Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
 
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'brass helmet'}, 2460, 120, 1, 'brass helmet')
shopModule:addBuyableItem({'chain helmet'}, 2458, 52, 1, 'chain helmet')
shopModule:addBuyableItem({'dark helmet'}, 2490, 1000, 1, 'dark helmet')
shopModule:addBuyableItem({'helmet of the deep'}, 5461, 5000, 1, 'helmet of the deep')
shopModule:addBuyableItem({'iron helmet'}, 2459, 390, 1, 'iron helmet')
shopModule:addBuyableItem({'leather helmet'}, 2461, 12, 1, 'leather helmet')
shopModule:addBuyableItem({'party hat'}, 6578, 600, 1, 'party hat')
shopModule:addBuyableItem({'steel helmet'}, 2457, 580, 1, 'steel helmet')
shopModule:addBuyableItem({'soldier helmet'}, 2481, 110, 1, 'soldier helmet')
shopModule:addBuyableItem({'studded helmet'}, 2482, 63, 1, 'studded helmet')
shopModule:addBuyableItem({'viking helmet'}, 2473, 265, 1, 'viking helmet')
shopModule:addBuyableItem({'belted cape'}, 8872, 1300, 1, 'belted cape')
shopModule:addBuyableItem({'brass armor'}, 2465, 450, 1, 'brass armor')
shopModule:addBuyableItem({'cape'}, 2654, 9, 1, 'cape')
shopModule:addBuyableItem({'chain armor'}, 2464, 200, 1, 'chain armor')
shopModule:addBuyableItem({'coat'}, 2651, 8, 1, 'coat')	
shopModule:addBuyableItem({'dark armor'}, 2489, 1500, 1, 'dark armor')
shopModule:addBuyableItem({'ethno coat'}, 8892, 35000, 1, 'ethno coat')
shopModule:addBuyableItem({'green tunic'}, 2652, 25, 1, 'green tunic')
shopModule:addBuyableItem({'jacket'}, 2650, 12, 1, 'jacket')
shopModule:addBuyableItem({'leather armor'}, 2467, 25, 1, 'leather armor')
shopModule:addBuyableItem({'magician robe'}, 8819, 450, 1, 'magician robe')	
shopModule:addBuyableItem({'noble armor'}, 2486, 8000, 1, 'noble armor')	
shopModule:addBuyableItem({'plate armor'}, 2463, 1200, 1, 'plate armor')
shopModule:addBuyableItem({'ranger cloak'}, 2660, 550, 1, 'ranger cloak')
shopModule:addBuyableItem({'scale armor'}, 2483, 260, 1, 'scale armor')	
shopModule:addBuyableItem({'spirit cloak'}, 8870, 1000, 1, 'spirit cloak')
shopModule:addBuyableItem({'studded armor'}, 2484, 90, 1, 'studded armor')
shopModule:addBuyableItem({'brass legs'}, 2478, 195, 1, 'brass legs')
shopModule:addBuyableItem({'chain legs'}, 2648, 80, 1, 'chain legs')
shopModule:addBuyableItem({'leather legs'}, 2649, 10, 1, 'leather legs')
shopModule:addBuyableItem({'studded legs'}, 2468, 60, 1, 'studded legs')
shopModule:addBuyableItem({'leather boots'}, 2643, 2, 1,'leather boots')
shopModule:addBuyableItem({'ancient shield'}, 2532, 5000, 1, 'ancient shield')
shopModule:addBuyableItem({'bonelord shield'}, 2518, 7000, 1, 'beholder shield')
shopModule:addBuyableItem({'brass shield'}, 2511, 65, 1, 'brass shield')
shopModule:addBuyableItem({'dwarven shield'}, 2525, 500, 1, 'dwarven shield')
shopModule:addBuyableItem({'plate shield'}, 2510, 125, 1, 'plate shield')	
shopModule:addBuyableItem({'steel shield'}, 2509, 240, 1, 'steel shield')
shopModule:addBuyableItem({'studded shield'}, 2526, 50, 1, 'studded shield')
shopModule:addBuyableItem({'viking shield'}, 2531, 260, 1, 'viking shield')
shopModule:addBuyableItem({'wooden shield'}, 2512, 15, 1, 'wooden shield')
shopModule:addBuyableItem({'axe'}, 2386, 20, 1,'axe')
shopModule:addBuyableItem({'barbarian axe'}, 2429, 590, 1,'barbarian axe')
shopModule:addBuyableItem({'battle axe'}, 2378, 235, 1,'battle axe')
shopModule:addBuyableItem({'hand axe'}, 2380, 8, 1,'hand axe')
shopModule:addBuyableItem({'obsidian lance'}, 2425, 3000, 1,'obsidian lance')
shopModule:addBuyableItem({'sickle'}, 2405, 7, 1,'sickle')
shopModule:addBuyableItem({'battle hammer'}, 2417, 350, 1,'battle hammer')	
shopModule:addBuyableItem({'staff'}, 2401, 40, 1,'staff')	
shopModule:addBuyableItem({'clerical mace'}, 2423, 540, 1,'clerical mace')
shopModule:addBuyableItem({'crowbar'}, 2416, 260, 1,'crowbar')
shopModule:addBuyableItem({'daramanian mace'}, 2439, 500, 1,'daramanian mace')
shopModule:addBuyableItem({'mace'}, 2398, 90, 1,'mace')	
shopModule:addBuyableItem({'morning star'}, 2394, 430, 1,'morning star')	
shopModule:addBuyableItem({'scythe'}, 2550, 50, 1,'scythe')
shopModule:addBuyableItem({'war hammer'}, 2391, 10000, 1,'war hammer')
shopModule:addBuyableItem({'bone sword'}, 2450, 75, 1,'bone sword')
shopModule:addBuyableItem({'carlin sword'}, 2395, 473, 1,'carlin sword')
shopModule:addBuyableItem({'crimson sword'}, 7385, 610, 1,'crimson sword')
shopModule:addBuyableItem({'dagger'}, 2379, 5, 1,'dagger')
shopModule:addBuyableItem({'ice rapier'}, 2396, 5000, 1,'ice rapier')
shopModule:addBuyableItem({'longsword'}, 2397, 160, 1,'longsword')
shopModule:addBuyableItem({'machete'}, 2420, 35, 1,'machete')
shopModule:addBuyableItem({'rapier'}, 2384, 15, 1,'rapier')
shopModule:addBuyableItem({'sabre'}, 2385, 35, 1,'sabre')
shopModule:addBuyableItem({'serpent sword'}, 2409, 6000, 1,'serpent sword')
shopModule:addBuyableItem({'short sword'}, 2406, 30, 1,'short sword')
shopModule:addBuyableItem({'spike sword'}, 2383, 8000, 1,'spike sword')
shopModule:addBuyableItem({'sword'}, 2376, 85, 1,'sword')	
shopModule:addBuyableItem({'twin hooks'}, 11309, 1100, 1,'twin hooks')
shopModule:addBuyableItem({'two handed sword'}, 2377, 950, 1,'two handed sword')
shopModule:addBuyableItem({'arrow'}, 2544, 3, 1,'arrow')
shopModule:addBuyableItem({'assassin star'}, 7368, 100, 1,'assassin star')
shopModule:addBuyableItem({'bolt'}, 2543, 4, 1,'bolt')
shopModule:addBuyableItem({'bow'}, 2456, 400, 1,'bow')
shopModule:addBuyableItem({'crossbow'}, 2455, 500, 1,'crossbow')
shopModule:addBuyableItem({'spear'}, 2389, 5, 1,'spear')
shopModule:addBuyableItem({'hunting spear'}, 3965, 10, 1,'hunting spear')
shopModule:addBuyableItem({'royal spear'}, 7378, 15, 1,'royal spear')
shopModule:addBuyableItem({'earth arrow'}, 7850, 5, 1,'earth arrow')
shopModule:addBuyableItem({'flaming arrow'}, 7840, 5, 1,'flaming arrow')
shopModule:addBuyableItem({'flash arrow'}, 7838, 5, 1,'flash arrow')
shopModule:addBuyableItem({'onyx arrow'}, 7365, 7, 1,'onyx arrow')
shopModule:addBuyableItem({'piercing bolt'}, 7363, 5, 1,'piercing bolt')
shopModule:addBuyableItem({'power bolt'}, 2547, 7, 1,'power bolt')
shopModule:addBuyableItem({'shiver arrow'}, 7839, 5, 1,'shiver arrow')
shopModule:addBuyableItem({'sniper arrow'}, 7364, 5, 1,'sniper arrow')
shopModule:addBuyableItem({'throwing knife'}, 2410, 25, 1,'throwing knife')
shopModule:addBuyableItem({'throwing star'}, 2399, 42, 1,'throwning star')

shopModule:addSellableItem({'ancient shield'}, 2532, 900, 1,'ancient shield')
shopModule:addSellableItem({'angelic axe'}, 7436, 5000, 1,'angelic axe')
shopModule:addSellableItem({'axe'}, 2386, 7, 1,'axe')
shopModule:addSellableItem({'amber staff'}, 7426, 8000, 1,'amber staff')
shopModule:addSellableItem({'assassin dagger'}, 7404, 20000, 1,'assassin dagger')
shopModule:addSellableItem({'battle shield'}, 2513, 95, 1,'battle shield')
shopModule:addSellableItem({'black shield'}, 2529, 800, 1,'black shield')
shopModule:addSellableItem({'bone shield'}, 2541, 80, 1,'bone shield')
shopModule:addSellableItem({'bonelord shield'}, 2518, 1200, 1,'bonelord shield')
shopModule:addSellableItem({'brass shield'}, 2511, 16, 1,'brass shield')
shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 1,'boots of haste')
shopModule:addSellableItem({'bast skirt'}, 3983, 750, 1,'bast skirt')	
shopModule:addSellableItem({'brass legs'}, 2478, 49, 1,'brass legs')
shopModule:addSellableItem({'belted cape'}, 8872, 500, 1,'belted cape')
shopModule:addSellableItem({'blue robe'}, 2656, 10000, 1,'blue robe')
shopModule:addSellableItem({'brass armor'}, 2465, 150, 1,'brass armor')
shopModule:addSellableItem({'bandana'}, 5917, 150, 1,'bandana')
shopModule:addSellableItem({'batwing hat'}, 10016, 8000, 1,'batwing hat')	
shopModule:addSellableItem({'bonelord helmet'}, 3972, 7500, 1,'bonelord helmet')	
shopModule:addSellableItem({'brass helmet'}, 2460, 30, 1,'brass helmet')
shopModule:addSellableItem({'bow'}, 2456, 100, 1,'bow')
shopModule:addSellableItem({'berserker'}, 7403, 40000, 1,'berserker')
shopModule:addSellableItem({'bone sword'}, 2450, 20, 1,'bone sword')
shopModule:addSellableItem({'broadsword'}, 2413, 500, 1,'broadsword')
shopModule:addSellableItem({'banana staff'}, 3966, 1000, 1,'banana staff')
shopModule:addSellableItem({'battle hammer'}, 2417, 120, 1,'battle hammer')
shopModule:addSellableItem({'bonebreaker'}, 7428, 10000, 1,'bonebreaker')
shopModule:addSellableItem({'brutetamer staff'}, 7379, 1500, 1,'brutetamer staff')
shopModule:addSellableItem({'barbarian axe'}, 7749, 185, 1,'barbarian axe')
shopModule:addSellableItem({'battle axe'}, 2378, 80, 1,'battle axe')
shopModule:addSellableItem({'beastslayer axe'}, 3962, 1500, 1,'beastslayer axe')
shopModule:addSellableItem({'butcher axe'}, 7412, 18000, 1,'butcher axe')
shopModule:addSellableItem({'castle shield'}, 2535, 5000, 1,'castle shield')
shopModule:addSellableItem({'copper shield'}, 2530, 50, 1,'copper shield')
shopModule:addSellableItem({'crown shield'}, 2519, 8000, 1,'crown shield')
shopModule:addSellableItem({'coconut shoes'}, 9931, 500, 1,'coconut shoes')
shopModule:addSellableItem({'crocodile boots'}, 3982, 1000, 1,'crocodile boots')
shopModule:addSellableItem({'chain legs'}, 2648, 25, 1,'chain legs')
shopModule:addSellableItem({'crown legs'}, 2488, 12000, 1,'crown legs')
shopModule:addSellableItem({'chain armor'}, 2464, 70, 1,'chain armor')
shopModule:addSellableItem({'coat'}, 2651, 1, 'coat')
shopModule:addSellableItem({'crown armor'}, 2487, 12000, 1,'crown armor')
shopModule:addSellableItem({'crystalline armor'}, 8878, 16000, 1,'crystalline armor')
shopModule:addSellableItem({'charmer tiara'}, 3971, 900, 1,'charmer tiara')	
shopModule:addSellableItem({'chain helmet'}, 2458, 17, 1,'chain helmet')
shopModule:addSellableItem({'cobra crown'}, 12630, 50000, 1,'cobra crown')	
shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 1,'crown helmet')
shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 1,'crusader helmet')
shopModule:addSellableItem({'chain bolter'}, 8850, 40000, 1,'chain bolter')
shopModule:addSellableItem({'composite hornbow'}, 8855, 25000, 1,'composite hornbow')
shopModule:addSellableItem({'crossbow'}, 2455, 120, 1,'crossbow')
shopModule:addSellableItem({'carlin sword'}, 2395, 118, 1,'carlin sword')
shopModule:addSellableItem({'crystal sword'}, 7449, 600, 1,'crystal sword')
shopModule:addSellableItem({'chaos mace'}, 7427, 9000, 1,'chaos mace')
shopModule:addSellableItem({'clerical mace'}, 7754, 170, 1,'clerical mace')
shopModule:addSellableItem({'cranial basher'}, 7756, 30000, 1,'cranial basher')
shopModule:addSellableItem({'crowbar'}, 2416, 50, 1,'crowbar')
shopModule:addSellableItem({'dark shield'}, 2521, 400, 1,'dark shield')
shopModule:addSellableItem({'demon shield'}, 2520, 30000, 1,'demon shield')
shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 1,'dragon shield')
shopModule:addSellableItem({'dwarven shield'}, 2525, 100, 1,'dwarven shield')
shopModule:addSellableItem({'draken boots'}, 12646, 40000, 1,'draken boots')
shopModule:addSellableItem({'dark armor'}, 2489, 400, 1,'dark armor')
shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 1,'dragon scale mail')
shopModule:addSellableItem({'dwarven armor'}, 2503, 30000, 1,'dwarven armor')
shopModule:addSellableItem({'dark helmet'}, 2490, 250, 1,'dark helmet')		
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1,'devil helmet')
shopModule:addSellableItem({'dagger'}, 2379, 2, 1,'dagger')
shopModule:addSellableItem({'demonrage sword'}, 7382, 36000, 1,'demonrage sword')
shopModule:addSellableItem({'djinn blade'}, 2451, 15000, 1,'djinn blade')
shopModule:addSellableItem({'dragon slayer'}, 7402, 15000, 1,'dragon slayer')
shopModule:addSellableItem({'daramanian mace'}, 2439, 500, 1,'daramanian mace')
shopModule:addSellableItem({'diamond sceptre'}, 7387, 3000, 1,'diamond sceptre')
shopModule:addSellableItem({'drachaku'}, 11308, 10000, 1,'drachaku')
shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 1,'dragon hammer')
shopModule:addSellableItem({'dragonbone staff'}, 7430, 3000, 1,'dragonbone staff')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 1,'daramanian waraxe')
shopModule:addSellableItem({'double axe'}, 2387, 260, 1,'double axe')
shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 1,'dragon lance')
shopModule:addSellableItem({'drakinata'}, 11305, 10000, 1,'drakinata')
shopModule:addSellableItem({'dreaded clever'}, 7419, 15000, 1,'dreaded clever')
shopModule:addSellableItem({'elite draken mail'}, 12607, 50000, 1,'elite draken mail')
shopModule:addSellableItem({'ethno coat'}, 8892, 200, 1,'ethno coat')
shopModule:addSellableItem({'epee'}, 2438, 8000, 1,'epee')
shopModule:addSellableItem({'fur boots'}, 7457, 2000, 1,'fur boots')
shopModule:addSellableItem({'flower dress'}, 9929, 1000, 1,'flower dress')
shopModule:addSellableItem({'focus cape'}, 8871, 6000, 1,'focus cape')
shopModule:addSellableItem({'feather headdress'}, 3970, 850, 1,'feather headdress')
shopModule:addSellableItem({'flower wreath'}, 9927, 500, 1,'flower wreath')
shopModule:addSellableItem({'fire sword'}, 2392, 4000, 1,'fire sword')
shopModule:addSellableItem({'furry club'}, 7432, 1000, 1,'furry club')
shopModule:addSellableItem({'fire axe'}, 2432, 8000, 1,'fire axe')
shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 1,'guardian shield')
shopModule:addSellableItem({'glacier shoes'}, 7892, 2500, 1,'glacier shoes')
shopModule:addSellableItem({'guardian boots'}, 11240, 35000, 1,'guardian boots')
shopModule:addSellableItem({'glacier kilt'}, 7896, 11000, 1,'glacier kilt')
shopModule:addSellableItem({'golden legs'}, 2470, 30000, 1,'golden legs')
shopModule:addSellableItem({'glacier robe'}, 7897, 11000, 1,'glacier robe')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 1,'golden armor')
shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1,'glacier mask')
shopModule:addSellableItem({'giant sword'}, 2393, 17000, 1,'giant sword')
shopModule:addSellableItem({'giant smithhammer'}, 2321, 250, 1,'giant smithhammer')
shopModule:addSellableItem({'glorious axe'}, 7454, 3000, 1,'glorious axe')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 1,'guardian halberd')
shopModule:addSellableItem({'hibiscus dress'}, 8873, 3000, 1,'hibiscus dress')
shopModule:addSellableItem({'helmet of the deep'}, 12541, 5000, 1,'helmet of the deep')
shopModule:addSellableItem({'horseman helmet'}, 3969, 280, 1,'horseman helmet')
shopModule:addSellableItem({'haunted blade'}, 7407, 8000, 1,'haunted blade')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 1,'heavy machete')
shopModule:addSellableItem({'hammer of wrath'}, 2444, 30000, 1,'hammer of wrath')
shopModule:addSellableItem({'heavy mace'}, 2452, 50000, 1,'heavy mace')
shopModule:addSellableItem({'halberd'}, 2381, 400, 1,'halberd')
shopModule:addSellableItem({'hand axe'}, 2380, 4, 1,'hand axe')
shopModule:addSellableItem({'hatchet'}, 2388, 25, 1,'hatchet')
shopModule:addSellableItem({'heroic axe'}, 7389, 30000, 1,'heroic axe')
shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 1,'ice rapier')
shopModule:addSellableItem({'iron helmet'}, 2459, 150, 1,'iron helmet')
shopModule:addSellableItem({'jade hammer'}, 7422, 25000, 1,'jade hammer')
shopModule:addSellableItem({'jade hat'}, 11368, 9000, 1,'jade hat')
shopModule:addSellableItem({'knight axe'}, 7750, 2000, 1,'knight axe')
shopModule:addSellableItem({'katana'}, 2412, 35, 1,'katana')
shopModule:addSellableItem({'knight legs'}, 2477, 5000, 1,'knight legs')
shopModule:addSellableItem({'knight armor'}, 2476, 5000, 1,'knight armor')
shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1,'krimhorn helmet')
shopModule:addSellableItem({'lightning boots'}, 7893, 2500, 1,'lightning boots')
shopModule:addSellableItem({'leaf legs'}, 9928, 500, 1,'leaf legs')
shopModule:addSellableItem({'leather legs'}, 2649, 9, 1,'leather legs')
shopModule:addSellableItem({'lightning legs'}, 7895, 11000, 1,'lightning legs')
shopModule:addSellableItem({'lavos armor'}, 8877, 16000, 1,'lavos armor')
shopModule:addSellableItem({'leather armor'}, 2467, 12, 1,'leather armor')
shopModule:addSellableItem({'leopard armor'}, 3968, 1000, 1,'leopard armor')
shopModule:addSellableItem({'lightning robe'}, 7898, 11000, 1,'lightning robe')
shopModule:addSellableItem({'leather helmet'}, 2461, 4, 1,'leather helmet')
shopModule:addSellableItem({'lightning headband'}, 7889, 2500, 1,'lightning headband')
shopModule:addSellableItem({'longsword'}, 2397, 51, 1,'longsword')
shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 1,'lunar staff')
shopModule:addSellableItem({'mastermind shield'}, 2514, 50000, 1,'mastermind shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 1,'medusa shield')
shopModule:addSellableItem({'magma boots'}, 7891, 2500, 1,'magma boots')
shopModule:addSellableItem({'magma legs'}, 7894, 11000, 1,'magma legs')
shopModule:addSellableItem({'mammoth fur shorts'}, 7464, 850, 1,'mammoth fur shorts')
shopModule:addSellableItem({'magic plate armor'}, 2472, 90000, 1,'magic plate armor')
shopModule:addSellableItem({'magma coat'}, 7899, 11000, 1,'magma coat')
shopModule:addSellableItem({'mammoth fur cape'}, 7463, 6000, 1,'mammoth fur cape')
shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1,'magma monocle')
shopModule:addSellableItem({'mystic turban'}, 2663, 150, 1,'mystic turban')
shopModule:addSellableItem({'machete'}, 2420, 6, 1,'machete')
shopModule:addSellableItem({'mercenary sword'}, 7386, 12000, 1,'mercenary sword')
shopModule:addSellableItem({'mystic blade'}, 7384, 30000, 1,'mystic blade')
shopModule:addSellableItem({'mace'}, 2398, 30, 1,'mace')	
shopModule:addSellableItem({'mammoth whopper'}, 7381, 300, 1,'mammoth whopper')
shopModule:addSellableItem({'morning star'}, 2394, 100, 1,'morning star')
shopModule:addSellableItem({'norse shield'}, 7460, 1500, 1,'norse shield')
shopModule:addSellableItem({'noble armor'}, 2486, 900, 1,'noble armor')
shopModule:addSellableItem({'nightmare blade'}, 7418, 35000, 1,'nightmare blade')
shopModule:addSellableItem({'naginata'}, 2426, 2000, 1,'naginata')
shopModule:addSellableItem({'noble axe'}, 7456, 10000, 1,'noble axe')
shopModule:addSellableItem({'onyx flail'}, 7421, 22000, 1,'onyx flail')
shopModule:addSellableItem({'orcish axe'}, 2328, 350, 1,'orcish axe')
shopModule:addSellableItem({'ornamented axe'}, 7411, 20000, 1,'ornamented axe')
shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 1,'obsidian lance')
shopModule:addSellableItem({'phoenix shield'}, 2539, 16000, 1,'phoenix shield')
shopModule:addSellableItem({'plate shield'}, 2510, 45, 1,'plate shield')
shopModule:addSellableItem({'pirate boots'}, 5462, 3000, 1,'pirate boots')
shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 1,'pirate knee breeches')
shopModule:addSellableItem({'plate legs'}, 2647, 115, 1,'plate legs')
shopModule:addSellableItem({'paladin armor'}, 8891, 15000, 1,'paladin armor')
shopModule:addSellableItem({'pirate shirt'}, 6095, 500, 1,'pirate shirt')
shopModule:addSellableItem({'plate armor'}, 2463, 400, 1,'plate armor')
shopModule:addSellableItem({'pair of earmuffs'}, 7459, 1500, 1,'pair of earmuffs')
shopModule:addSellableItem({'pharoah sword'}, 2446, 23000, 1,'pharoah sword')
shopModule:addSellableItem({'poison dagger'}, 2411, 50, 1,'poison dagger')
shopModule:addSellableItem({'queen sceptre'}, 7410, 20000, 1,'queen sceptre')
shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1,'ragnir helmet')
shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 1,'royal helmet')
shopModule:addSellableItem({'rapier'}, 2384, 5, 1,'rapier')
shopModule:addSellableItem({'relic sword'}, 7383, 25000, 1,'relic sword')
shopModule:addSellableItem({'ripper lance'}, 3964, 500, 1,'ripper lance')
shopModule:addSellableItem({'ruthless axe'}, 6553, 45000, 1,'ruthless axe')
shopModule:addSellableItem({'salamander shield'}, 3975, 280, 1,'salamander shield')
shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 1,'scarab shield')
shopModule:addSellableItem({'sentinel shield'}, 3974, 120, 1,'sentinel shield')
shopModule:addSellableItem({'steel shield'}, 2509, 80, 1,'steel shield')	
shopModule:addSellableItem({'studded shield'}, 2526, 16, 1,'studded shield')
shopModule:addSellableItem({'steel boots'}, 2645, 30000, 1,'steel boots')
shopModule:addSellableItem({'studded legs'}, 2468, 15, 1,'studded legs')
shopModule:addSellableItem({'swamplair armor'}, 8880, 16000, 1,'swamplair armor')
shopModule:addSellableItem({'scale armor'}, 2483, 75, 1,'scale armor')	
shopModule:addSellableItem({'simple dress'}, 2657, 50, 1,'simple dress')
shopModule:addSellableItem({'skullcracker armor'}, 8889, 18000, 1,'skullcracker armor')
shopModule:addSellableItem({'spellweaver robe'}, 11355, 12000, 1,'spellweaver robe')
shopModule:addSellableItem({'spirit cloak'}, 8870, 350, 1,'spirit cloak')
shopModule:addSellableItem({'studded armor'}, 2484, 25, 1,'studded armor')
shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 1,'skull helmet')
shopModule:addSellableItem({'soldier helmet'}, 2481, 16, 1,'soldier helmet')
shopModule:addSellableItem({'steel helmet'}, 2457, 293, 1,'steel helmet')
shopModule:addSellableItem({'strange helmet'}, 2479, 500, 1,'strange helmet')
shopModule:addSellableItem({'studded helmet'}, 2482, 20, 1,'studded helmet')
shopModule:addSellableItem({'spear'}, 2389, 3, 1,'spear')
shopModule:addSellableItem({'sabre'}, 2385, 12, 1,'sabre')
shopModule:addSellableItem({'sais'}, 11306, 16500, 1,'sais')
shopModule:addSellableItem({'scimitar'}, 2419, 150, 1,'scimitar')
shopModule:addSellableItem({'serpent sword'}, 2409, 900, 1,'serpent sword')
shopModule:addSellableItem({'short sword'}, 2406, 10, 1,'short sword')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 1,'silver dagger')
shopModule:addSellableItem({'spike sword'}, 2383, 1000, 1,'spike sword')
shopModule:addSellableItem({'sword'}, 2376, 25, 1,'sword')
shopModule:addSellableItem({'sapphire hammer'}, 7437, 7000, 1,'sapphire hammer')
shopModule:addSellableItem({'scythe'}, 2550, 12, 1,'scythe')
shopModule:addSellableItem({'shadow sceptre'}, 7451, 10000, 1,'shadow sceptre')
shopModule:addSellableItem({'skull staff'}, 2436, 6000, 1,'skull staff')
shopModule:addSellableItem({'spiked squelcher'}, 7452, 5000, 1,'spiked squelcher')
shopModule:addSellableItem({'spellbook of enlightenment'}, 8900, 4000, 1,'spellbook of enlightenment')
shopModule:addSellableItem({'spellbook of lost souls'}, 8903, 19000, 1,'spellbook of lost souls')
shopModule:addSellableItem({'spellbook of mind control'}, 8902, 13000, 1,'spellbook of mind control')
shopModule:addSellableItem({'spellbook of warding'}, 8901, 8000, 1,'spellbook of warding')
shopModule:addSellableItem({'sickle'}, 2405, 3, 1,'sickle')
shopModule:addSellableItem({'tempest shield'}, 2542, 35000, 1,'tempest shield')
shopModule:addSellableItem({'tortoise shield'}, 6131, 150, 1,'tortoise shield')
shopModule:addSellableItem({'tower shield'}, 2528, 8000, 1,'tower shield')
shopModule:addSellableItem({'tusk shield'}, 3973, 850, 1,'tusk shield')
shopModule:addSellableItem({'terra mantle'}, 7884, 11000, 1,'terra mantle')
shopModule:addSellableItem({'terra legs'}, 7885, 11000, 1,'terra legs')
shopModule:addSellableItem({'terra boots'}, 7886, 2500, 1,'terra boots')
shopModule:addSellableItem({'throwing knife'}, 2410, 2, 1,'throwing knife')
shopModule:addSellableItem({'terra hood'}, 7903, 2500, 1,'terra hood')
shopModule:addSellableItem({'tribal mask'}, 3967, 250, 1,'tribal mask')
shopModule:addSellableItem({'templar scytheblade'}, 3963, 200, 1,'templar scytheblade')
shopModule:addSellableItem({'thaian sword'}, 7391, 16000, 1,'thaian sword')
shopModule:addSellableItem({'twiceslicer'}, 12613, 28000, 1,'twiceslicer')
shopModule:addSellableItem({'twin hooks'}, 11309, 500, 1,'twin hooks')
shopModule:addSellableItem({'two handed sword'}, 2377, 450, 1,'two handed sword')
shopModule:addSellableItem({'taurus mace'}, 7425, 500, 1,'taurus mace')
shopModule:addSellableItem({'titan axe'}, 7413, 4000, 1,'titan axe')
shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 1,'vampire shield')
shopModule:addSellableItem({'viking shield'}, 2531, 85, 1,'viking shield')
shopModule:addSellableItem({'vile axe'}, 7388, 30000, 1,'vile axe')
shopModule:addSellableItem({'viking helmet'}, 2473, 66, 1,'viking helmet')
shopModule:addSellableItem({'wooden shield'}, 2512, 5, 1,'wooden shield')
shopModule:addSellableItem({'war axe'}, 7753, 12000, 1,'war axe')
shopModule:addSellableItem({'war hammer'}, 2391, 1200, 1,'war hammer')
shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 1,'wyvern fang')
shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 1,'warrior helmet')
shopModule:addSellableItem({'zaoan halberd'}, 11323, 500, 1,'zaoan halberd')
shopModule:addSellableItem({'zaoan sword'}, 11307, 30000, 1,'zaoan sword')
shopModule:addSellableItem({'zaoan helmet'}, 11302, 45000, 1,'zaoan helmet') 
shopModule:addSellableItem({'zaoan armor'}, 11301, 14000, 1,'zaoan armor')
shopModule:addSellableItem({'zaoan robe'}, 11356, 12000, 1,'zaoan robe')
shopModule:addSellableItem({'zaoan legs'}, 11304, 14000, 1,'zaoan legs')
shopModule:addSellableItem({'zaoan shoes'}, 11303, 5000, 1,'zaoan shoes')

npcHandler:addModule(FocusModule:new())

And this is how selling items look.
Some items are displaying correctly but most are not. I had this problem earlier trying to buy items but i managed to get it to work
by randomly changing item positions, lol. I'm using 0.2.15.
 

Attachments

Code:
shopModule:addBuyableItem({'brass helmet'}, 2460, 120, [B][COLOR="#FF0000"][SIZE=4]1,[/SIZE][/COLOR][/B] 'brass helmet')
shopModule:addBuyableItem({'chain helmet'}, 2458, 52, [B][COLOR="#FF0000"][SIZE=4]1,[/SIZE][/COLOR][/B] 'chain helmet')
Try removing the "1,"'s
 
Oh, how i love these kind of errors. Just a little change and it works like charm. Thanks, i wouldn't come up with this, although Cape was one of items that i could sell and in fact it didn't have "1,".
 
Back
Top