Ir para conteúdo

Rashid - Items/preço Rl


kkk111

Posts Recomendados

Rashid - Items/Preço RL

 

Imagem:Rashid.gif

 

 

Vai em .../data/npc/script copie-cole um arquivo renomei para rashid.lua apague oque estiver endentro e cole isso .

 

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)	npcHandler:onCreatureSay(cid, type, msg)	end
function onThink()						npcHandler:onThink()						end

npcHandler:addModule(FocusModule:new())

 

Depois em .../data/npc rashid.xml

 

<?xml version="1.0"?>

<npc name="Rashid" script="data/npc/scripts/rashid.lua" walkinterval="25" access="3" lookdir="2">
<mana now="800" max="800"/>
<health now="200" max="200"/>
<look type="146" head="114" body="101" legs="122" feet="115" addons="3"/>
<parameters>
	<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="beholder helmet,3972,7500;
devil helmet,2462,1000;
glacier mask,7902,2500;
lightning headband,7901,2500;
krimhorn helmet,7461,200;
magma monocle,7900,2500;
pirate hat,6096,1000;
ragnir helmet,7462,400;
skull helmet,5741,40000;
terra hood,7903,2500;


--- Boots ---

Steel Boots,2645,30000;
crocodile boots,3982,1000;
fur boots,7457,2000;
glacier shoes,7892,2500;
lightning boots,7893,2500;
magma boots,7891,2500;
pirate boots,5462,3000;
terra boots,7886,2500;

--- Armors ---

dragon scale mail,2492,40000;
golden armor,2466,20000;
dwarven armor,2503,30000;
glacier robe,7897,11000;
hibiscus dress,8873,3000;
leopard armor,3968,1000;
skullcracker armor,8889,18000;
paladin armor,8891,15000;
lightning robe,7898,11000;
magma coat,7899,11000;
mammoth fur cape,7463,6000;
pirate shirt,6095,500;
terra mantle,7884,11000;

--- Legs ---
glacier kilt,7896,11000;
lightning legs,7895,11000;
magma legs,7894,11000;
pirate knee breeches,5918,200;
terra legs,7885,11000;

--- Shields ---

bone shield,2541,80;
demon shield,2520,30000;
castle shield,2535,5000;
medusa shield,2536,8000;
dark shield,2521,400;
norse shield,7460,1500;
scarab shield,2540,2000;
spellbook of enlightenment,8900,4000;
tortoise shield,6131,150;

--- Armas ---

amber staff,7426,8000;
beastslayer axe,3962,1500;
brutetamer's staff,7379,1500;
crystal sword,7449,600;
chaos mace,7427,12000;
daramanian mace,2439,110;
dragon slayer,7402,15000;
daramanian waraxe,2440,1000;
demonrage sword,7382,25000;
diamond sceptre,7387,3000;
dragonbone staff,7430,3000;
furry club,7432,1000;
guardian halberd,2427,11000;
heroic axe,7389,30000;
heavy machete,2442,90;
lunar staff,7424,5000;
mammoth whopper,7381,300;
mystic blade,7384,30000;
noble axe,7456,6000;
mercenary sword,7386,12000;
ornamented axe,7411,11000;
relic sword,7745,10000;
sapphire hammer,7437,7000;
silver dagger,2402,500;
spiked squelcher,7452,5000;
taurus mace,7425,500;
war axe,2454,9000;
wyvern fang,7408,1500;

--- Armas Encantadas ---

earth dragon slayer,7858,15000;
energy dragon slayer,7873,15000;
fiery dragon slayer,7748,15000;
icy dragon slayer,7767,15000;
earth war axe,7863,9000;
energy war axe,7878,9000;
fiery war axe,7753,9000;
icy war axe,7772,9000;
earth mystic blade,7856,30000;
energy mystic blade,7871,30000;
fiery mystic blade,7746,30000;
icy mystic blade,7765,30000;


--- Amulets e Rings ---

platinum amulet,2171,2500;
ancient amulet,2142,200;
gold ring,2179,8000;
ring of the sky,2123,30000;
glacier amulet,7888,1500;
scarab amulet,2135,200;

--- Diversos ---

light shovel,5710,300;
silver brooch,4845,150


"/>
</parameters>
</npc>

 

:hehe:

Link para o comentário
Compartilhar em outros sites

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)				npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid) 			npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)			npcHandler:onCreatureSay(cid, type, msg)		end
function onThink()					npcHandler:onThink()					end

shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 1, 'dragon scale mail')
shopModule:addSellableItem({'dwarven armor'}, 2503, 30000, 1, 'dwarven armor')
shopModule:addSellableItem({'glacier rope'}, 7897, 11000, 1, 'glacier rope')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 1, 'golden armor')
shopModule:addSellableItem({'hibiscus dress'}, 8873, 3000, 1, 'hibiscus dress')
shopModule:addSellableItem({'leopard armor'}, 3968, 1000, 1, 'leopard armor')
shopModule:addSellableItem({'lightning robe'}, 7898, 11000, 1, 'lightning robe')
shopModule:addSellableItem({'magma coat'}, 7899, 11000, 1, 'magma coat')
shopModule:addSellableItem({'mammoth fur cape'}, 7463, 6000, 1, 'mammoth fur cape')
shopModule:addSellableItem({'paladin armor'}, 8891, 15000, 1, 'paladin armor')
shopModule:addSellableItem({'pirate shirt'}, 6095, 500, 1, 'pirate shirt')
shopModule:addSellableItem({'skullcracker armor'}, 8889, 18000, 1, 'skullcracker armor')
shopModule:addSellableItem({'terra mantle'}, 7884, 11000, 1, 'terra mantle')

shopModule:addSellableItem({'glacier kilt'}, 7896, 11000, 1, 'glacier kilt')
shopModule:addSellableItem({'ligtning legs'}, 7895, 11000, 1, 'lightning legs')
shopModule:addSellableItem({'magma legs'}, 7894, 11000, 1, 'magma legs')
shopModule:addSellableItem({'mammoth fur short'}, 7464, 850, 1, 'mammoth fur shorts')
shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 1, 'pirate knee breeches')
shopModule:addSellableItem({'terra legs'}, 7885, 11000, 1, 'terra legs')

shopModule:addSellableItem({'bone shield'}, 2541, 80, 1, 'bone shield')
shopModule:addSellableItem({'dark shield'}, 2521, 400, 1, 'dark shield')
shopModule:addSellableItem({'demon shield'}, 2520, 30000, 1, 'demon shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 1, 'medusa shield')
shopModule:addSellableItem({'nore shield'}, 7460, 1500, 1, 'norse shield')
shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 1, 'scarab shield')
shopModule:addSellableItem({'spellbook of enlightenment'}, 4000, 8900, 1, 'spellbook of enlightenment')
shopModule:addSellableItem({'tortoise shield'}, 6131, 150, 1, 'tortoise shield')

shopModule:addSellableItem({'beholder helmet'}, 3972, 7500, 1, 'beholder helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1, 'devil helmet')
shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1, 'glacier mask')
shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1, 'krimhorn helmet')
shopModule:addSellableItem({'lightning headband'}, 7901, 2500, 1, 'lightning headband')
shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1, 'magma monocle')
shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 1, 'pirate hat')
shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1, 'ragnir helmet')
shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 1, 'skull helmet')
shopModule:addSellableItem({'terra hood'}, 7903, , 1, 'terra hood')

shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 1, 'crocodile boots')
shopModule:addSellableItem({'fur boots'}, 7457, 2000, 1, 'fur boots')
shopModule:addSellableItem({'glacier shoes'}, 7892, 2500, 1, 'glacier shoes')
shopModule:addSellableItem({'lightning boots'}, 7893, 2500, 1, 'lightning boots')
shopModule:addSellableItem({'magma boots'}, 7891, 2500, 1, 'magma boots')
shopModule:addSellableItem({'patched boots'}, 2641, 2000, 1, 'patched 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({'amber staff'}, 7426, 8000, 1, 'amber staff')
shopModule:addSellableItem({'beatslayer axe'}, 3962, 1500, 1, 'beatslayer axe')
shopModule:addSellableItem({'brutetamer's staff'}, 7379, 1500, 1, 'brutetamer's staff')
shopModule:addSellableItem({'chaos mace'}, 7427, 12000, 1, 'chaos mace')
shopModule:addSellableItem({'cranial basher'}, 7415, 30000, 1, 'cranial basher')
shopModule:addSellableItem({'crystal sword'}, 7449, 600, 1, 'crystal sword')
shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 1, 'daramanian mace')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 1, 'daramanian waraxe')
shopModule:addSellableItem({'demonrage sword'}, 7382, 36000, 1, 'demonrage sword')
shopModule:addSellableItem({'diamond sceptre'}, 7387, 3000, 1, 'diamond sceptre')
shopModule:addSellableItem({'dragon slayer'}, 7402, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'dragonbone staff'}, 7430, 3000, 1, 'dragonbone staff')
shopModule:addSellableItem({'dreaded cleaver'}, 7419, 10000, 1, 'dreaded cleaver')
shopModule:addSellableItem({'furry club'}, 7432, 1000, 1, 'furry club')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 1, 'guardian halberd')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 1, 'heavy machete')
shopModule:addSellableItem({'heroic axe'}, 7389, 30000, 1, 'heroic axe')
shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 1, 'lunar staff')
shopModule:addSellableItem({'mammoth whopper'}, 7381, 300, 1, 'mammoth whopper')
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({'noble axe'}, 7456, 6000, 1, 'noble axe')
shopModule:addSellableItem({'ornamented axe'}, , 11000, 1, 'ornamented axe')
shopModule:addSellableItem({'relic sword'}, 7383, 25000, 1, 'relic sword')
shopModule:addSellableItem({'ornamented axe'}, 7411, 11000, 1, 'ornamented axe')
shopModule:addSellableItem({'sapphire hammer'}, 7437, 7000, 1, 'sapphire hammer')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 1, 'silver dagger')
shopModule:addSellableItem({'taurus mace'}, 7425, 500, 1, 'taurus mace')
shopModule:addSellableItem({'war axe'}, 2454, 9000, 1, 'war axe')
shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 1, 'wyvern fang')

shopModule:addSellableItem({'earth dragon slayer'}, 7858, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'energy dragon slayer'}, 7873, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'fiery dragon slayer'}, 7748, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'icy dragon slayer'}, 7767, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'earth mystic blade'}, 7856, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'energy mystic blade'}, 7871, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'fiery mystic blade'}, 7746, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'icy mystic blade'}, 7765, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'earth war axe'}, 2863, 9000, 1, 'war axe')
shopModule:addSellableItem({'energy war axe'}, 2878, 9000, 1, 'war axe')
shopModule:addSellableItem({'fiery war axe'}, 2753, 9000, 1, 'war axe')
shopModule:addSellableItem({'icy war axe'}, 2772, 9000, 1, 'war axe')

shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 1, 'ancient amulet')
shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 1, 'crystal necklace')
shopModule:addSellableItem({'crystal ring'}, 2124, 250, 1, 'crystal ring')
shopModule:addSellableItem({'death ring'}, 6300, 1000, 1, 'death ring')
shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 1, 'demonbone amulet')
shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 1, 'emerald bangle')
shopModule:addSellableItem({'golden ring'}, 2179, 8000, 1, 'golden ring')
shopModule:addSellableItem({'platinum amulet'}, 2171, 2500, 1, 'platinum amulet')
shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 1, 'ring of the sky')
shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 1, 'ruby necklace')
shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 1, 'scarab amulet')
shopModule:addSellableItem({'silver brooch'}, 2134, 150, 1, 'silver brooch')

shopModule:addSellableItem({'light shovel'}, 5710, 300, 1, 'light shovel')
shopModule:addSellableItem({'doll'},2100 , 200, 1, 'doll')
shopModule:addSellableItem({'pirate voodoo doll'}, 5810, 500, 1, 'pirate voodoo doll')
shopModule:addSellableItem({'voodoo doll'}, 3955, 400, 1, 'voodoo doll')

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

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

 

Créditos: Sentielo

 

Este modelo segue o usado atualmente pelo Tfs!

 

Veja mais aqui:

http://www.xtibia.com/forum/npc-Pack-Tfs-U...12-t103541.html

Editado por Albert José
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...