[7.6] Npc Misterioso

denilson6
em NPCs, monsters e raids

denilson6

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 18/10/06Posts: 50

Hmmm... quem aí já assistiu filme de suspense?? Quem jah assistiu já deve ter visto cenas em que o personagem principal está procurando uma pessoa e quando ele encontra essa pessoa, ela desaparece ou foje! pois é... estarei postando isso aki hoje! Foi 100% eu q fiz...

 

-- the id of the creature we are attacking, following, etc.  ox = 219  oy = 106  oz = 7  max = 2  focus = 0  talk_start = 0  target = 0  following = false  attacking = false    function onThingMove(creature, thing, oldpos, oldstackpos)    end      function onCreatureAppear(creature)    end      function onCreatureDisappear(cid, pos) 	 if focus == cid then          selfSay('/invisible')          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) 	 msg = string.lower(msg)   	 if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then    selfSay('/invisible')    selfSay('Nao fale comigo!!!')    focus = cid    talk_start = os.clock() 	 end  if string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then    selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') 	 end 	 if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then    selfSay('/invisible')    focus = 0    talk_start = 0 	 end  end      function onCreatureChangeOutfit(creature)    end     function onThink()  if (os.clock() - talk_start) > 30 then  if focus > 0 then  selfSay('/invisible')  talkcount = 0 end  focus = 0  itemid = 0 talk_start = 0  end  	 if focus ~= 0 then    if getDistanceToCreature(focus) > 5 then   	 selfSay('/invisible')   	 focus = 0    end if focus > 0 then 	 TurnToPlayer(focus)  end if(focus == 0) then moveRandom(ox,oy,max) end end end

 

OMG!!!Mass... denilson... pra que ele serve? Serve para servidores de RPG, mas se você for adicionar, deve por mais funçoes nele! o q eu estou propondo a vocês é a ideia...

Breve RECOMENDAÇÕES!

--Use um outfit de monk... dará mais suspense!

--Coloque para ele acess de GM senão não vai funcionar!

Possíveis BUGS

--Talvez se você adicionar uma função para quando ele estiver invisível, tem uma certa chance de funcionar por motivos de invisibilidade, mas não tenho certeza!

Coments?...



-~-~-~-~-~-~-~-~-~-~-~-~-

Eu não sei que armas serão usadas na 3ª Guerra Mundial, mas as armas usadas na 4ª Guerra Mundial serão paus e pedras - Albert Eisten

-==-
-==-
-==-
-=Três caras que sabem fazer um OTServ Perfeito!=-

QUOTE
03:46 Escadinha [26]: mas vc nem fez nda
03:46 Escadinha [26]: UIHAEUIAEHIHAUEIAH
03:46 Forest Soul [17]: eu sei
03:46 Escadinha [26]: zuera
03:46 Escadinha [26]: fez sim
03:46 Escadinha [26]: :p
03:46 Forest Soul [17]: fiz n

sepito

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 20/12/06Posts: 5

pessimo... soh fez um npc q aparece e some...

kilds

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/01/06Posts: 3

desculpa o npc creator neh

aew cara gostei da tua ideia

naum liga pra esse troxa invejoso

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]