Cant find the right forum? Post your script here
#36971 by Sentiello
Tue 25 Feb 2014, 16:51
Hello Vapus,

On this thread you will find a huge item list.
The items are based on the most common buy- and sellable items of Cipsoft until version 8.71 (will be updated later).
The items have the most common prices as Real Tibia.

Code: Select allDone / to do list:

[X]Helmets
[X]Armors
[X]Legs
[X]Boots
[X]Shields
[X]Spellsbooks
[X]Axe Weapons
[X]Clubs
[X]Sword weapons
[X]Rods
[X]Wands
[X]Fletcher
[X]Food
[X]Creature Products
[X]Liquids
[X]Containers
[X]Furniture
[]Decorations
[X]Trophies
[X]Musical Instruments
[X]Dolls
[X]Containers
[X]Kitchen Tools
[X]Documents and Papers
[X]Books
[X]Plants & Herbs
[X]Amulets
[X]Necklaces
[]Rings
[]Light Sources
[]Tools
[]Taiming Items
[]Clothing Accessories
[]Enchanted Items
[]Game Tokens
[]Valuables
[]Magical Items
[]Metals
[]Party Items
[]Quest Items
[]Rubbish
[X]Runes


First of all, it's good to know that you always need the shopmodule scripts. Just replace the shopmodule/add...ableitem, by the items you which having on your npc!
Here is the shopmodule script:
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)         npcHandler :o nCreatureAppear(cid)         end
function onCreatureDisappear(cid)      npcHandler :o nCreatureDisappear(cid)         end
function onCreatureSay(cid, type, msg)      npcHandler :o nCreatureSay(cid, type, msg)      end
function onThink()            npcHandler :o nThink()               end



npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
#36972 by Stian
Tue 25 Feb 2014, 16:56
Didn't I make you a tool to fetch that data once?
#36973 by Sentiello
Tue 25 Feb 2014, 17:23
Yes you did.
It was to track all tibia npc's.
Sadly I've lost the most recent one.. and the one I have seems to be bugged.
Same for the monster loot parser.
I asked you ones to watch if you got the tools.
If not, if you could fix the versions I do have, but sadly you didn't.
#36974 by Sentiello
Tue 25 Feb 2014, 19:32
Helmets
Code: Select allshopModule: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: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({'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({'dark helmet'}, 2490, 250, 1,'dark helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1,'devil helmet')
shopModule:addSellableItem({'feather headdress'}, 3970, 850, 1,'feather headdress')
shopModule:addSellableItem({'flower wreath'}, 9927, 500, 1,'flower wreath')
shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1,'glacier mask')
shopModule:addSellableItem({'helmet of the deep'}, 12541, 5000, 1,'helmet of the deep')
shopModule:addSellableItem({'horseman helmet'}, 3969, 280, 1,'horseman helmet')
shopModule:addSellableItem({'iron helmet'}, 2459, 150, 1,'iron helmet')
shopModule:addSellableItem({'jade hat'}, 11368, 9000, 1,'jade hat')
shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1,'krimhorn helmet')
shopModule:addSellableItem({'leather helmet'}, 2461, 4, 1,'leather helmet')
shopModule:addSellableItem({'lightning headband'}, 7889, 2500, 1,'lightning headband')
shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1,'magma monocle')
shopModule:addSellableItem({'mystic turban'}, 2663, 150, 1,'mystic turban')
shopModule:addSellableItem({'pair of earmuffs'}, 7459, 1500, 1,'pair of earmuffs')
shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1,'ragnir helmet')
shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 1,'royal helmet')
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({'terra hood'}, 7903, 2500, 1,'terra hood')
shopModule:addSellableItem({'tribal mask'}, 3967, 250, 1,'tribal mask')
shopModule:addSellableItem({'viking helmet'}, 2473, 66, 1.'viking helmet')
shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 1,'warrior helmet')
shopModule:addSellableItem({'zaoan helmet'}, 11302, 45000, 1,'zaoan helmet')


Armors
Code: Select allshopModule: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: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({'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({'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({'ethno coat'}, 8892, 200, 1,'ethno coat')
shopModule:addSellableItem({'flower dress'}, 9929, 1000, 1,'flower dress')
shopModule:addSellableItem({'focus cape'}, 8871, 6000, 1,'focus cape')
shopModule:addSellableItem({'glacier robe'}, 7897, 11000, 1,'glacier robe')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 1,'golden armor')
shopModule:addSellableItem({'hibiscus dress'}, 8873, 3000, 1,'hibiscus dress')
shopModule:addSellableItem({'jacket'}, 2650, 1, 1,'jacket')
shopModule:addSellableItem({'knight armor'}, 2476, 5000, 1,'knight armor')
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({'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({'noble armor'}, 2486, 900, 1,'noble armor')
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({'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({'terra mantle'}, 7884, 11000, 1,'terra mantle')
shopModule:addSellableItem({'swamplair armor'}, 8880, 16000, 1,'swamplair armor')
shopModule:addSellableItem({'zaoan armor'}, 11301, 14000, 1,'zaoan armor')
shopModule:addSellableItem({'zaoan robe'}, 11356, 12000, 1,'zaoan robe')
shopModule:addSellableItem({'elite draken mail'}, 12607, 50000, 1,'elite draken mail')


Legs
Code: Select allshopModule: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:addSellableItem({'bast skirt'}, 3983, 750, 1,'bast skirt')
shopModule:addSellableItem({'brass legs'}, 2478, 49, 1,'brass legs')
shopModule:addSellableItem({'chain legs'}, 2648, 25, 1,'chain legs')
shopModule:addSellableItem({'crown legs'}, 2488, 12000, 1,'crown legs')
shopModule:addSellableItem({'glacier kilt'}, 7896, 11000, 1,'glacier kilt')
shopModule:addSellableItem({'golden legs'}, 2470, 30000, 1,'golden legs')
shopModule:addSellableItem({'knight legs'}, 2477, 5000, 1,'knight legs')
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({'magma legs'}, 7894, 11000, 1,'magma legs')
shopModule:addSellableItem({'mammoth fur shorts'}, 7464, 850, 1,'mammoth fur shorts')
shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 1,'pirate knee breeches')
shopModule:addSellableItem({'plate legs'}, 2647, 115, 1,'plate legs')
shopModule:addSellableItem({'studded legs'}, 2468, 15, 1,'studded legs')
shopModule:addSellableItem({'terra legs'}, 7885, 11000, 1,'terra legs')
shopModule:addSellableItem({'zaoan legs'}, 11304, 14000, 1,'zaoan legs')


Boots
Code: Select allshopModule:addBuyableItem({'leather boots'}, 2643, 2, 1,'leather boots')

shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 1,'boots of haste')
shopModule:addSellableItem({'coconut shoes'}, 9931, 500, 1,'coconut shoes')
shopModule:addSellableItem({'crocodile boots'}, 3982, 1000, 1,'crocodile boots')
shopModule:addSellableItem({'draken boots'}, 12646, 40000, 1,'draken boots')
shopModule:addSellableItem({'fur boots'}, 7457, 2000, 1,'fur boots')
shopModule:addSellableItem({'glacier shoes'}, 7892, 2500, 1,'glacier shoes')
shopModule:addSellableItem({'guardian boots'}, 11240, 35000, 1,'guardian boots')
shopModule:addSellableItem({'lightning boots'}, 7893, 2500, 1,'lightning boots')
shopModule:addSellableItem({'magma boots'}, 7891, 2500, 1,'magma boots')
shopModule:addSellableItem({'pirate boots'}, 5462, 3000, 1,'pirate boots')
shopModule:addSellableItem({'steel boots'}, 2645, 30000, 1,'steel boots')
shopModule:addSellableItem({'terra boots'}, 7886, 2500, 1,'terra boots')
shopModule:addSellableItem({'zaoan shoes'}, 11303, 5000, 1,'zaoan shoes')


Shields
Code: Select allshopModule: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:addSellableItem({'ancient shield'}, 2532, 900, 1,'ancient shield')
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({'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({'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({'guardian shield'}, 2515, 2000, 1,'guardian shield')
shopModule:addSellableItem({'mastermind shield'}, 2514, 50000, 1,'mastermind shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 1,'medusa shield')
shopModule:addSellableItem({'norse shield'}, 7460, 1500, 1,'norse shield')
shopModule:addSellableItem({'phoenix shield'}, 2539, 16000, 1,'phoenix shield')
shopModule:addSellableItem({'plate shield'}, 2510, 45, 1,'plate shield')
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({'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({'vampire shield'}, 2534, 15000, 1,'vampire shield')
shopModule:addSellableItem({'viking shield'}, 2531, 85, 1,'viking shield')
shopModule:addSellableItem({'wooden shield'}, 2512, 5, 1,'wooden shield')


Spellbooks
Code: Select allshopModule:addBuyableItem({'spellbook'}, 2175, 150, 1,'spellbook')

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')


Axe Weapons
Code: Select allshopModule: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({'zaoan halberd'}, 11323, 1200, 1,'zaoan halberd')

shopModule:addSellableItem({'angelic axe'}, 7436, 5000, 1,'angelic axe')
shopModule:addSellableItem({'axe'}, 2386, 7, 1,'axe')
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({'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({'fire axe'}, 2432, 8000, 1,'fire axe')
shopModule:addSellableItem({'glorious axe'}, 7454, 3000, 1,'glorious axe')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 1,'guardian halberd')
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({'knight axe'}, 7750, 2000, 1,'knight axe')
shopModule:addSellableItem({'naginata'}, 2426, 2000, 1,'naginata')
shopModule:addSellableItem({'noble axe'}, 7456, 10000, 1,'noble axe')
shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 1,'obsidian lance')
shopModule:addSellableItem({'orcish axe'}, 2328, 350, 1,'orcish axe')
shopModule:addSellableItem({'ornamented axe'}, 7411, 20000, 1,'ornamented axe')
shopModule:addSellableItem({'ripper lance'}, 3964, 500, 1,'ripper lance')
shopModule:addSellableItem({'ruthless axe'}, 6553, 45000, 1,'ruthless axe')
shopModule:addSellableItem({'sickle'}, 2405, 3, 1,'sickle')
shopModule:addSellableItem({'titan axe'}, 7413, 4000, 1,'titan axe')
shopModule:addSellableItem({'vile axe'}, 7388, 30000, 1,'vile axe')
shopModule:addSellableItem({'war axe'}, 7753, 12000, 1,'war axe')
shopModule:addSellableItem({'zaoan halberd'}, 11323, 500, 1,'zaoan halberd')


Club Weapons
Code: Select allshopModule: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({'club'}, 2382, 5, 1,'club')
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:addSellableItem({'amber staff'}, 7426, 8000, 1,'amber staff')
shopModule:addSellableItem({'banana staff'}, 3966, 1000, 1,'banana staff')
shopModule:addSellableItem({'battle hammer'}, 2417, 120, 1,'battle hammer')
shopModule:addSellableItem({'bone club'}, 2382, 5, 1,'bone club')
shopModule:addSellableItem({'bonebreaker'}, 7428, 10000, 1,'bonebreaker')
shopModule:addSellableItem({'brutetamer staff'}, 7379, 1500, 1,'brutetamer staff')
shopModule:addSellableItem({'chaos mace'}, 7427, 9000, 1,'chaos mace')
shopModule:addSellableItem({'clerical mace'}, 7754, 170, 1,'clerical mace')
shopModule:addSellableItem({'club'}, 2382, 1, 1,'club')
shopModule:addSellableItem({'cranial basher'}, 7756, 30000, 1,'cranial basher')
shopModule:addSellableItem({'crowbar'}, 2416, 50, 1,'crowbar')
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({'furry club'}, 7432, 1000, 1,'furry club')
shopModule:addSellableItem({'giant smithhammer'}, 2321, 250, 1,'giant smithhammer')
shopModule:addSellableItem({'hammer of wrath'}, 2444, 30000, 1,'hammer of wrath')
shopModule:addSellableItem({'heavy mace'}, 2452, 50000, 1,'heavy mace')
shopModule:addSellableItem({'jade hammer'}, 7422, 25000, 1,'jade hammer')
shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 1,'lunar staff')
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({'onyx flail'}, 7421, 22000, 1,'onyx flail')
shopModule:addSellableItem({'queen sceptre'}, 7410, 20000, 1,'queen sceptre')
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({'taurus mace'}, 7425, 500, 1,'taurus mace')
shopModule:addSellableItem({'war hammer'}, 2391, 1200, 1,'war hammer')


Sword Weapons
Code: Select allshopModule: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:addSellableItem({'assassin dagger'}, 7404, 20000, 1,'assassin dagger')
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({'carlin sword'}, 2395, 118, 1,'carlin sword')
shopModule:addSellableItem({'crystal sword'}, 7449, 600, 1,'crystal sword')
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({'epee'}, 2438, 8000, 1,'epee')
shopModule:addSellableItem({'fire sword'}, 2392, 4000, 1,'fire sword')
shopModule:addSellableItem({'giant sword'}, 2393, 17000, 1,'giant sword')
shopModule:addSellableItem({'haunted blade'}, 7407, 8000, 1,'haunted blade')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 1,'heavy machete')
shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 1,'ice rapier')
shopModule:addSellableItem({'katana'}, 2412, 35, 1,'katana')
shopModule:addSellableItem({'longsword'}, 2397, 51, 1,'longsword')
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({'nightmare blade'}, 7418, 35000, 1,'nightmare blade')
shopModule:addSellableItem({'pharoah sword'}, 2446, 23000, 1,'pharoah sword')
shopModule:addSellableItem({'poison dagger'}, 2411, 50, 1,'poison dagger')
shopModule:addSellableItem({'rapier'}, 2384, 5, 1,'rapier')
shopModule:addSellableItem({'relic sword'}, 7383, 25000, 1,'relic sword')
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({'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({'wyvern fang'}, 7408, 1500, 1,'wyvern fang')
shopModule:addSellableItem({'zaoan sword'}, 11307, 30000, 1,'zaoan sword')


Rods
Code: Select allshopModule:addBuyableItem({'hailstorm'}, 2183, 15000, 1,'hailstorm rod')
shopModule:addBuyableItem({'moonlight'}, 2186, 1000, 1,'moonlight rod')
shopModule:addBuyableItem({'necrotic'}, 2185, 5000, 1,'necrotic rod')
shopModule:addBuyableItem({'northwind'}, 8911, 7500, 1,'northwind rod')
shopModule:addBuyableItem({'snakebite'}, 2182, 500, 1,'snakebite rod')
shopModule:addBuyableItem({'springsprout'}, 8912, 18000, 1,'springsprout rod')
shopModule:addBuyableItem({'terra'}, 2181, 10000, 1,'terra rod')
shopModule:addBuyableItem({'underworld'}, 8910, 22000, 1,'underworld rod')

shopModule:addSellableItem({'hailstorm'}, 2183, 3000, 1,'hailstorm rod')
shopModule:addSellableItem({'moonlight'}, 2186, 200, 1,'moonlight rod')
shopModule:addSellableItem({'necrotic'}, 2185, 1000, 1,'necrotic rod')
shopModule:addSellableItem({'northwind'}, 8911, 1500, 1,'northwind rod')
shopModule:addSellableItem({'snakebite'}, 2182, 100, 1,'snakebite rod')
shopModule:addSellableItem({'springsprout'}, 8912, 3600, 1,'springsprout rod')
shopModule:addSellableItem({'terra'}, 2181, 2000, 1,'terra rod')
shopModule:addSellableItem({'underworld'}, 8910, 4400, 1,'underworld rod')


Wands
Code: Select allshopModule:addBuyableItem({'cosmic energy'}, 2189, 10000, 1,'wand of cosmic energy')
shopModule:addBuyableItem({'decay'}, 2188, 5000, 1,'wand of decay')
shopModule:addBuyableItem({'draconia'}, 8921, 7500, 1,'wand of draconia')
shopModule:addBuyableItem({'dragonbreath'}, 2191, 1000, 1,'wand of dragonbreath')
shopModule:addBuyableItem({'inferno'}, 2187, 15000, 1,'wand of inferno')
shopModule:addBuyableItem({'starstorm'}, 8920, 18000, 1,'wand of starstorm')
shopModule:addBuyableItem({'voodoo'}, 8922, 22000, 1,'wand of voodoo')
shopModule:addBuyableItem({'vortex'}, 2190, 500, 1,'wand of vortex')

shopModule:addSellableItem({'cosmic energy'}, 2189, 2000, 1,'wand of cosmic energy')
shopModule:addSellableItem({'decay'}, 2188, 1000, 1,'wand of decay')
shopModule:addSellableItem({'draconia'}, 8921, 1500, 1,'wand of draconia')
shopModule:addSellableItem({'dragonbreath'}, 2191, 200, 1,'wand of dragonbreath')
shopModule:addSellableItem({'inferno'}, 2187, 3000, 1,'wand of inferno')
shopModule:addSellableItem({'starstorm'}, 8920, 3600, 1,'wand of starstorm')
shopModule:addSellableItem({'voodoo'}, 8922, 4400, 1,'wand of voodoo')
shopModule:addSellableItem({'vortex'}, 2190, 100, 1,'wand of vortex')


Fletcher
Code: Select allshopModule: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, 9, 1,'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({'bow'}, 2456, 100, 1,'bow')
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({'hunting spear'}, 3965, 25, 1,'hunting spear')
shopModule:addSellableItem({'spear'}, 2389, 3, 1,'spear')
shopModule:addSellableItem({'throwing knife'}, 2410, 2, 1,'throwing knife')

More items will follow fast!

Musical Instruments
Code: Select allshopModule:addBuyableItem({'didgeridoo'}, 3952, 5000, 1,'didgeridoo')
shopModule:addBuyableItem({'drum'}, 2073, 140, 1,'drum')
shopModule:addBuyableItem({'harp'}, 2084, 50, 1,'harp')
shopModule:addBuyableItem({'lute'}, 2370, 195, 1,'lute')
shopModule:addBuyableItem({'lyre'}, 2372, 120, 1,'lyre')
shopModule:addBuyableItem({'party trumpet'}, 6572, 80, 1,'party trumpet')
shopModule:addBuyableItem({'piano'}, 2080, 200, 1,'piano')
shopModule:addBuyableItem({'simple fanfare'}, 2075, 150, 1,'simple fanfare')
shopModule:addBuyableItem({'war drum'}, 3953, 1000, 1,'war drum')

shopModule:addSellableItem({'war horn'}, 2079, 8000, 1,'war horn')


Containers
Code: Select allshopModule:addBuyableItem({'armor rack'}, 6115, 90, 1,'armor rack')
shopModule:addBuyableItem({'brown backpack'}, 1988, 20, 1,'brown backpack')
shopModule:addBuyableItem({'beach backpack'}, 5949, 20, 1,'beach backpack')
shopModule:addBuyableItem({'blue backpack'}, 2002, 20, 1,'blue backpack')
shopModule:addBuyableItem({'brocade backpack'}, 9774, 20, 1,'brocade backpack')
shopModule:addBuyableItem({'camouflage backpack'}, 3940, 20, 1,'camouflage backpack')
shopModule:addBuyableItem({'crown backpack'}, 10522, 800, 1,'crown backpack')
shopModule:addBuyableItem({'demon backpack'}, 10518, 1000, 1,'demon backpack')
shopModule:addBuyableItem({'dragon backpack'}, 11243, 200, 1,'dragon backpack')
shopModule:addBuyableItem({'expedition backpack'}, 11241, 100, 1,'expedition backpack')
shopModule:addBuyableItem({'fur backpack'}, 7342, 20, 1,'fur backpack')
shopModule:addBuyableItem({'golden backpack'}, 2004, 20, 1,'golden backpack')
shopModule:addBuyableItem({'green backpack'}, 1998, 20, 1,'green backpack')]
shopModule:addBuyableItem({'grey backpack'}, 2003, 20, 1,'grey backpack')
shopModule:addBuyableItem({'hearth backpack'}, 11119, 500, 1,'hearth backpack')
shopModule:addBuyableItem({'minotaur backpack'}, 11244, 200, 1,'minotaur backpack')
shopModule:addBuyableItem({'orange backpack'}, 10519, 20, 1,'orange backpack')
shopModule:addBuyableItem({'purple backpack'}, 2001, 20, 1,'purple backpack')
shopModule:addBuyableItem({'red backpack'}, 2000, 20, 1,'red backpack')
shopModule:addBuyableItem({'yellow backpack'}, 1999, 20, 1,'yellow backpack')


Trophies
Code: Select allshopModule:addSellableItem({'behemoth trophy'}, 7396, 20000, 1,'behemoth trophy')
shopModule:addSellableItem({'cyclops trophy'}, 7398, 500, 1,'cyclops trophy')
shopModule:addSellableItem({'deer trophy'}, 7397, 3000, 1,'deer trophy')
shopModule:addSellableItem({'demon trophy'}, 7393, 4000, 1,'demon trophy')
shopModule:addSellableItem({'disgusting trophy'}, 11338, 3000, 1,'disgusting trophy')
shopModule:addSellableItem({'dragon lord trophy'}, 7399, 10000, 1,'dragon lord trophy')
shopModule:addSellableItem({'lion trophy'}, 7400, 3000, 1,'lion trophy')
shopModule:addSellableItem({'lizard trophy'}, 11336, 8000, 1,'lizard trophy')
shopModule:addSellableItem({'minotaur trophy'}, 7401, 500, 1,'minotaur trophy')
shopModule:addSellableItem({'wolf trophy'}, 7394, 3000, 1,'wolf trophy')


Dolls
Code: Select allshopModule:addBuyableItem({'toy mouse'}, 7487,16000 , 1,'toy mouse')

shopModule:addSellableItem({'doll'}, 2110, 200, 1,'doll')
shopModule:addSellableItem({'pirate voodoo doll'}, 5810, 500, 1,'pirate voodoo doll')
shopModule:addSellableItem({'voodoo doll'}, 3955, 400, 1,'voodoo doll')


Documents and Papers
Code: Select allshopModule:addBuyableItem({'blank poetry parchment'}, 7528, 60, 1,'blank poetry parchment')
shopModule:addBuyableItem({'christmas card'}, 6388, 10, 1,'christmas card')
shopModule:addBuyableItem({'document'}, 1952, 12, 1,'document')
shopModule:addBuyableItem({'label'}, 2599, 1, 1,'label')
shopModule:addBuyableItem({'letter'}, 2597, 8, 1,'letter')
shopModule:addBuyableItem({'blank poetry parchment'}, 7528, 60, 1,'blank poetry parchment ')
shopModule:addBuyableItem({'grey parchment'}, 1948, 8, 1,'grey parchment')
shopModule:addBuyableItem({'yellow parchment'}, 1951, 8, 1,'yellow parchment')
shopModule:addBuyableItem({'scroll'}, 1949, 5, 1,'scroll')
shopModule:addBuyableItem({'valentine\'s card'}, 6538, 30, 1,'valentine\'s card')


Plants and Herbs
Code: Select allshopModule:addBuyableItem({'bowl of evergreen flowers'}, 9679, 150, 1,'bowl of evergreen flower')
shopModule:addBuyableItem({'exotic flowers'}, 2170, 300, 1,'exotic flowers')
shopModule:addBuyableItem({'flower bouquet'}, 7733, 500, 1,'flower bouquet')
shopModule:addBuyableItem({'indoor plant'}, 3931, 8,'indoor plant')
shopModule:addBuyableItem({'potted flower'}, 2104, 5,'potted flower')
shopModule:addBuyableItem({'honey flower'}, 2103, 5,'honey flower')
shopModule:addBuyableItem({'god flowers'}, 2100, 5,'god flowers')
shopModule:addBuyableItem({'flower bowl'}, 2102, 6,'flower bowl')
shopModule:addBuyableItem({'hydra tongue'}, 7250, 100, 1,'hydra tongue')
shopModule:addBuyableItem({'orange star'}, 2759, 50, 1,'orange star')
shopModule:addBuyableItem({'red rose'}, 2744, 11, 1,'red rose')
shopModule:addBuyableItem({'tulip'}, 2750, 9, 1,'tulip')

shopModule:addSellableItem({'blood herb'}, 2798, 500, 1,'blood herb')
shopModule:addSellableItem({'grave flower'}, 2747, 25, 1,'grave flower')
#36975 by Sentiello
Tue 25 Feb 2014, 19:33
Creature products:
Code: Select all
shopModule:addBuyableItem({'Fire Bug'}, 5468, 100, 1)
shopModule:addBuyableItem({'Goat Grass'}, 2760, 50, 1)
shopModule:addBuyableItem({'Blood Herb'}, 2798, 500, 1)
shopModule:addBuyableItem({'Rust Remover'}, 9930, 50, 1)


--player sells shop buys
shopModule:addSellableItem({'Acorn'}, 11213, 10, 1)
shopModule:addSellableItem({'Ancient Stone'}, 10549, 200, 1)
shopModule:addSellableItem({'Antlers'}, 11214, 50, 1)
shopModule:addSellableItem({'Ape Fur'}, 5883, 120, 1)
shopModule:addSellableItem({'Badger Fur'}, 11216, 15, 1)
shopModule:addSellableItem({'Bat Wing'}, 5894, 50, 1)
shopModule:addSellableItem({'Bamboo Stick'}, 12401, 30, 1)
shopModule:addSellableItem({'Banana Sash'}, 12467, 55, 1)
shopModule:addSellableItem({'Battle Stone'}, 12403, 290, 1)
shopModule:addSellableItem({'Bear Paw'}, 5896, 100, 1)
shopModule:addSellableItem({'Behemoth Claw'}, 5930, 2000, 1)
shopModule:addSellableItem({'Beholder Eye'}, 5898, 80, 1)
shopModule:addSellableItem({'Black Hood'}, 10562, 190, 1)
shopModule:addSellableItem({'Black Wool'}, 12404, 300, 1)
shopModule:addSellableItem({'Blood Preservation'}, 12405, 320, 1)
shopModule:addSellableItem({'Bloody Pincers'}, 10550, 100, 1)
shopModule:addSellableItem({'Boggy Dreads'}, 10584, 200, 1)
shopModule:addSellableItem({'Bone Shoulderplate'}, 11321, 150, 1)
shopModule:addSellableItem({'Bony Tail'}, 11194, 210, 1)
shopModule:addSellableItem({'Book of Necromantic Rituals'}, 11237, 180, 1)
shopModule:addSellableItem({'Book of Prayers'}, 10563, 120, 1)
shopModule:addSellableItem({'Brimstone Fangs'}, 12619, 350, 1)
shopModule:addSellableItem({'Brimstone Shell'}, 12658, 210, 1)
shopModule:addSellableItem({'Broken Crossbow'}, 12407, 30, 1)
shopModule:addSellableItem({'Broken Draken Mail'}, 12616, 350, 1)
shopModule:addSellableItem({'Broken Gladiator Shield'}, 10573, 180, 1)
shopModule:addSellableItem({'Broken Halberd'}, 11335, 100, 1)
shopModule:addSellableItem({'Broken Helmet'}, 12409, 20, 1)
shopModule:addSellableItem({'Broken Key Ring'}, 12608, 8000, 1)
shopModule:addSellableItem({'Broken Shamanic Staff'}, 12408, 35, 1)
shopModule:addSellableItem({'Broken Slicer'}, 12617, 120, 1)
shopModule:addSellableItem({'Bunch of Troll Hair'}, 10605, 30, 1)
shopModule:addSellableItem({'Bundle of Cursed Straw'}, 10606, 800, 1)
shopModule:addSellableItem({'Carniphila Seeds'}, 11217, 50, 1)
shopModule:addSellableItem({'Carrion Worm Fang'}, 11186, 35, 1)
shopModule:addSellableItem({'Centipede Leg'}, 11192, 28, 1)
shopModule:addSellableItem({'Chicken Feather'}, 5890, 30, 1)
shopModule:addSellableItem({'Cobra Tongue'}, 10551, 15, 1)
shopModule:addSellableItem({'Colourful Feather'}, 12470, 110. 1)
shopModule:addSellableItem({'Compass'}, 11219, 45, 1)
shopModule:addSellableItem({'Corrupted Flag'}, 11326, 700, 1)
shopModule:addSellableItem({'Crab Pincers'}, 11189, 35, 1)
shopModule:addSellableItem({'Cultish Mask'}, 10555, 280, 1)
shopModule:addSellableItem({'Cultish Robe'}, 10556, 150, 1)
shopModule:addSellableItem({'Cultish Symbol'}, 12411, 500, 1)
shopModule:addSellableItem({'Cursed Shoulder Spikes'}, 11327, 320, 1)
shopModule:addSellableItem({'Cyclops Toe'}, 10574, 55, 1)
shopModule:addSellableItem({'Dark Rosary'}, 11220, 48, 1)
shopModule:addSellableItem({'Demon Dust'}, 5906, 300, 1)
shopModule:addSellableItem({'Demon Horn'}, 5954, 1000, 1)
shopModule:addSellableItem({'Demonic Skeletal Hand'}, 10564, 80, 1)
shopModule:addSellableItem({'Dirty Turban'}, 12373, 120, 1)
shopModule:addSellableItem({'Downy Feather'}, 12412, 20, 1)
shopModule:addSellableItem({'Dragon Claw'}, 10020, 8000, 1)
shopModule:addSellableItem({'Dragon Priest\'s Wandtip'}, 11361, 175, 1)
shopModule:addSellableItem({'Dragon Tail'}, 12413, 100, 1)
shopModule:addSellableItem({'Draken Sulphur'}, 12614, 550, 1)
shopModule:addSellableItem({'Draken Wristbands'}, 12615, 430, 1)
shopModule:addSellableItem({'Elder Bonelord Tentacle'}, 11193, 150, 1)
shopModule:addSellableItem({'Elven Astral Observer'}, 12421, 90, 1)
shopModule:addSellableItem({'Elven Scouting Glass'}, 12420, 50, 1)
shopModule:addSellableItem({'Elvish Talisman'}, 10552, 45, 1)
shopModule:addSellableItem({'Essence of a Bad Dream'}, 11223, 360, 1)
shopModule:addSellableItem({'Eye of Corruption'}, 12627, 390, 1)
shopModule:addSellableItem({'ferumbras hat'}, 5903, 50000, 1)
shopModule:addSellableItem({'Fiery Heart'}, 10553, 375, 1)
shopModule:addSellableItem({'Fish Fin'}, 5895, 150, 1)
shopModule:addSellableItem({'Flask of Embalming Fluid'}, 12422, 30, 1)
shopModule:addSellableItem({'Frost Giant Pelt'}, 10575, 160, 1)
shopModule:addSellableItem({'Frosty Ear of a Troll'}, 10565, 30, 1)
shopModule:addSellableItem({'Frosty Heart'}, 10578, 280, 1)
shopModule:addSellableItem({'Gauze Bandage'}, 10566, 90, 1)
shopModule:addSellableItem({'Gear Crystal'}, 10572, 200, 1)
shopModule:addSellableItem({'Geomancer\'s Robe'}, 12414, 80, 1)
shopModule:addSellableItem({'Geomancer\'s Staff'}, 12419, 120, 1)
shopModule:addSellableItem({'Ghastly Dragon Head'}, 11366, 700, 1)
shopModule:addSellableItem({'Ghostly Tissue'}, 10607, 90, 1)
shopModule:addSellableItem({'Ghoul Snack'}, 12423, 60, 1)
shopModule:addSellableItem({'Giant Eye'}, 11197, 380, 1)
shopModule:addSellableItem({'Girlish Hair Decoration'}, 12399, 30, 1)
shopModule:addSellableItem({'Glob of Acid Slime'}, 9967, 25, 1)
shopModule:addSellableItem({'Glob of Mercury'}, 9966, 20, 1)
shopModule:addSellableItem({'Glob of Tar'}, 9968, 30, 1)
shopModule:addSellableItem({'Goblin Ear'}, 12472, 20, 1)
shopModule:addSellableItem({'Green Dragon Leather'}, 5877, 100, 1)
shopModule:addSellableItem({'Green Dragon Scale'}, 5920, 100, 1)
shopModule:addSellableItem({'Hair of a Banshee'}, 12402, 350, 1)
shopModule:addSellableItem({'Half-Digested Piece of Meat'}, 11200, 55, 1)
shopModule:addSellableItem({'Half-Eaten Brain'}, 10576, 85, 1)
shopModule:addSellableItem({'Hardened Bone'}, 5925, 70, 1)
shopModule:addSellableItem({'Haunted Piece of Wood'}, 10600, 115, 1)
shopModule:addSellableItem({'Hellhound Slobber'}, 10554, 500, 1)
shopModule:addSellableItem({'Hellspawn Tail'}, 11221, 475, 1)
shopModule:addSellableItem({'High Guard Flag'}, 11332, 550, 1)
shopModule:addSellableItem({'High Guard Shoulderplates'}, 11333, 130, 1)
shopModule:addSellableItem({'Honeycomb'}, 5902, 40, 1)
shopModule:addSellableItem({'Hunter\'s Quiver'}, 12425, 80, 1)
shopModule:addSellableItem({'Hydra Egg'}, 4850, 500, 1)
shopModule:addSellableItem({'Hydra Head'}, 11199, 600, 1)
shopModule:addSellableItem({'Jewelled Belt'}, 12426, 180, 1)
shopModule:addSellableItem({'Kongra\'s Shoulderpad'}, 12427, 100, 1)
shopModule:addSellableItem({'Lancer Beetle Shell'}, 11372, 80, 1)
shopModule:addSellableItem({'Legionnaire Flags'}, 11334, 500, 1)
shopModule:addSellableItem({'Lion\'s Mane'}, 10608, 60, 1)
shopModule:addSellableItem({'Lizard Essence'}, 12636, 300, 1)
shopModule:addSellableItem({'Lizard Leather'}, 5876, 150, 1)
shopModule:addSellableItem({'Lizard Scale'}, 5881, 120, 1)
shopModule:addSellableItem({'Luminous Orb'}, 12410, 1000, 1)
shopModule:addSellableItem({'Lump of Dirt'}, 10609, 10, 1)
shopModule:addSellableItem({'Lump of Earth'}, 11222, 130, 1)
shopModule:addSellableItem({'Mammoth Tusk'}, 11238, 100, 1)
shopModule:addSellableItem({'Mantassin Tail'}, 12445, 28, 1)
shopModule:addSellableItem({'Metal Spike'}, 11215, 320, 1)
shopModule:addSellableItem({'Minotaur Horn'}, 12428, 75, 1)
shopModule:addSellableItem({'Minotaur Leather'}, 5878, 80, 1)
shopModule:addSellableItem({'Miraculum'}, 12430, 60, 1)
shopModule:addSellableItem({'Morgaroth\'s Heart'}, 5943, 15000, 1)
shopModule:addSellableItem({'Mutated Bat Ear'}, 10579, 420, 1)
shopModule:addSellableItem({'Mutated Flesh'}, 11225, 50, 1)
shopModule:addSellableItem({'Mutated Rat Tail'}, 10585, 150, 1)
shopModule:addSellableItem({'Mystical Hourglass'}, 10577, 700, 1)
shopModule:addSellableItem({'Necromantic Robe'}, 12431, 250, 1)
shopModule:addSellableItem({'Nettle Blossom'}, 11231, 75, 1)
shopModule:addSellableItem({'Noble Turban'}, 12442, 430, 1)
shopModule:addSellableItem({'Orc Leather'}, 12435, 30, 1)
shopModule:addSellableItem({'Orc Tooth'}, 11113, 150, 1)
shopModule:addSellableItem({'Orcish Gear'}, 12433, 85, 1)
shopModule:addSellableItem({'Orshabaal\'s Brain'}, 5808, 12000, 1)
shopModule:addSellableItem({'Pelvis Bone'}, 12437, 30, 1)
shopModule:addSellableItem({'Perfect Behemoth Fang'}, 5893, 250, 1)
shopModule:addSellableItem({'Petrified Scream'}, 11337, 250, 1)
shopModule:addSellableItem({'Piece of Archer Armor'}, 12439, 20, 1)
shopModule:addSellableItem({'Piece of Crocodile Leather'}, 11196, 15, 1)
shopModule:addSellableItem({'Piece of Dead Brain'}, 10580, 420, 1)
shopModule:addSellableItem({'Piece of Hellfire Armor'}, 10581, 550, 1)
shopModule:addSellableItem({'Piece of Scarab Shell'}, 10558, 45, 1)
shopModule:addSellableItem({'Piece of Warrior Armor'}, 12438, 50, 1)
shopModule:addSellableItem({'Pig Foot'}, 10610, 10, 1)
shopModule:addSellableItem({'Pile of Grave Earth'}, 12440, 25, 1)
shopModule:addSellableItem({'Poison Spider Shell'}, 12441, 10, 1)
shopModule:addSellableItem({'Poisonous Slime'}, 10557, 50, 1)
shopModule:addSellableItem({'Polar Bear Paw'}, 10567, 30, 1)
shopModule:addSellableItem({'Protective Charm'}, 12400, 60, 1)
shopModule:addSellableItem({'Purple Robe'}, 12429, 110, 1)
shopModule:addSellableItem({'Quara Bone'}, 12447, 500, 1)
shopModule:addSellableItem({'Quara Eye'}, 12444, 350, 1)
shopModule:addSellableItem({'Quara Pincers'}, 12446, 410, 1)
shopModule:addSellableItem({'Quara Tentacle'}, 12443, 140, 1)
shopModule:addSellableItem({'Red Dragon Leather'}, 5948, 200, 1)
shopModule:addSellableItem({'Red Dragon Scale'}, 5882, 200, 1)
shopModule:addSellableItem({'Rope Belt'}, 12448, 66, 1)
shopModule:addSellableItem({'Rotten Piece of Cloth'}, 11208, 30, 1)
shopModule:addSellableItem({'Sabretooth'}, 11228, 400, 1)
shopModule:addSellableItem({'Safety Pin'}, 12459, 120, 1)
shopModule:addSellableItem({'Sandcrawler Shell'}, 11373, 20, 1)
shopModule:addSellableItem({'Scale of Corruption'}, 12629, 680, 1)
shopModule:addSellableItem({'Scarab Pincers'}, 10548, 280, 1)
shopModule:addSellableItem({'Scorpion Tail'}, 10568, 25, 1)
shopModule:addSellableItem({'Scroll of Heroic Deeds'}, 12466, 230, 1)
shopModule:addSellableItem({'Scythe Leg'}, 11229, 450, 1)
shopModule:addSellableItem({'Sea Serpent Scale'}, 10583, 520, 1)
shopModule:addSellableItem({'Shaggy Tail'}, 11324, 25, 1)
shopModule:addSellableItem({'Shamanic Hood'}, 12434, 45, 1)
shopModule:addSellableItem({'Shard'}, 7290, 2000, 1)
shopModule:addSellableItem({'Shiny Stone'}, 11227, 500, 1)
shopModule:addSellableItem({'Silky Fur'}, 11209, 35, 1)
shopModule:addSellableItem({'Skull Belt'}, 12436, 80, 1)
shopModule:addSellableItem({'Skunk Tail'}, 11191, 50, 1)
shopModule:addSellableItem({'Small Flask of Eyedrops'}, 12468, 95, 1)
shopModule:addSellableItem({'Small Notebook'}, 12406, 480, 1)
shopModule:addSellableItem({'Small Pitchfork'}, 12469, 70, 1)
shopModule:addSellableItem({'Snake Skin'}, 10611, 400, 1)
shopModule:addSellableItem({'Spider Fangs'}, 8859, 10, 1)
shopModule:addSellableItem({'Spider Silk'}, 5879, 100, 1)
shopModule:addSellableItem({'Spiked Iron Ball'}, 11325, 100, 1)
shopModule:addSellableItem({'Spooky Blue Eye'}, 10559, 95, 1)
shopModule:addSellableItem({'Stone Wing'}, 11195, 120, 1)
shopModule:addSellableItem({'Strand of Medusa Hair'}, 11226, 600, 1)
shopModule:addSellableItem({'Striped Fur'}, 11210, 50, 1)
shopModule:addSellableItem({'Sulphurous Stone'}, 11232, 100, 1)
shopModule:addSellableItem({'Swamp Grass'}, 10603, 20, 1)
shopModule:addSellableItem({'Tail of Corruption'}, 12628, 240, 1)
shopModule:addSellableItem({'Tarantula Egg'}, 11198, 80, 1)
shopModule:addSellableItem({'Tattered Piece of Robe'}, 10601, 120, 1)
shopModule:addSellableItem({'Tentacle Piece'}, 12622, 5000, 1)
shopModule:addSellableItem({'Terramite Legs'}, 11371, 60, 1)
shopModule:addSellableItem({'Terramite Shell'}, 11369, 170, 1)
shopModule:addSellableItem({'Terrorbird Beak'}, 11190, 950, 1)
shopModule:addSellableItem({'Thick Fur'}, 11224, 150, 1)
shopModule:addSellableItem({'Thorn'}, 10560, 100, 1)
shopModule:addSellableItem({'Trollroot'}, 12471, 50, 1)
shopModule:addSellableItem({'Turtle Shell'}, 5899, 90, 1)
shopModule:addSellableItem({'Tusk'}, 8614, 100, 1)
shopModule:addSellableItem({'Undead Heart'}, 11367, 200, 1)
shopModule:addSellableItem({'Unholy Bone'}, 11233, 480, 1)
shopModule:addSellableItem({'Vampire Dust'}, 5905, 100, 1)
shopModule:addSellableItem({'Vampire Teeth'}, 10602, 275, 1)
shopModule:addSellableItem({'War Crystal'}, 10571, 460, 1)
shopModule:addSellableItem({'Warmaster\'s Wristguards'}, 11322, 200, 1)
shopModule:addSellableItem({'Warwolf Fur'}, 11235, 30, 1)
shopModule:addSellableItem({'Weaver\'s Wandtip'}, 11314, 250, 1)
shopModule:addSellableItem({'Werewolf Fur'}, 11228, 380, 1)
shopModule:addSellableItem({'Widow\'s Mandibles'}, 11328, 110, 1)
shopModule:addSellableItem({'Winged Tail'}, 11230, 800, 1)
shopModule:addSellableItem({'Winter Wolf Fur'}, 11212, 20, 1)
shopModule:addSellableItem({'Witch Broom'}, 10569, 60, 1)
shopModule:addSellableItem({'Wolf Paw'}, 5897, 70, 1)
shopModule:addSellableItem({'Wool'}, 11236, 15, 1)
shopModule:addSellableItem({'Wyrm Scale'}, 10582, 400, 1)
shopModule:addSellableItem({'Wyvern Talisman'}, 10561, 265, 1)
shopModule:addSellableItem({'Zaogun Flag'}, 11330, 600, 1)
shopModule:addSellableItem({'Zaogun\'s Shoulderplates'}, 11331, 150, 1)


Liquids:
Code: Select allshopModule:addBuyableItem({'flask of rust remover'}, 9930, 50, 1,'flask of rust remover')
shopModule:addBuyableItem({'great health potion'}, 7591, 190, 1,'great health potion')
shopModule:addBuyableItem({'great mana potion'}, 7590, 120, 1,'great mana potion')
shopModule:addBuyableItem({'great spirit potion'}, 8472, 190, 1,'great spirit potion')
shopModule:addBuyableItem({'health potion'}, 7618, 45, 1,'health potion')
shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1,'mana potion')
shopModule:addBuyableItem({'strong health potion'}, 7588, 100, 1,'strong health potion')
shopModule:addBuyableItem({'strong mana potion'}, 7589, 80, 1,'strong mana potion')
shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1,'ultimate health potion')
 
shopModule:addSellableItem({'berserk potion'}, 7439, 500,'berserk potion')
shopModule:addSellableItem({'bullseye potion'}, 7443, 500,'bullseye potion')
shopModule:addSellableItem({'mastermind potion'}, 7440, 500,'mastermind potion')
 
shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5,'empty small potion flask')
shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 5,'empty strong potion flask')
shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 5,'empty great potion flask')


Runes
Code: Select allshopModule:addBuyableItem({'animate dead'}, 2316, 375, 1, 'animate dead rune')
shopModule:addBuyableItem({'avalanche'}, 2274, 45, 1, 'avalanche rune')
shopModule:addBuyableItem({'blank rune'}, 2260, 10, 1, 'blank rune')
shopModule:addBuyableItem({'chameleon'}, 2291, 210, 1, 'chameleon rune')
shopModule:addBuyableItem({'convince creature'}, 2290, 80, 1, 'convince creature rune')
shopModule:addBuyableItem({'cure poison'}, 2266, 65, 1,'cure posoison rune')
shopModule:addBuyableItem({'desintegrate'}, 2310, 26, 1, 'desintegrate rune')
shopModule:addBuyableItem({'destroy field'}, 2261, 15, 1, 'destroy field')
shopModule:addBuyableItem({'energy bomb'}, 2262, 162, 1, 'energy bomb rune')
shopModule:addBuyableItem({'energy field'}, 2277, 38, 1, 'energy field')
shopModule:addBuyableItem({'energy wall'}, 2279, 85, 1, 'energy wall rune')
shopModule:addBuyableItem({'explosion'}, 2313, 31, 1, 'explosion rune')
shopModule:addBuyableItem({'fire bomb'}, 2305, 117, 1, 'fire bomb rune')
shopModule:addBuyableItem({'fire field'}, 2301, 28, 1, 'fire field rune')
shopModule:addBuyableItem({'fire wall'}, 2303, 61, 1, 'fire wall rune')
shopModule:addBuyableItem({'fireball'}, 2302, 30, 1, 'fire ball')
shopModule:addBuyableItem({'great fireball'}, 2304, 45, 1, 'great fireball rune')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 12, 1, 'heavy magic missile rune')
shopModule:addBuyableItem({'holy missile missile'}, 2295, 16, 1, 'holy missile rune')
shopModule:addBuyableItem({'icicle'}, 2271, 30, 1, 'icicle rune')
shopModule:addBuyableItem({'intense healing'}, 2265, 95, 1, 'intense healing rune')
shopModule:addBuyableItem({'light magic missile'}, 2287, 4, 1, 'light magic missile rune')
shopModule:addBuyableItem({'magic wall'}, 2293, 116, 1, 'magic wall rune')
shopModule:addBuyableItem({'paralyze'}, 2278, 700, 1, 'paralyze rune')
shopModule:addBuyableItem({'poison bomb'}, 2286, 85, 1, 'poison bomb rune')
shopModule:addBuyableItem({'poison field'}, 2285, 21, 1, 'poison field')
shopModule:addBuyableItem({'poison wall'}, 2289, 52, 1, 'poison wall rune')
shopModule:addBuyableItem({'soulfire'}, 2308, 46, 1, 'soulfire rune')
shopModule:addBuyableItem({'stalagmite'}, 2292, 12, 1, 'stalagmite rune')
shopModule:addBuyableItem({'stone shower'}, 2288, 37, 1, 'stoneshower rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 108, 1, 'sudden death rune')
shopModule:addBuyableItem({'thunderstorm'}, 2315, 37, 1, 'thunderstorm rune')
shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'wild growth'}, 2269, 160, 1, 'wild growth rune')


Food
Code: Select allshopModule:addSellableItem({'meat'}, 2666, 2, 1,'meat')
shopModule:addSellableItem({'salmon'}, 2668, 2, 1,'salmon')
shopModule:addSellableItem({'ham'}, 2671, 4, 1,'ham')
shopModule:addSellableItem({'blueberry'}, 2677, 1, 1,'blueberry')
shopModule:addSellableItem({'cherry'}, 2678, 1, 1,'cherry')
shopModule:addSellableItem({'carrot'}, 2684, 1, 1,'carrot')
shopModule:addSellableItem({'cookie'}, 2687, 1, 1,'cookie')
shopModule:addSellableItem({'bread'}, 2689, 2, 1,'bread')
shopModule:addSellableItem({'egg'}, 2695, 1, 1,'egg')
shopModule:addSellableItem({'green perch'}, 7159, 100, 1,'green perch')
shopModule:addSellableItem({'northern pike'}, 2669, 100, 1,'northern pike')
shopModule:addSellableItem({'rainbow trout'}, 7158, 100, 1,'rainbow trout')
shopModule:addSellableItem({'marlin'}, 7963, 800, 1,'marlin')
shopModule:addSellableItem({'ectoplasmic sushi'}, 12637, 300, 1,'ectoplasmic sushi')
shopModule:addSellableItem({'wood mushroom'}, 2791, 15, 1,'wood mushroom')
shopModule:addSellableItem({'walnut'}, 7909, 80, 1,'walnut')
shopModule:addSellableItem({'green mushroom'}, 2796, 100, 1,'green mushroom')
shopModule:addSellableItem({'dark mushroom'}, 2792, 100, 1,'dark mushroom')
shopModule:addSellableItem({'orange mushroom'}, 2790, 150, 1,'orange mushroom')
shopModule:addSellableItem({'fire mushroom'}, 2795, 200, 1,'fire mushroom')

shopModule:addBuyableItem({'meat'}, 2666, 5, 1,'meat')
shopModule:addBuyableItem({'fish'}, 2667, 5, 1,'fish')
shopModule:addBuyableItem({'salmon'}, 2668, 6, 1,'salmon')
shopModule:addBuyableItem({'ham'}, 2671, 8, 1,'ham')
shopModule:addBuyableItem({'dragon ham'}, 2671, 25, 1,'dragon ham')
shopModule:addBuyableItem({'pear'}, 2673, 5, 1,'pear')
shopModule:addBuyableItem({'red apple'}, 2674, 3, 1,'red apple')
shopModule:addBuyableItem({'orange'}, 2675, 10, 1,'orange')
shopModule:addBuyableItem({'banana'}, 2676, 5, 1,'banana')
shopModule:addBuyableItem({'blueberry'}, 2677, 1, 1,'blueberry')
shopModule:addBuyableItem({'cherry'}, 2678, 1, 1,'cherry')
shopModule:addBuyableItem({'strawberry'}, 2680, 2, 1,'strawberry')
shopModule:addBuyableItem({'grapes'}, 2681, 3, 1,'grapes')
shopModule:addBuyableItem({'melon'}, 2682, 8, 1,'melon')
shopModule:addBuyableItem({'pumpkin'}, 2683, 10, 1,'pumpkin')
shopModule:addBuyableItem({'carrot'}, 2684, 3, 1,'carrot')
shopModule:addBuyableItem({'tomato'}, 2685, 5, 1,'tomato')
shopModule:addBuyableItem({'corncob'}, 2686, 3, 1,'corncob')
shopModule:addBuyableItem({'cookie'}, 2687, 2, 1,'cookie')
shopModule:addBuyableItem({'bread'}, 2689, 4, 1,'bread')
shopModule:addBuyableItem({'roll'}, 2690, 2, 1,'roll')
shopModule:addBuyableItem({'brown bread'}, 2691, 3, 1,'brown bread')
shopModule:addBuyableItem({'egg'}, 2695, 2, 1,'egg')
shopModule:addBuyableItem({'cheese'}, 2696, 6, 1,'cheese')
shopModule:addBuyableItem({'white mushroom'}, 2787, 6, 1,'white mushroom')
shopModule:addBuyableItem({'red mushroom'}, 2788, 12, 1,'red mushroom')
shopModule:addBuyableItem({'brown mushroom'}, 2789, 10, 1,'brown mushroom')
shopModule:addBuyableItem({'mango'}, 5097, 10, 1,'mango')
shopModule:addBuyableItem({'cake'}, 6278, 50, 1,'cake')
shopModule:addBuyableItem({'party cake'}, 6280, 50, 1,'party cake')
shopModule:addBuyableItem({'valentine/s cake'}, 6393, 100, 1,'valentine/s cake')
shopModule:addBuyableItem({'potato'}, 8838, 4, 1,'potato')
shopModule:addBuyableItem({'plum'}, 8839, 3, 1,'plum')
shopModule:addBuyableItem({'raspberry'}, 8840, 1, 1,'raspberry')
shopModule:addBuyableItem({'lemon'}, 8841, 3, 1,'lemon')
shopModule:addBuyableItem({'cucumber'}, 8842, 3, 1,'cucumber')
shopModule:addBuyableItem({'onion'}, 8843, 2, 1,'onion')
shopModule:addBuyableItem({'jalapeno pepper'}, 8844, 2, 1,'jalapeno pepper')
shopModule:addBuyableItem({'beetroot'}, 8845, 2, 1,'beetroot')
shopModule:addBuyableItem({'cauliflower'}, 12418, 4, 1,'cauliflower')
shopModule:addBuyableItem({'broccoli'}, 12417, 3, 1,'broccoli')
shopModule:addBuyableItem({'pineapple'}, 12415, 12, 1,'pineapple')
shopModule:addBuyableItem({'bulb of garlic'}, 9114, 3, 1,'bulb of garlic')
shopModule:addBuyableItem({'beetroot'}, 8845, 2, 1,'beetroot')
shopModule:addBuyableItem({'aubergine'}, 12416, 8, 1,'aubergine')
shopModule:addBuyableItem({'lemon'}, 8841, 3, 1,'lemon')
shopModule:addBuyableItem({'dragonfruit'}, 12638, 5, 1,'dragonfruit')


Amulets and Necklaces
Code: Select allshopModule:addBuyableItem({'Ruby Necklace'}, 2133, 3560, 1'Ruby Necklace')
shopModule:addBuyableItem({'Dragon Necklace'}, 2201, 1000, 1'Dragon Necklace')
shopModule:addBuyableItem({'Garlic Necklace'}, 2199, 100, 1'Garlic Necklace')
shopModule:addBuyableItem({'Golden Amulet'}, 2130, 6600, 1'Golden Amulet')
shopModule:addBuyableItem({'Scarf'}, 2661, 15, 1'Scarf')
shopModule:addBuyableItem({'Amulet of Loss'}, 2173, 50000, 1'Amulet of Loss')
shopModule:addBuyableItem({'Bronze Amulet'}, 2172, 100, 1'Bronze Amulet')
shopModule:addBuyableItem({'Elven amulet'}, 2198, 500, 1'Elven amulet')
shopModule:addBuyableItem({'Protection amulet'}, 2200, 700, 1'Protection amulet')
shopModule:addBuyableItem({'Silver Amulet'}, 2170, 100, 1'Silver Amulet')
shopModule:addBuyableItem({'Stone Skin Amulet'}, 2197, 5000, 1'Stone Skin Amulet')
shopModule:addBuyableItem({'Strange Talisman'}, 2161, 100, 1'Strange Talisman')

shopModule:addSellableItem({'Crystal Necklace'}, 2125, 400, 1'Crystal Necklace')
shopModule:addSellableItem({'Ruby Necklace'}, 2133, 2000, 1'Ruby Necklace')
shopModule:addSellableItem({'Wolf Tooth Chain'}, 2129, 100, 1'Wolf Tooth Chain')
shopModule:addSellableItem({'Wailing Widow/s Necklace'}, 11329, 3000, 1'Wailing Widow/s Necklace')
shopModule:addSellableItem({'Dragon Necklace'}, 2201, 100, 1'Dragon Necklace')
shopModule:addSellableItem({'Garlic Necklace'}, 2199, 50, 1'Garlic Necklace')
shopModule:addSellableItem({'Beetle Necklace'}, 11374, 1500, 1'Beetle Necklace')
shopModule:addSellableItem({'Ancient Amulet'}, 2142, 200, 1'Ancient Amulet')
shopModule:addSellableItem({'Demonbone Amulet'}, 14333, 32000, 1'demonbone Amulet')
shopModule:addSellableItem({'Scarab Amulet'}, 2135, 200, 1'Scarab Amulet')
shopModule:addSellableItem({'Platinum Amulet'}, 2171, 2500, 1'Platinum Amulet')
shopModule:addSellableItem({'Amulet of loss'}, 2173, 45000, 1'Amulet of loss')
shopModule:addSellableItem({'Bronze Amulet'}, 2172, 50, 1'Bronze Amulet')
shopModule:addSellableItem({'Elven amulet'}, 2198, 100, 1'Elven amulet')
shopModule:addSellableItem({'Glacier amulet'}, 7888, 1500, 1'Glacier amulet')
shopModule:addSellableItem({'Leviathan/s amulet'}, 10220, 3000, 1'Leviathan/s amulet')
shopModule:addSellableItem({'Lightning pendant'}, 7889, 1500, 1'Lightning pendant')
shopModule:addSellableItem({'Magma amulet'}, 7890, 1500, 1'Magma amulet')
shopModule:addSellableItem({'Protection amulet'}, 2200, 100, 1'Protection amulet')
shopModule:addSellableItem({'Sacred Tree Amulet'}, 10219, 3000, 1'Sacred Tree Amulet')
shopModule:addSellableItem({'Shockwave Amulet'}, 10221, 3000, 1'Shockwave Amulet')
shopModule:addSellableItem({'Silver Amulet'}, 2170, 50, 1'Silver Amulet')
shopModule:addSellableItem({'Stone Skin Amulet'}, 2197, 500, 1'Stone Skin Amulet')
shopModule:addSellableItem({'Strange Talisman'}, 2161, 30, 1'Strange Talisman')
shopModule:addSellableItem({'Terra Amulet'}, 7887, 1500, 1'Terra Amulet')


Furniture
Code: Select allshopModule:addBuyableItem({'Armor Rack'}, 6115, 90, 1'Armor Rack')
shopModule:addBuyableItem({'Bamboo Drawer'}, 3936, 20, 1'Bamboo Drawer')
shopModule:addBuyableItem({'Barrel'}, 3932, 12, 1'Barrel')
shopModule:addBuyableItem({'Bamboo Table'}, 3919, 25, 1'Bamboo Table')
shopModule:addBuyableItem({'Big Table'}, 3909, 30, 1'Big Table')
shopModule:addBuyableItem({'Birdcage'}, 3922, 50, 1'Birdcage')
shopModule:addBuyableItem({'Blue Bed'}, 7904, 80, 1'Blue Bed')
shopModule:addBuyableItem({'Bookcase'}, 6373, 70, 1'Bookcase')
shopModule:addBuyableItem({'Carved Stone Table'}, 3913, 30, 1'Carved Stone Table')
shopModule:addBuyableItem({'Chimney'}, 8692, 200, 1'Chimney')
shopModule:addBuyableItem({'Christmas Tree'}, 3933, 50, 1'Christmas Tree')
shopModule:addBuyableItem({'Coal Basin'}, 3912, 25, 1'Coal Basin')
shopModule:addBuyableItem({'Crystal Table'}, 9974, 150, 1'Crystal Table')
shopModule:addBuyableItem({'Drawer'}, 3915, 18, 1'Drawer')
shopModule:addBuyableItem({'Dresser'}, 3916, 25, 1'Dresser')
shopModule:addBuyableItem({'Globe'}, 3923, 50, 1'Globe')
shopModule:addBuyableItem({'Green Bed'}, 7905, 80, 1'Green Bed')
shopModule:addBuyableItem({'Green Cushioned Chair'}, 3904, 40, 1'Green Cushioned Chair')
shopModule:addBuyableItem({'Harp'}, 3921, 50, 1'Harp')
shopModule:addBuyableItem({'Indoor Plant'}, 3931, 8, 1'Indoor Plant')
shopModule:addBuyableItem({'Ivory Chair'}, 3906, 25, 1'Ivory Chair')
shopModule:addBuyableItem({'Knight Statue'}, 3927, 50, 1'Knight Statue')
shopModule:addBuyableItem({'Large Amphora'}, 3929, 50, 1'Large Amphora')
shopModule:addBuyableItem({'Lizard Weapon Rack'}, 11126, 500, 1'Lizard Weapon Rack')
shopModule:addBuyableItem({'Locker'}, 3918, 30, 1'Locker')
shopModule:addBuyableItem({'Minotaur Statue'}, 3928, 50, 1'Minotaur Statue')
shopModule:addBuyableItem({'Oven'}, 6372, 80, 1'Oven')
shopModule:addBuyableItem({'Pendulum Clock'}, 3917, 75, 1'Pendulum Clock')
shopModule:addBuyableItem({'Piano'}, 3926, 200, 1'Piano')
shopModule:addBuyableItem({'Red Bed'}, 7906, 80, 1'Red Bed')
shopModule:addBuyableItem({'Red Cushioned Chair'}, 3903, 40, 1'Red Cushioned Chair')
shopModule:addBuyableItem({'Rocking Chair'}, 3925, 25, 1'Rocking Chair')
shopModule:addBuyableItem({'Rocking Horse'}, 3934, 30, 1'Rocking Horse')
shopModule:addBuyableItem({'Small Round Table'}, 3911, 30, 1'Small Round Table')
shopModule:addBuyableItem({'Small Table'}, 3908, 20, 1'Small Table')
shopModule:addBuyableItem({'Small Trunk'}, 3938, 20, 1'Smll Trunk')
shopModule:addBuyableItem({'Sofa Chair'}, 3902, 30, 1'Sofa Chair')
shopModule:addBuyableItem({'Square Table'}, 3910, 30, 1'Square Table')
shopModule:addBuyableItem({'Table Lamp'}, 3924, 35, 1'Table Lamp')
shopModule:addBuyableItem({'Telescope'}, 3935, 70, 1'Telescope')
shopModule:addBuyableItem({'Trough'}, 3937, 7, 1'Trough')
shopModule:addBuyableItem({'Trunk'}, 3938, 10, 1'Trunk')
shopModule:addBuyableItem({'Tusk Chair'}, 3905, 25, 1'Tusk Chair')
shopModule:addBuyableItem({'Tusk Table'}, 3914, 25, 1'Tusk Table')
shopModule:addBuyableItem({'Weapon Rack'}, 6114, 90, 1'Weapon Rack')
shopModule:addBuyableItem({'Wooden Chair'}, 3901, 15, 1'Wooden Chair')
shopModule:addBuyableItem({'Yellow Bed'}, 7907, 80, 1'Yellow Bed')

shopModule:addSellableItem({'Crystal Pedestal'}, 9976, 500, 1'Crystal Pedestal')


Kitchen Tools
Code: Select allshopModule:addBuyableItem({'baking tray'}, 2561, 20, 1,'baking tray')
shopModule:addBuyableItem({'cleaver'}, 2568, 15, 1,'cleaver')
shopModule:addBuyableItem({'cup'}, 2013, 2, 1,'cup')
shopModule:addBuyableItem({'fork'}, 2564, 10, 1,'fork')
shopModule:addBuyableItem({'jug'}, 2014, 10, 1,'jug')
shopModule:addBuyableItem({'kitchen knife'}, 2566, 10, 1,'kitchen knife')
shopModule:addBuyableItem({'mug'}, 2012, 4, 1,'mug')
shopModule:addBuyableItem({'oven spatula'}, 2569, 12, 1,'oven spatula')
shopModule:addBuyableItem({'pan'}, 2563, 20, 1,'pan')
shopModule:addBuyableItem({'plate'}, 2035, 6, 1,'plate')
shopModule:addBuyableItem({'rolling pin'}, 2570, 12, 1,'rolling pin')
shopModule:addBuyableItem({'spoon'}, 2565, 10, 1,'spoon')
shopModule:addBuyableItem({'wooden spoon'}, 2567, 5, 1,'wooden spoon')


Books
Code: Select allshopModule:addBuyableItem({'black book'},1955 , 15, 1,'black book')
shopModule:addBuyableItem({'brown book'}, 1950, 15, 1,'brown book')
shopModule:addBuyableItem({'cookbook'}, 2347, 150, 1,'cookbook')
shopModule:addBuyableItem({'grey small book'}, 1958, 15, 1,'grey small book')

shopModule:addSellableItem({'blue book'}, 1963, 20, 1,'blue book')
shopModule:addSellableItem({'gemmed book'}, 1976, 100, 1,'gemmed book')
shopModule:addSellableItem({'green book'}, 1965, 15, 1,'green book')
shopModule:addSellableItem({'orange book'}, 1977, 30, 1,'orange book')
shopModule:addSellableItem({'purple tome'}, 1982, 2000, 1,'purple tome')
#36976 by Sentiello
Tue 25 Feb 2014, 19:34
On this place I will add some usefull scripts.

Promotion
Code: Select alllocal node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to be promoted in your vocation for 20000 gold?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})


First Wand/Rod
Code: Select allfunction creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182}

if(msgcontains(msg, 'rod') or msgcontains(msg, 'wand')) then
if(isSorcerer(cid) or isDruid(cid)) then
if(getPlayerStorageValue(cid, 30002) == -1) then
selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid)
talkState[talkUser] = 1
else
selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid)
end
else
selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid)
end
elseif(msgcontains(msg, 'yes')) then
if(talkState[talkUser] == 1) then
doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1)
selfSay('Here you are young adept, take care yourself.', cid)
setPlayerStorageValue(cid, 30002, 1)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
selfSay('Ok then.', cid)
talkState[talkUser] = 0
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

This NPC will give you ONES a free wand of vortex or snakebite rod for newbies which have lost it (to mages only yes).

Healer / Priest
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler :eek: nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler :eek: nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler :eek: nCreatureSay(cid, type, msg) end
function onThink() npcHandler :eek: nThink() end

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

if msgcontains(msg, "heal") then
if getCreatureCondition(cid, CONDITION_FIRE) == TRUE then
npcHandler:say("You are burning. I will help you.", cid)
doRemoveCondition(cid, CONDITION_FIRE)
doSendMagicEffect(getCreaturePosition(cid), 14)
elseif getCreatureCondition(cid, CONDITION_POISON) == TRUE then
npcHandler:say("You are poisoned. I will help you.", cid)
doRemoveCondition(cid, CONDITION_POISON)
doSendMagicEffect(getCreaturePosition(cid), 13)
elseif getCreatureHealth(cid) < 40 then
npcHandler:say("You are looking really bad. Let me heal your wounds.", cid)
doCreatureAddHealth(cid, 40 - getCreatureHealth(cid))
doSendMagicEffect(getCreaturePosition(cid), 12)
else
if getConfigInfo('worldType') == "hardcore" then
npcHandler:say("You aren't looking that bad.", cid)
else
npcHandler:say("You aren't looking that bad. Sorry, I can't help you. But if you are looking for additional protection you should go on the pilgrimage of ashes.", cid)
end
end
end

npcHandler:setCallback(CALLBACK_ONTHINK, thinkCallback)
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

This one will heal you if you are below 40 health points, to 40 health points when you msg "heal" to him. It will also cure poisons and the burned conditon

Captain
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)



-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler :eek: nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler :eek: nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler :eek: nCreatureSay(cid, type, msg) end
function onThink() npcHandler :eek: nThink() end
-- OTServ event handling functions end


-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
local travelNode = keywordHandler:addKeyword({'ab\'dendriel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Ab\'dendriel for 80 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 80, destination = {x=32734, y=31668, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'})

local travelNode = keywordHandler:addKeyword({'edron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Edron for 110 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 110, destination = {x=33173, y=31764, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'})

local travelNode = keywordHandler:addKeyword({'svargrond'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Svargrond for 110 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 110, destination = {x=32341, y=31108, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'})

local travelNode = keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you seek a passage to Thais for 110 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 110, destination = {x=32310, y=32210, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'})

local travelNode = keywordHandler:addKeyword({'venore'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Venore for 130 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 130, destination = {x=32954, y=32022, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'})

local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Yalahar for 185 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 185, destination = {x=32816, y=31272, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'})

keywordHandler:addKeyword({'sail'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Where do you want to go? To Ab\'Dendriel, Edron, Svargrond, Thais, Venore or Yalahar?'})
keywordHandler:addKeyword({'passage'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Where do you want to go? To Ab\'Dendriel, Edron, Svargrond, Thais, Venore or Yalahar?'})
keywordHandler:addKeyword({'travel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Where do you want to go? To Ab\'Dendriel, Edron, Svargrond, Thais, Venore or Yalahar?'})
keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I\'m the captain of this sailing ship.'})
keywordHandler:addKeyword({'captain'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I\'m the captain of this sailing ship.'})

npcHandler:addModule(FocusModule:new())


Banker
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

local Topic, count, transferTo_name = {}, {}, {}

function onCreatureAppear(cid) npcHandler :eek: nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler :eek: nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler :eek: nCreatureSay(cid, type, msg) end
function onThink() npcHandler :eek: nThink() end

local function getCount(string)
local b, e = string:find('%d+')
return b and e and tonumber(string:sub(b, e)) or -1
end

local function playerExists(name)
local v, ret = db.getResult("SELECT `name` FROM `players` WHERE `name` = " .. db.escapeString(name) .. ";"), nil
if v:getID() ~= -1 then
ret = v:getDataString('name')
end
v:free()
return ret
end

function greetCallback(cid)
Topic[cid], count[cid], transferTo_name[cid] = 0, 0,0
return true
end

function creatureSayCallback(cid, type, msg)
if not npcHandler:isFocused(cid) then
return false
elseif msgcontains(msg, 'balance') then
npcHandler:say('Your account balance is ' .. getPlayerBalance(cid) .. ' gold.', cid)
Topic[cid] = 0
elseif msgcontains(msg, 'deposit') and msgcontains(msg, 'all') then
if getPlayerMoney(cid) > 0 then
count[cid] = getPlayerMoney(cid)
npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid)
Topic[cid] = 2
else
npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid)
Topic[cid] = 1
end
elseif msgcontains(msg, 'deposit') then
if getCount(msg) == 0 then
npcHandler:say('You are joking, aren\'t you??', cid)
Topic[cid] = 0
elseif getCount(msg) ~= -1 then
if getPlayerMoney(cid) >= getCount(msg) then
count[cid] = getCount(msg)
npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid)
Topic[cid] = 2
else
npcHandler:say('You do not have enough gold.', cid)
Topic[cid] = 0
end
else
npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid)
Topic[cid] = 1
end
elseif Topic[cid] == 1 then
if getCount(msg) == -1 then
npcHandler:say('Please tell me how much gold it is you would like to deposit.', cid)
Topic[cid] = 1
else
if getPlayerMoney(cid) >= getCount(msg) then
count[cid] = getCount(msg)
npcHandler:say('Would you really like to deposit ' .. count[cid] .. ' gold?', cid)
Topic[cid] = 2
else
npcHandler:say('You do not have enough gold.', cid)
Topic[cid] = 0
end
end
elseif msgcontains(msg, 'yes') and Topic[cid] == 2 then
if doPlayerRemoveMoney(cid, count[cid]) then
doPlayerSetBalance(cid, getPlayerBalance(cid) + count[cid])
npcHandler:say('Alright, we have added the amount of ' .. count[cid] .. ' gold to your balance. You can withdraw your money anytime you want to.', cid)
else
npcHandler:say('I am inconsolable, but it seems you have lost your gold. I hope you get it back.', cid)
end
Topic[cid] = 0
elseif msgcontains(msg, 'no') and Topic[cid] == 2 then
npcHandler:say('As you wish. Is there something else I can do for you?', cid)
Topic[cid] = 0
elseif msgcontains(msg, 'withdraw') then
if getCount(msg) == 0 then
npcHandler:say('Sure, you want nothing you get nothing!', cid)
Topic[cid] = 0
elseif getCount(msg) ~= -1 then
if getPlayerBalance(cid) >= getCount(msg) then
count[cid] = getCount(msg)
npcHandler:say('Are you sure you wish to withdraw ' .. count[cid] .. ' gold from your bank account?', cid)
Topic[cid] = 4
else
npcHandler:say('There is not enough gold on your account.', cid)
Topic[cid] = 0
end
else
npcHandler:say('Please tell me how much gold you would like to withdraw.', cid)
Topic[cid] = 3
end
elseif Topic[cid] == 3 then
if getCount(msg) == -1 then
npcHandler:say('Please tell me how much gold you would like to withdraw.', cid)
Topic[cid] = 3
else
if getPlayerBalance(cid) >= getCount(msg) then
count[cid] = getCount(msg)
npcHandler:say('Are you sure you wish to withdraw ' .. count[cid] .. ' gold from your bank account?', cid)
Topic[cid] = 4
else
npcHandler:say('There is not enough gold on your account.', cid)
Topic[cid] = 0
end
end
elseif msgcontains(msg, 'yes') and Topic[cid] == 4 then
if getPlayerBalance(cid) >= count[cid] then
doPlayerAddMoney(cid, count[cid])
doPlayerSetBalance(cid, getPlayerBalance(cid) - count[cid])
npcHandler:say('Here you are, ' .. count[cid] .. ' gold. Please let me know if there is something else I can do for you.', cid)
else
npcHandler:say('There is not enough gold on your account.', cid)
end
Topic[cid] = 0
elseif msgcontains(msg, 'no') and Topic[cid] == 4 then
npcHandler:say('The customer is king! Come back anytime you want to if you wish to withdraw your money.', cid)
Topic[cid] = 0
elseif msgcontains(msg, 'transfer') then
if getCount(msg) == 0 then
npcHandler:say('Please think about it. Okay?', cid)
Topic[cid] = 0
elseif getCount(msg) ~= -1 then
count[cid] = getCount(msg)
if getPlayerBalance(cid) >= count[cid] then
npcHandler:say('Who would you like to transfer ' .. count[cid] .. ' gold to?', cid)
Topic[cid] = 6
else
npcHandler:say('There is not enough gold on your account.', cid)
Topic[cid] = 0
end
else
npcHandler:say('Please tell me the amount of gold you would like to transfer.', cid)
Topic[cid] = 5
end
elseif Topic[cid] == 5 then
if getCount(msg) == -1 then
npcHandler:say('Please tell me the amount of gold you would like to transfer.', cid)
Topic[cid] = 5
else
count[cid] = getCount(msg)
if getPlayerBalance(cid) >= count[cid] then
npcHandler:say('Who would you like to transfer ' .. count[cid] .. ' gold to?', cid)
Topic[cid] = 6
else
npcHandler:say('There is not enough gold on your account.', cid)
Topic[cid] = 0
end
end
elseif Topic[cid] == 6 then
local v = getPlayerByName(msg)
if getPlayerBalance(cid) >= count[cid] then
if v then
transferTo_name[cid] = msg
npcHandler:say('Would you really like to transfer ' .. count[cid] .. ' gold to ' .. getPlayerName(v) .. '?', cid)
Topic[cid] = 7
elseif playerExists(msg):lower() == msg:lower() then
transferTo_name[cid] = msg
npcHandler:say('Would you really like to transfer ' .. count[cid] .. ' gold to ' .. playerExists(msg) .. '?', cid)
Topic[cid] = 7
else
npcHandler:say('This player does not exist.', cid)
Topic[cid] = 0
end
else
npcHandler:say('There is not enough gold on your account.', cid)
Topic[cid] = 0
end
elseif Topic[cid] == 7 and msgcontains(msg, 'yes') then
if getPlayerBalance(cid) >= count[cid] then
local v = getPlayerByName(transferTo_name[cid])
if v then
doPlayerSetBalance(cid, getPlayerBalance(cid) - count[cid])
doPlayerSetBalance(v, getPlayerBalance(v) + count[cid])
npcHandler:say('Very well. You have transferred ' .. count[cid] .. ' gold to ' .. getPlayerName(v) .. '.', cid)
elseif playerExists(transferTo_name[cid]):lower() == transferTo_name[cid]:lower() then
doPlayerSetBalance(cid, getPlayerBalance(cid) - count[cid])
db.executeQuery('UPDATE `players` SET `balance` = `balance` + ' .. count[cid] .. ' WHERE `name` = ' .. db.escapeString(transferTo_name[cid]) .. ' LIMIT 1;')
npcHandler:say('Very well. You have transferred ' .. count[cid] .. ' gold to ' .. playerExists(transferTo_name[cid]) .. '.', cid)
else
npcHandler:say('This player does not exist.', cid)
end
else
npcHandler:say('There is not enough gold on your account.', cid)
end
Topic[cid] = 0
elseif Topic[cid] == 7 and msgcontains(msg, 'no') then
npcHandler:say('Alright, is there something else I can do for you?', cid)
Topic[cid] = 0
elseif msgcontains(msg, 'change gold') then
npcHandler:say('How many platinum coins would you like to get?', cid)
Topic[cid] = 8
elseif Topic[cid] == 8 then
if getCount(msg) < 1 then
npcHandler:say('Hmm, can I help you with something else?', cid)
Topic[cid] = 0
else
count[cid] = getCount(msg)
npcHandler:say('So you would like me to change ' .. count[cid] * 100 .. ' of your gold coins into ' .. count[cid] .. ' platinum coins?', cid)
Topic[cid] = 9
end
elseif Topic[cid] == 9 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveItem(cid, 2148, count[cid] * 100) then
npcHandler:say('Here you are.', cid)
doPlayerAddItem(cid, 2152, count[cid])
else
npcHandler:say('Sorry, you do not have enough gold coins.', cid)
end
else
npcHandler:say('Well, can I help you with something else?', cid)
end
Topic[cid] = 0
elseif msgcontains(msg, 'change platinum') then
npcHandler:say('Would you like to change your platinum coins into gold or crystal?', cid)
Topic[cid] = 10
elseif Topic[cid] == 10 then
if msgcontains(msg, 'gold') then
npcHandler:say('How many platinum coins would you like to change into gold?', cid)
Topic[cid] = 11
elseif msgcontains(msg, 'crystal') then
npcHandler:say('How many crystal coins would you like to get?', cid)
Topic[cid] = 13
else
npcHandler:say('Well, can I help you with something else?', cid)
Topic[cid] = 0
end
elseif Topic[cid] == 11 then
if getCount(msg) < 1 then
npcHandler:say('Hmm, can I help you with something else?', cid)
Topic[cid] = 0
else
count[cid] = getCount(msg)
npcHandler:say('So you would like me to change ' .. count[cid] .. ' of your platinum coins into ' .. count[cid] * 100 .. ' gold coins for you?', cid)
Topic[cid] = 12
end
elseif Topic[cid] == 12 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveItem(cid, 2152, count[cid]) then
npcHandler:say('Here you are.', cid)
doPlayerAddItem(cid, 2148, count[cid] * 100)
else
npcHandler:say('Sorry, you do not have enough platinum coins.', cid)
end
else
npcHandler:say('Well, can I help you with something else?', cid)
end
Topic[cid] = 0
elseif Topic[cid] == 13 then
if getCount(msg) < 1 then
npcHandler:say('Hmm, can I help you with something else?', cid)
Topic[cid] = 0
else
count[cid] = getCount(msg)
npcHandler:say('So you would like me to change ' .. count[cid] * 100 .. ' of your platinum coins into ' .. count[cid] .. ' crystal coins for you?', cid)
Topic[cid] = 14
end
elseif Topic[cid] == 14 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveItem(cid, 2152, count[cid] * 100) then
npcHandler:say('Here you are.', cid)
doPlayerAddItem(cid, 2160, count[cid])
else
npcHandler:say('Sorry, you do not have enough platinum coins.', cid)
end
else
npcHandler:say('Well, can I help you with something else?', cid)
end
Topic[cid] = 0
elseif msgcontains(msg, 'change crystal') then
npcHandler:say('How many crystal coins would you like to change into platinum?', cid)
Topic[cid] = 15
elseif Topic[cid] == 15 then
if getCount(msg) == -1 or getCount(msg) == 0 then
npcHandler:say('Hmm, can I help you with something else?', cid)
Topic[cid] = 0
else
count[cid] = getCount(msg)
npcHandler:say('So you would like me to change ' .. count[cid] .. ' of your crystal coins into ' .. count[cid] * 100 .. ' platinum coins for you?', cid)
Topic[cid] = 16
end
elseif Topic[cid] == 16 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveItem(cid, 2160, count[cid]) then
npcHandler:say('Here you are.', cid)
doPlayerAddItem(cid, 2152, count[cid] * 100)
else
npcHandler:say('Sorry, you do not have enough crystal coins.', cid)
end
else
npcHandler:say('Well, can I help you with something else?', cid)
end
Topic[cid] = 0
elseif msgcontains(msg, 'change') then
npcHandler:say('There are three different coin types in Tibia: 100 gold coins equal 1 platinum coin, 100 platinum coins equal 1 crystal coin. So if you\'d like to change 100 gold into 1 platinum, simply say \'{change gold}\' and then \'1 platinum\'.', cid)
Topic[cid] = 0
elseif msgcontains(msg, 'bank') then
npcHandler:say('We can change money for you. You can also access your bank account.', cid)
Topic[cid] = 0
end
return TRUE
end

npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())


Blessing
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)


function onCreatureAppear(cid) npcHandler :eek: nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler :eek: nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler :eek: nCreatureSay(cid, type, msg) end
function onThink() npcHandler :eek: nThink() end

local node1 = keywordHandler:addKeyword({'first bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the first blessing for 2000 (plus level depending amount) gold?'})
node1:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 1, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

local node2 = keywordHandler:addKeyword({'second bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the second blessing for 2000 (plus level depending amount) gold?'})
node2:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 2, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

local node3 = keywordHandler:addKeyword({'third bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the third blessing for 2000 (plus level depending amount) gold?'})
node3:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 3, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

local node4 = keywordHandler:addKeyword({'fourth bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the fourth blessing for 2000 (plus level depending amount) gold?'})
node4:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 4, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

local node5 = keywordHandler:addKeyword({'fifth bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the fifth blessing for 2000 (plus level depending amount) gold?'})
node5:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 5, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

npcHandler:addModule(FocusModule:new())


Soft boots repair
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandler :eek: nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler :eek: nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler :eek: nCreatureSay(cid, type, msg) end
function onThink() npcHandler :eek: nThink() end

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

if(msgcontains(msg, 'soft') or msgcontains(msg, 'boots')) then
selfSay('Do you want to repair your worn soft boots for 10000 gold coins?', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if(getPlayerItemCount(cid, 6530) >= 1) then
if(doPlayerRemoveMoney(cid, 10000)) then
local item = getPlayerItemById(cid, true, 6530)
doTransformItem(item.uid, 6132)
selfSay('Here you are.', cid)
else
selfSay('Sorry, you don\'t have enough gold.', cid)
end
elseif(getPlayerItemCount(cid, 10021) >= 1) then
if(doPlayerRemoveMoney(cid, 10000)) then
local item = getPlayerItemById(cid, true, 10021)
doTransformItem(item.uid, 6132)
selfSay('Here you are.', cid)
else
selfSay('Sorry, you don\'t have enough gold.', cid)
end
else
selfSay('Sorry, you don\'t have the item.', cid)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser])) then
talkState[talkUser] = 0
selfSay('Ok then.', cid)
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())


Oracle
Code: Select alllocal keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler :eek: nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler :eek: nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler :eek: nCreatureSay(cid, type, msg) end
function onThink() npcHandler :eek: nThink() end

function oracle(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end

local cityNode = node:getParent():getParent()
local vocNode = node:getParent()

local destination = cityNode:getParameters().destination
local town = cityNode:getParameters().town
local vocation = vocNode:getParameters().vocation

if(destination ~= nil and vocation ~= nil and town ~= nil) then
if(getPlayerLevel(cid) < parameters.level) then
npcHandler:say('You must first reach level ' .. parameters.level .. '!', cid)
npcHandler:resetNpc()
else
if(getPlayerVocation(cid) > 0) then
npcHandler:say('Sorry, You already have a vocation!')
npcHandler:resetNpc()
else
doPlayerSetVocation(cid, vocation)
doPlayerSetTown(cid, town)
npcHandler:resetNpc()

local tmp = getCreaturePosition(cid)
doTeleportThing(cid, destination)
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(destination, CONST_ME_TELEPORT)
end
end
end

return true
end

function greetCallback(cid)
if(getPlayerLevel(cid) < 8) then
npcHandler:say('COME BACK WHEN YOU GROW UP, CHILD!')
return false
else
return true
end
end
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:setMessage(MESSAGE_GREET, 'Hello |PLAYERNAME|. Are you prepared to face your destiny?')

local yesNode = KeywordNode:new({'yes'}, oracle, {level = 8})
local noNode = KeywordNode:new({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then what vocation do you want to become?'})

local node1 = keywordHandler:addKeyword({'yes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'What city do you wish to live in? {Rhyves}, {Varak} or {Jorvik}?'})
local node2 = node1:addChildKeyword({'varak'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, town = 1, destination = {x=242, y=429, z=12}, text = 'Varak, eh? So what vocation do you wish to become? {Sorcerer}, {druid}, {paladin} or {knight}?'})
local node3 = node2:addChildKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, vocation = 1, onlyFocus = true, text = 'So, you wish to be a powerful magician? Are you sure about that? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, vocation = 2, onlyFocus = true, text = 'Are you sure that a druid is what you wish to become? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, vocation = 3, onlyFocus = true, text = 'A ranged marksman. Are you sure? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, vocation = 4, onlyFocus = true, text = 'A mighty warrior. Is that your final decision? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node2 = node1:addChildKeyword({'rhyves'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, town = 1, destination = {x=159, y=387, z=6}, text = 'Rhyves, eh? So what vocation do you wish to become? {Sorcerer}, {druid}, {paladin} or {knight}?'})
node3 = node2:addChildKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, vocation = 1, onlyFocus = true, text = 'So, you wish to be a powerful magician? Are you sure about that? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, vocation = 2, onlyFocus = true, text = 'Are you sure that a druid is what you wish to become? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, vocation = 3, onlyFocus = true, text = 'A ranged marksman. Are you sure? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, vocation = 4, onlyFocus = true, text = 'A mighty warrior. Is that your final decision? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node2 = node1:addChildKeyword({'jorvik'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, town = 1, destination = {x=469, y=172, z=7}, text = 'Jorvik, eh? So what vocation do you wish to become? {Sorcerer}, {druid}, {paladin} or {knight}?'})
node3 = node2:addChildKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, vocation = 1, onlyFocus = true, text = 'So, you wish to be a powerful magician? Are you sure about that? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, vocation = 2, onlyFocus = true, text = 'Are you sure that a druid is what you wish to become? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, vocation = 3, onlyFocus = true, text = 'A ranged marksman. Are you sure? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
node3 = node2:addChildKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, vocation = 4, onlyFocus = true, text = 'A mighty warrior. Is that your final decision? This decision is irreversible!'})
node3:addChildKeywordNode(yesNode)
node3:addChildKeywordNode(noNode)
keywordHandler:addKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Then come back when you are ready.'})

npcHandler:addModule(FocusModule:new())
#38669 by Breed
Sat 07 Feb 2015, 23:04
You should put all that data in a table and then throw it through a for loop :)