Criador De Montro E Mais

skya tura
em NPCs, monsters e raids

skya tura

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 23/09/06Posts: 2

esse npc e em portugues vc chega e fala oi e ele fala um monte de coisas vc fala uma das opçoes e ele obedece (a ue te afeta)

ai vai o codigo do q fica na pasta npc(dados dele)eu sugiro que coloque o nome de monsc.xml:

<?xml version="1.0"?>

<npc name="Criador de Monstros" script="data/npc/scripts/heal2.lua" access="5" lookdir="1">

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

<look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/>

</npc>

se quiser muda o nome dele!

Ai vai o que fica no scripts(fala e etc...)ponha o nome de "heal2.lua"

(obrigatorio):

target = 0

focus = 0

talk_start = 0

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*)oi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 5 then

        selfSay('OI ' .. creatureGetName(cid) .. '!Que bicho vc quer q eu sumone como bicho que nao ataca?Demon, Ferumbras?E sem summon?SDemon, SFrumbras?Cuidado eles te atacam em!Se vc quiser ultimate explosion fala ue!Isse do ue e so teste!E se quiser heal fala vida!')

        focus = cid

        talk_start = os.clock()

    elseif (string.find(msg, '(%a*)demon(%a*)') and focus ~= 0) then

        selfSay('/summon demon')

        focus = 0

        talk_start = 0

elseif (string.find(msg, '(%a*)ferumbras(%a*)') and focus ~= 0) then

        selfSay('/summon ferumbras')

        focus = 0

        talk_start = 0

elseif (string.find(msg, '(%a*)sdemon(%a*)') and focus ~= 0) then

        selfSay('/m demon')

        focus = 0

        talk_start = 0

elseif (string.find(msg, '(%a*)sferumbras(%a*)') and focus ~= 0) then

        selfSay('/m demon')

        focus = 0

        talk_start = 0

elseif (string.find(msg, '(%a*)ue(%a*)') and focus ~= 0) then

        selfSay('exevo gran mas vis')

        focus = 0

        talk_start = 0

    elseif (string.find(msg, '(%a*)vida(%a*)') and focus ~= 0) then

        if getPlayerHealth(cid) <= 80 then

            heal(cid, 80)

        else

            selfSay('I cannot heal you.')

        end

    end

end

function onCreatureChangeOutfit(creature)

end

function onThink()

if focus > 0 then

x, y, z = creatureGetPosition(focus)

myx, myy, myz = selfGetPosition()

if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then

      selfTurn(0)

end

if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then

      selfTurn(2)

end

      if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then

      selfTurn(1)

end

if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then

      selfTurn(3)

end

if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then

      selfTurn(1)

end

if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then

        selfTurn(3)

end

if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then

        selfTurn(2)

end

if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then

        selfTurn(0)

end

if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then

        selfTurn(1)

end

if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then

        selfTurn(3)

end

if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then

        selfTurn(2)

end

if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then

        selfTurn(0)

end

if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then

        selfTurn(1)

end

if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then

        selfTurn(3)

end

if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then

        selfTurn(2)

end

if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then

        selfTurn(0)

end

end

if (os.clock() - talk_start) > 30 then

    if focus > 0 then

    selfSay('Va embor se vc nao pediu nada!Dexa o otro treinar!Se ja pediu ignore!')

    end

    focus = 0

  end

  if focus ~= 0 then

  if getDistanceToCreature(focus) > 5 then

    selfSay('Tiau!Volte sempre que quiser matar monstros!.')

    focus = 0

  end

  end

end

algum bug duvida ou sugestao do npc me fala! :bye:

alexjf

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 25/03/06Posts: 1

Ow manero mesmo vei =D mais me arruma um npc q cria montros para os player so q os player tem q pagar =D vlw

tenta me arruma pls hehehe

LadyeGata

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/08/06Posts: 18

nao gostei mais vlw pela intençao

Felipe Moraes

Java Developer
avatar
Grão-Duque
Grão-Duque

INFOS

Grupo: Grão-DuqueRegistrado: 02/10/06Posts: 3285Gênero: Masculino

Ficou bom

Pena q os kras tem q pagar pro kra fazer os bixos

Mas vlw ai,a intençao sua foi ajudar

E ficou rox

~A nossa maior glória não reside no fato de nunca cairmos, mas sim em levantarmo-nos sempre depois de cada queda.~

 

 

 

 

Clique aqui para ver meus tutoriais !

 

 

 

Gamertag: cpmoraes

 

 

FoDoX

avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 23/09/06Posts: 103

Muito bom configurado do jeito adequado muito bom mesmo brother continue assim concerta esse npc vai estar no meu ot xD vlws....

Obrigado: By FoDoX

QUOTE
Assinatura removida por estar fora das regras.
Xedegux.

Neko

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/12/06Posts: 43

gostei continue assim parabens pelo seu trbalho xD

Palubo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 19/01/07Posts: 32Char no Tibia: Auro Mota

ei, otimo NPC viu?

 

skynagerloas

Ex-Moderador
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 13/11/05Posts: 715Char no Tibia: Lord'Skyxt

Tópico contendo somente 1 NpC,

essa seção é para DataPacks com 3 ou mais Npcs,

~o{Tópico Movido}o~,

Abraços.

Atenciosamente, Sky - Lord'Skyxt;

 

Antes de postar, leia isso:



Regras.

[Lord'SkyXT] [FloGão]

lucasmlima

.:: XTibia 2008 ::.
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 07/07/07Posts: 70Char no Tibia: Esqueci oO

Mt bom de acordo com os posts

n testei pq meu tibia deu um problema
mt bom pelo visto
RETIRED FROM XTIBIA




XTIBIA QUE SE ****

mAssAcrAtiOn

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/10/05Posts: 1

legal....legal....

Iguito

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/09/07Posts: 15

Ja puz no meu ot

Em busca de criar um ot serv e ajudar o X tibia
[X] 1 map
[X] 2 maps
[X] Campones
[ ] Cavaleiro

Mager Maluco

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/07/06Posts: 12

A intenção foi boa , mas n gosto desse tipu de NPC pq tem akeles cra mancões q ficam sumonando monsters só pra matar alguem ow matar os nubins e acabam zuando o OT , pelo q eu entendi nem tem q pagar né?? pior ainda =/

 

Mais ta valendo :>

 

Flws ;D

Clica ae pra me ajudar..vlws.

Monsters Game - World 3

shardjeff

Com estudo vamos longe!
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 01/02/11Posts: 102Char no Tibia: Natsu Draganell

Mano eu acho que esse npc pode me ajudar no meu server (não de "Tibia" mas de pokemon online) se vc me ajudar eu dou rep++, é que assim... ele tá ótimo.. mais tinha como ser assim.. se fala "oi", certo.Depois ele pergunta se você tem certeza que quer batalhar.. Ae se dizer "Sim" ele vai sumonando 1 monster de cada vez e só você pode atacar (se for possível) se disser não ele diz "volte quando estiver preparado"... Mano se você conseguir eu sempre que possível te dou REP+++ VIU MANO, VALEU DESDE JÁ!!!!!

Meus trabalhos:

 

 

 

 

Fan Bar

fanbara.png