[hot²]npc Que Helpa E Que Sumona!

leofera23
em NPCs, monsters e raids

leofera23

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 14/04/08Posts: 16Char no Tibia: leofera23

NPC SUMONER E AJUDANTE BY LÉO

 

DOwnload: AQUI!

SCAN:AQUI!

 

Bem...ai estão as configurações do meu OT...

Pra vc poder usar o NPC ao seu favo faça o seguinte:

 

-- Script de SUMONER NPC

-- By Léo

 

local focus = 0

local talk_start = 0

local target = 0

local following = false

local attacking = false

 

function onThingMove(creature, thing, oldpos, oldstackpos)

 

end

 

 

function onCreatureAppear(creature)

 

end

 

 

function onCreatureDisappear(cid, pos)

if focus == cid then

selfSay('adeus então.')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureTurn(creature)

 

end

 

 

function msgcontains(txt, str)

return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

end

 

 

function onCreatureSay(cid, type, msg)

local msg = string.lower(msg)

 

if msgcontains(msg, 'hi') and focus == 0 and getDistanceToCreature(cid) < 4 then

selfSay('Olá ' .. creatureGetName(cid) .. '! Estou aqui para ajuda-lo! Em que você tem duvida? "trainers" "npcs" "localizaçao" "dp" "sobre o server" "equipe de GODs"?"mais"')

focus = cid

talk_start = os.clock()

 

elseif msgcontains(msg, 'hi') and focus ~= cid and getDistanceToCreature(cid) < 4 then

selfSay('Espere, ' .. creatureGetName(cid) .. '! Eu falo com você daqui a pouco.')

 

elseif focus == cid then

talk_start = os.clock()

 

if msgcontains(msg, 'trainers') then

selfSay('Os trainers serão encontrados se você for para o andar superior.')

elseif msgcontains(msg, 'npcs') then

selfSay('Temos muitos npcs em diferentes cidades! se você procurar atentamente ao redor do temple...você achará muitos!')

elseif msgcontains(msg, 'localizaçao') then

selfSay('Ponha aki.')

elseif msgcontains(msg, 'dp') then

selfSay('Ponha aki')

elseif msgcontains(msg, 'sobre o server') then

selfSay('Escreva aki')

elseif msgcontains(msg, 'equipe de GODs') then

selfSay('aki!')

elseif msgcontains(msg, 'mais') then

selfSay('eskreva aki...mas deixe o >>> "treinar"')

elseif msgcontains(msg, 'equipe de GMs') then

selfSay('aki')

elseif msgcontains(msg, 'equipe de tutores') then

selfSay('aki')

elseif msgcontains(msg, 'treinar') then

selfSay('Eu posso sumonar: Demon, wolf, treiner, demodras, dragon, dragon lord, scarab, caio of the cult (Não peça para sumonar se não tiver lvl 3000+)')

elseif msgcontains(msg, 'demon') then

selfSay('/m demon')

elseif msgcontains(msg, 'wolf') then

selfSay('/m wolf')

elseif msgcontains(msg, 'treiner') then

selfSay('/m treiner')

elseif msgcontains(msg, 'demodras') then

selfSay('/m demodras')

elseif msgcontains(msg, 'dragon') then

selfSay('/m dragon')

elseif msgcontains(msg, 'dragon lord') then

selfSay('/m dragon lord')

elseif msgcontains(msg, 'scarab') then

selfSay('/m scarab')

elseif msgcontains(msg, 'caio of the cult') then

selfSay('CUIDADO! CONFIRME: "sim eu confirmo"')

elseif msgcontains(msg, 'sim eu confirmo') then

selfSay('/m caio of the cult')

elseif msgcontains(msg, 'vlw') then

selfSay('de nada! esse é o meu trabalho!')

elseif msgcontains(msg, 'eu usei') then

selfSay('/B ' .. creatureGetName(cid) .. ' Usou o Sumoner NPC')

 

elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then

selfSay('Bom divertimento, ' .. creatureGetName(cid) .. '!')

focus = 0

talk_start = 0

end

end

end

 

function onCreatureChangeOutfit(creature)

 

end

 

 

function onThink()

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

if focus > 0 then

selfSay('Próximo...')

end

focus = 0

end

if focus ~= 0 then

if getDistanceToCreature(focus) > 5 then

selfSay('Tchau!')

focus = 0

end

end

end

 

Bem...ta ai!

Vlw!!!! :party:

speedyks

=]
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 11/07/07Posts: 177Char no Tibia: Eorah Khaderu

Depos de muito tempo afastado do xtibia por problemas pessoais, estou de volta e me deparo com um ótimo post.

muito bom.

 

Parabéns por seu trabalho.

Gift By: Slip



akamajpg.jpg

tadzio

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/09/07Posts: 85Char no Tibia: Revaux

NPC que HELPA deve ser a mulher do NPC que HELP né. ¬¬

 

//Tádzio.

Imtheman

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 07/11/07Posts: 27Char no Tibia: xxx

Grande Léeo

O post fikou maravlihoso... mas o NPV no nosso OT fiko melhor ainda ;]

 

1178fd15474734b67bf7a8f9434375fc0.1.gif

 

1bd6f93656b7b4ff387432c694b8ea8c3.1.gif

 

1817ff5be6f3f45b58e60302e7ba40113.1.gif