Área errada.
Reportado.
Por SirMarrone, 14 de nov. de 2012 em Scripts
info
Grupo: Conde
Registrado: 09/09/12
Posts: 591
Reputação: +53
Char no Tibia: Rartne of Rook

Área errada.
Reportado.
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

Topico Movido.
Usuario, mais atenção.
Cara, npc que compra itens normalmente que eu saiba é feito assim olha:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Henry" script="default.lua" walkinterval="32000000" floorchange="0" speed="0">
<health now="150" max="150"/>
<look type="520" head="115" body="88" legs="114" feet="0"/>
<parameters>
<parameter key="message_greet" value="Hello dear customer! Are you here to see my offers? Come on, lets {trade}!"/>
<parameter key="message_farewell" value="Good Bye!"/>
<parameter key="message_idletimeout" value="Good Bye!"/>
<parameter key="message_walkaway" value="Good Bye!"/>
<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="nomedoitem,iddoitem,preçodoitem;nomedoitem,iddoitem,preçodoitem;nomedoitem,iddoitem,preçodoitem;nomedoitem,iddoitem,preçodoitem;nomedoitem,iddoitem,preçodoitem;"/>
</parameters>
</npc>
PS: Esse é o npc.xml.
PS²: Npc's assim não têm npc.lua.
info
Grupo: Campones
Registrado: 06/11/12
Posts: 10
Reputação: +1
Char no Tibia: Sir Marrone Shadow

pode fechar ae pessoal
criei um post na area npc
postando meus dois npcs
que criei
mt trabalho
pois compram praticamente tds as armas e armaduras
tks por tds
Editado Novembro 16 por SirMarrone
info
Grupo: Campones
Registrado: 06/11/12
Posts: 10
Reputação: +1
Char no Tibia: Sir Marrone Shadow
Eae galera Xtibiana
gostaria de pedir dois NPC's
um deles compra tds as armas do tibia
e o outro compra tds armor legs boots shield helmets
bom eu tava editando mas puis no script dele e assim ele n vende malz mas to mt muido de mexe no ot
e queria q uma janta alma me salvase e fizese isso pra mim
ta assim no meu script dos weapon
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
-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'swords'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy giant (10k), bright (6k), epee (25k), pharaoh sword (50k), djinn blade (30k), demonrage sword (40k), avanger (25k), relic sword (30k), mystic blade (50k), mercenary sword (50k), justice seeker (60k),thaian sword (20k), berserker (40k), assassin dagger (25k), havoc blade (50k), runed sword (20k), fire (3k) serpent (1.5k), spike (800gp) and two handed swords (400gp), also ice rapiers (4k), magic longswords (150k), magic swords (90k), warlord swords (100k) broad swords (70gp), short swords (30gp), sabres (25gp) and swords (25gp).'})
keywordHandler:addKeyword({'axes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy fire (10k), great axe (35k), guardian halberd (20k), war axe (5k), vile axe (50k), ornamented axe (50k), royal axe (70k), guardian halberds (7,5k) knight (2k), double (200gp) and battle axes (100gp), also dragon lances (10k), stonecutters axes (90k), halberds (200gp) and hatchets (20gp).'})
keywordHandler:addKeyword({'clubs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy thunder hammers (90k), war (6k), dragon (2k) and battle hammers (60gp), spiked squelcher (10k), abyss hammer (50k), onyx flail (30k), jade hammer (40k), also skull staffs (10k) and clerical maces (200gp).'})
e assim o script do armor
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
-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'helmets'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden helmet (100k),royal (40k), demon helmet(50k), skull helmet (50k), terra hood (10k), lightnig headband (10k), glacier mask (10k), magima monocle (10k), warrior (6k), crusader (9k), crown (5k), devil (1k), chain (35gp) and iron helmets (30gp), also mystic turbans (500gp).'})
keywordHandler:addKeyword({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden boots (100k), terra boots (10k), magma boots (10k), glacier shoes (10k) lighting boots (10k), steel boots (40k) and boots of haste (40k).'})
keywordHandler:addKeyword({'armors'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy demon armor (200k), elven mail (20k), terra mantle (20k), glacier robe (20k), lightning robe (20k), magma coat (20k), greenwood coat (50k), focus cape (9k), golden (30k), crown (20k), knight (5k), lady (7,5k), plate (400gp), brass (200gp) and chain armors (100gp), also mpa (100k), dsm (60k) and blue robes (15k).'})
keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden (80k), demon legs (200k), terra legs (20k), magma legs (20k), blue legs (15k), lightning legs (20k), glacier kilt (20k), crown (15k), knight (6k), plate (500gp) and brass legs (100gp).'})
keywordHandler:addKeyword({'shields'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy blessed (150k), great (100k), demon (40k), vampire (25k), medusa (8k), amazon (4k), crown (5k), tower (4k), dragon (3k), guardian (2k), beholder (1k), and dwarven shields (100gp), also mms (80k).'})
npcHandler:addModule(FocusModule:new())
gente sei q deveria ter posto no npc e tals com id e td
mas to mauzao
ae pra dexar meu ot é 9.6 se puderem do REP +
agradeço