NI

Npc Assistente

Por Nick, 12 de nov. de 2005 em NPCs, monsters e raids

script
7
3.5k
NickN
12 de novembro de 2005 às 23:55

crie um arkivo.xml ou copie qualquer 1 e ponha na pasta npc

renomeie para Assistente do Server.

abra e cole isso

 

<?xml version="1.0" ?>  <npc name="Assistente Do Server" script="data/npc/scripts/cartoon.lua" access="3" lookdir="1">  <health now="1000" max="1000" />   <look type="75" head="0" body="95" legs="0" feet="95" corpse="3128" />   </npc>

 

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	endend

 

pronto 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...

1 mês depois...
19921
04 de dezembro de 2005 às 23:06

ow...mais quando eu vo por o x.y.z...como q eu ponho o nome dele lah?

PikkenoP
06 de dezembro de 2005 às 11:35

poe Assitente do Server

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...
gutococaG
21 de março de 2006 às 21:28

legalzinho este npc

1 ano depois...
skynagerloasS
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.

Guiii~G
28 de maio de 2007 às 19:14

Até que é bonzinho ;]

 

se colocasse mais falas e mais funções pudia ficar melhor!

 

Thx