Ir para conteúdo

Npc Que Compra Itens Rashid + Djinns


RoD LoKo

Posts Recomendados

Olá,



 

Vi já aqui no fórum, que várias pessoas pedem npcs do sistema Jiddo, ou para TFS!

 

Bom, o TFS usa sistema Jiddo, então resolvi fazer um que compra itens para vocês! :smile_positivo:

 

Ele compra todos itens do Rashid + Todos itens blue, green, djinn, incluindo os rings, tudo mesmo!

 

Funcionamento:

 

Bom, ele tem o sistema novo de "Hi-Trade" e abrir a janela de buy e sell. Só que ele não responde via o chat dos Npc's, pois ainda não descobri como fazer, caso alguém saiba, por favor, poste, eu edito o tópico, e ainda dou créditos a quem ajudou!

 

Script:

 

Vá na pasta: data\npc\scripts, copie qualquer arquivo, e renomei-o com o nome: default.lua, e cole isso dentro:

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

 

*Explicando: eu uso esse default para redirecionar todos scripts de npc no TFS, em Jiddo. Pois, você trabalha direto no xml com as coisas que o npc faz.

 

Agora vá na pasta: data\npc, copie qualquer arquivo, e renomeie para: Jessica.xml, e cole tudo isso dentro dele:

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Jessica" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="100" max="100"/>

<look type="138" head="57" body="59" legs="40" feet="76" addons="3"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="shop_buyable" value=""/>

<parameter key="shop_sellable" value="Dragon hammer,2434,2000;Giant sword,2393,17000;Knight axe,2430,2000;Poison dagger,2411,50;Scimitar,2419,150;Serpent sword,2409,900;Skull staff,2436,6000;Dark armor,2489,400;Knight armor,2476,5000;Dark helmet,2490,250;Mystic turban,2663,150;Strange helmet,2479,500;Warrior helmet,2475,5000;Knight legs,2477,5000;Ancient shield,2532,900;Black shield,2529,800;Tower shield,2528,8000;Vampire shield,2534,15000;Beholder shield,2518,1200;Crown shield,2519,8000;Dragon shield,2516,4000;Guardian shield,2515,2000;Phoenix shield,2539,16000;Blue robe,2656,10000;Crown armor,2487,12000;Noble armor,2486,900;Boots of haste,2195,30000;Broad sword,2413,500;Dragon lance,2414,9000;Fire axe,2432,8000;Fire sword,2392,4000;Ice rapier,2396,1000;Obsidian lance,2425,500;Spike sword,2383,1000;War hammer,2391,1200;Crown helmet,2491,2500;Crusader helmet,2497,6000;Royal helmet,2498,30000;Crown legs,2488,12000;Dragon scale mail,2492,40000;Dwarven armor,2503,30000;Golden armor,2466,20000;Leopard armor,3968,1000;Mammoth fur cape,7463,6000;Pirate shirt,6095,500;Pirate knee breeches,5918,200;Bone shield,2541,80;Castle shield,2535,5000;Dark shield,2521,400;Demon shield,2520,30000;Medusa shield,2536,9000;Scarab shield,2540,2000;Tortoise shield,6131,150;Beholder helmet,3972,7500;Devil helmet,2462,1000;Krimhorn helmet,7461,200;Pirate hat,6096,1000;Ragnir helmet,7462,400;Skull helmet,5741,40000;Crocodile boots,3982,1000;Fur boots,7457,2000;Pirate boots,5462,3000;Steel boots,2645,30000;Amber staff,7426,8000;Beastslayer axe,3962,1500;Brutetamer's staff,7379,1500;Crystal sword,7449,600;Daramanian mace,2439,110;Daramanian waraxe,2440,1000;Diamond sceptre,7387,3000;Dragon slayer,7402,15000;Dragonbone staff,7430,3000;Furry club,7432,1000;Heavy machete,2442,90;Lunar staff,7424,5000;Mammoth whopper,7381,300;Sapphire hammer,7437,7000;Silver dagger,2402,500;Taurus mace,7425,500;War axe,2454,9000;Wyvern fang,7408,1500;Ancient amulet,2142,200;Scarab amulet,2135,200;Light Shovel,5710,300;Patched Boots,2641,2000;Axe ring,2208,100;Club ring,2209,100;Power ring,2166,50;Stealth ring,2165,200;Sword ring,2207,100;Bronze amulet,2172,50;Garlic necklace,2199,50;elven amulet,2198,100;Stone skin amulet,2197,500;Wand of cosmic energy,2189,2000;Wand of decay,2188,1000;Wand of dragonbreath,2191,200;Wand of inferno,2187,3000;Wand of vortex,2190,100;Wand of Draconia,8921,1500;Wand of Starstorm,8920,3600;Wand of Voodoo,8922,4400;Magic Light Wand,2162,35;Life Crystal,4851,50;Mind Stone,2178,100;Orb,7493,750;Dwarven ring,2213,100;Energy ring,2167,100;Life ring,2168,50;Might ring,2164,250;Ring of healing,2214,100;Time ring,2169,100;Dragon necklace,2201,100;Protection amulet,2200,100;Strange talisman,2161,30;Silver amulet,2170,50;Hailstorm rod,2183,3000;Moonlight rod,2186,200;Necrotic rod,2185,1000;Snakebite rod,2182,100;Terra rod,2181,2000;Springsprout Rod,8912,3600;Northwind Rod,8911,1500;Underworld Rod,8910,4400;Ankh,2327,100;Mysterious Fetish,2194,50"/>

</parameters>

</npc>

 

Bastante coisa, não? Mas chegamos ao fim! :smile_positivo:

 

Finalizando:

 

Bom, esse npc foi feito 100% by me, se quiserem copiar, colocar os créditos por favor. Testado em TFS Mystic Spirit 8.22, e funcionou perfeitamente, sem erros! Mas, caso encontrem erros, podem postar, que faço muita questão em ajuda-los!

 

Até mais, :positive:

Editado por RoD LoKo
Link para o comentário
Compartilhar em outros sites

  • 2 years later...
  • 5 months later...
×
×
  • Criar Novo...