ow...mais quando eu vo por o x.y.z...como q eu ponho o nome dele lah?
- Fórum
- OTServ
- Recursos
- Scripting
- NPCs, monsters e raids
- Npc Assistente
7
3.5k
1 mês depois...
04 de dezembro de 2005 às 23:06
06 de dezembro de 2005 às 11:35
poe Assitente do Server
info
Grupo: Campones
Registrado: 11/11/05
Posts: 10
Reputação: 0
07 de dezembro de 2005 às 15:30
ele podia dar + informações e fazer + coisa hein
Gente vamos por a cabeça pra funcionar!
3 meses depois...
21 de março de 2006 às 21:28
legalzinho este npc
1 ano depois...
info
Grupo: Herói
Registrado: 12/11/05
Posts: 715
Reputação: +1
Char no Tibia: Lord'Skyxt

25 de maio de 2007 às 14:32
Tópico contendo somente 1 NpC,
essa seção é para DataPacks com 3 ou mais Npcs,
~o{Tópico Movido}o~,
Abraços.



info
Grupo: Campones
Registrado: 29/09/05
Posts: 2
Reputação: 0
crie um arkivo.xml ou copie qualquer 1 e ponha na pasta npc
renomeie para Assistente do Server.
abra e cole isso
agora entre na pasta de scripts e copie qualquer um la e renomeie pra cartoon.lua
e la cole isso
focus = 0talk_start = 0target = 0following = falseattacking = falsefunction onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg) msg = string.lower(msg) if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Seja Bem Vindo ' .. creatureGetName(cid) .. '! estou aki para ajudar vc, para ir ao dp digite: (dp) o site de acc e o http://sohloko8b.no-ip.info:8090 :)') focus = cid talk_start = os.clock() end if string.find(msg, '(%a*)nk(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Tipow, ' .. creatureGetName(cid) .. '! Tem So Um Admin Que Eh o GOD Pikkeno.') focus = cid talk_start = os.clock() end if msgcontains(msg, 'dp') and focus == cid then if pay(cid,0) then selfSay('Let\'s go!') selfSay('/send ' .. creatureGetName(cid) .. ', 130 53 6') focus = 0 talk_start = 0 else selfSay('Sorry, you don\'t have enough money.') talk_start = os.clock() end end end if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then selfSay('Se Divirta Site http://sohloko8b.no-ip.info:8090 , ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 endendfunction onCreatureChangeOutfit(creature)endfunction onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end endendpronto agora eh soh abrir o npc.xml q ta na pasta world e colocar onde vai ser o respawn dele
aconselho por ele no templo
soh isso
fuiz...
Creditos ao GM Addict...