Primeiro va na pasta data/npc, copie e crie um arquivo...
renomeie para Trainer Seller
agora abre eli apaga tdo q tiver dentro e cola iso!
<?xml version="1.0"?><npc name="Trainer Seller" script="data/npc/scripts/Summon.lua" access="3" lookdir="1">
<health now="1000" max="1000"/>
<look type="57" head="20" body="30" legs="40" feet="50" corpse="4246"/>
</npc>
agora feche e salve...
Vai na pasta scripts, copie e cole um ariquvo, renomeia pra summon.lua, apague tdo q esta dentro, e cole iso aki
-- the id of the creature we are attacking, following, etc.target = 0
following = false
attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
end
function onCreatureTurn(creature)
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (string.find(msg, '(%a*)hi(%a*)')) and getDistanceToCreature(cid) < 6 then
selfSay('/m Trainer')
focus = cid
talk_start = os.clock()
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
end
pronto o npc foi criado agora vou passar o monstro q eli sumona...
va na pasta monster copie e cole um arquivo, renomeio para Trainer, apague tdo q esta dentro e cole iso aki...
<?xml version="1.0"?><monster name="Trainer" level="200" maglevel="2000" experience="200" pushable="1" armor="40" defense="35" canpushitems="0" staticattack="50" changetarget="250">
<health now="240000" max="240000"/>
<look type="57" head="20" body="30" legs="40" feet="50" corpse="4246"/>
<combat targetdistance="1" runonhealth="0"/>
<attacks>
<attack type="melee" maxdamage="0"/>
<attack type="instant" name="exura vita" exhaustion="500" cycleticks="3000" probability="100"/>
<attack type="melee" maxdamage="0"/>
<attack type="melee" maxdamage="0"/>
<attack type="melee" maxdamage="0"/>
<attack type="melee" maxdamage="0"/>
<attack type="melee" maxdamage="0"/>
<attack type="melee" maxdamage="0"/>
<attack type="melee" maxdamage="0"/>
</attacks>
<defenses>
</defenses>
<voices>
<voice sentence="'Vem pra mao mlk!"/>
</voices>
<loot>
</loot>
</monster>
pronto... o npc ta funfando!
agora vc so precisa por o respw deli...
Pra quem n sab fazer iso, va na pasta world e abra o arquivo npc.xml com o bloco de notas...
entaum coloqueiso aki logo abaixo de
<npc name="Seller" x="145" y="50" z="7"/>
logo abaixo diso cole iso aki
<npc name="Trainer Seller" x="134" y="172" z="7"/>
sendo x, y, z as coordenadas q vc deseja q seu npc nasça...
TA AI!! o npc q sumona trainer...
para fazelo sumonar apenas diga hi perto deli :grin:
espero ter ajudado...
kalker duvia posta ai q eu tento ajudar