Ir para conteúdo

Posts Recomendados

HEHe resolvi posta um npc meio inutio bom para acabar com cara de spam xatos xD Ele Solta Ue xD

 

vai ai!

coloque isso na npc/script e crie um arquivo . lua antes

renomeie para " Jeo Sim "

target = 0

following = false

attacking = false

 

function onThingMove(creature, thing, oldpos, oldstackpos)

 

end

 

 

function onCreatureAppear(creature)

 

end

 

 

function onCreatureDisappear(id)

if id == target then

  target = 0

  attacking = false

  selfAttackCreature(0)

  following = false

end

end

 

 

function onCreatureTurn(creature)

 

end

 

 

function onCreatureSay(cid, type, msg)

msg = string.lower(msg)

if string.find(msg, '(%a*)hi(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)a(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)b(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)c(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)d(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)f(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)g(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)h(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)i(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)j(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)k(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)l(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)m(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

if string.find(msg, '(%a*)n(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)o(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)p(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)q(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)r(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)s(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)t(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)u(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)v(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)x(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)z(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)w(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)y(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)1(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)2(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)3(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)4(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)5(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)6(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)7(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)8(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)9(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)0(%a*)') then

selfSay('exevo gran mas vis')

selfSay('Aff mais vc e um noob mesmo. Noobao!!!')

end

 

if string.find(msg, '(%a*)bye(%a*)') then

selfSay('See ya, ' .. creatureGetName(cid) .. '!')

selfSay('And remember: never travel without a life fluid!')

end

 

-- Isso eh pra algum npc t vender algo. xD

--if string.find(msg, '(%a*)buy fishing rod(%a*)') then

-- sell(cid,2148,50,2580,1)

--end

 

end

 

 

function onCreatureChangeOutfit(creature)

 

end

 

 

function onThink()

--nothing special has happened

--but perhaps we want to do an action?

if following == true then

  moveToCreature(target)

  return

end

if attacking == true then

  dist = getDistanceToCreature(target)

  if dist == nil then

  selfGotoIdle()

  return

  end

  if dist <= 1 then

  selfAttackCreature(target)

  else

  moveToCreature(target)

  end

end

end

 

depois crie um xml e coloque isso :

<?xml version="1.0"?>

 

<npc name="Jeo Sim" script="data/npc/scripts/Jeo Sim.lua" access="3" pushable="0" lookdir="2">

<mana now="800" max="800"/>

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

<look type="134" head="38" body="79" legs="98" feet="0" corpse="2276"/>

<attack type="melee" damage="10"/>     

</npc>

 

Renomei para : Jeo Sim

 

Acabou espero q gostem!

Link para o comentário
https://xtibia.com/forum/topic/37769-npc-acabador-de-spam/
Compartilhar em outros sites

  • 4 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...

Pra te manda a verdade ele não acaba com o spam, mesmo depois que o char do cara morre o spam continua na tela por um tempo, e além do mais pra que o cara vai fazer spam perto do npc ou o GOD vai fika carregando ele pra todo lado,

 

Praticamente Inútil / Reprovado :sleeping:

 

Sem mais,

Chapadaum.

Link para o comentário
https://xtibia.com/forum/topic/37769-npc-acabador-de-spam/#findComment-299383
Compartilhar em outros sites

  • 2 weeks later...
  • 4 weeks later...

esse NPC ai eh o Chuck Norris vc chega perto dele e fala "eae, kole amigasso"

ai o NPC vem e !!!!KBUMMMM!!!!! You are dead.

desse geito daki a poko vai chegar eu com meu GM ou GOD vo falar com ele e vo morrer tbm :blink: :blink:

Link para o comentário
https://xtibia.com/forum/topic/37769-npc-acabador-de-spam/#findComment-318720
Compartilhar em outros sites

  • 9 months later...
  • 5 weeks later...
×
×
  • Criar Novo...