Ir para conteúdo

[Encerrado] Bug do Narutibia ( Server 7.81 )


marcelom8

Posts Recomendados

Seguinte galera , queria saber se alguem pode criar um sistema de quando falar yes no npc , você mude a roupa pois eu tenho um sistema assim no narutibia mais preciso de outro pois esse tem um bug.

 

Vou postar o meu aqui em baixo : selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 65')

 

Caso não consigam , tambem aceito se alguem souber mudar o comando !ropa4859 , pois eu tentei aqui e não consegui.

 

E outra coisa o meu server é 7.81 de narutibia

 

Esqueci de botar qual é o bug , seguinte o bug é que não só os ADM's usam esse comando os players também , e ja descobriram o meu comando por isso preciso mudar o nome ou de um novo sistema. E se eu botar o comando pra acess 5 , galera não ganha outra outifit no npc

Editado por marcelom8
Link para o comentário
Compartilhar em outros sites

Não entendi, desculpe. Tem um comando que dá uma outfit é isso? E era só para ADM, mas os players descobriram? E não entendi o motivo de não poder usar acess 5...

Creio que você não quer que eles saibam né? No começo da tag desse comando em talkactions.xml adicione isso:

 

<talkaction log="no" 

E assim não aparecerá no Default quando você usar o comando, agora basta mudar o comando e eles não vão descobrir!

Link para o comentário
Compartilhar em outros sites

Cara o problema é que é narutibia 7.81 não tem nem pasta de talkactions , é um comando que muda a outifit do player. tipo ele era Naruto e Vira Itachi , exemplo porém é como se fosse um newtype de hoje em dia só que não sei como fazer para só ADMS usarem sem bugar o Npc.

 

Se eu mudar o Acess e deixar só para ADM's os players n conseguem mudar a outifit

Link para o comentário
Compartilhar em outros sites

http://www.4shared.c...to_of_War.html?

 

Se conseguir concertar o bug eu agradeço muito , e aposto que outros também irão pois esse bug está na maioria dos servers de narutibia

 

Precisa do cliente ?

Editado por marcelom8
Link para o comentário
Compartilhar em outros sites

Faça o seguinte, vá na pasta data/npcs/scripts, procure pelo arquivo Konoha Recruter, abra ele, apague tudo que estiver dentro e adicione isso:

 

focus = 0
talk_start = 0
target = 0
following = false
attacking = false
talk_state = 20
cname = ''
vocation = 0
mainlevel = 8
gstat = 0        -- guild status
grank = ''        -- guild rank
gname = ''        -- guild name
pname = ''        -- name of some other player
maxnamelen = 30
maxranklen = 20
maxnicklen = 20
leaderlevel = 50
NONE = 0
INVITED = 1
MEMBER = 2
VICE = 3
leader = 4
allow_pattern = '^[a-zA-Z0-9 -]+$'

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
 if focus == cid then
    selfSay('Bye.')
    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)
 cname = creatureGetName(cid)
msg = string.lower(msg)
   posK = {x=388, y=117, z=7}
   posS = {x=388, y=117, z=7}
   posM = {x=799, y=420, z=7}
 if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then
if getPlayerSex(cid) == 0 or getPlayerSex(cid) == 28 then
 selfSay('Oi! ' .. cname .. '! Quer se tornar Gennin, e começar o sonho de Naruto?')
 talk_state = 20
 focus = cid
 talk_start = os.clock()
else
selfSay('Sorry, but you alredy chose your village. If not, talk to the Admin.')
talk_state = 0
 focus = cid
end

elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
 selfSay('Desculpe, ' .. cname .. '! Falo com você em um minuto.')

 elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then
 selfSay('Boa sorte, ' .. cname .. '!')
 talk_state = 20
 focus = 0
 talk_start = 0  elseif focus == cid then
 talk_start = os.clock()  

if talk_state == 20 then
 if msgcontains(msg, 'yes') then  -- confirmando decisao
   level = getPlayerLevel(cname)



   if level >= mainlevel then
       selfSay('Olá, eu recruto shinobis para "konoha".')
       talk_state = 1
   else
  selfSay('Você ainda não tem o aprendizado necessário da Academia...')
   talk_state = 20
   end
 else
 --  selfSay('Você não tem level suficiente para escolher seu clã '.. mainlevel ..'.')
   talk_state = 20
 end

 elseif talk_state == 1 then        -- telling vilage
   talk_state = 2

 if msgcontains(msg, 'konoha') then
   selfSay('Agora escolha seu clã. Uzumaki, Aburame, Hyuuga, Rock, Nara, Inuzuka, Haruno, Akimichi, Tenzou, Hatake, Yamanaka, Sai ou Shizune?')
   talk_state = 2  

   else
               selfSay('Sorry, this village does not exists...')
               vocation = 0
               talk_state = 1
           end

elseif talk_state == 2 then        -- telling vilage


 if msgcontains(msg, 'uzumaki') then
  selfSay('Quer mesmo se tornar a lenda? Quer mesmo se tornar o dominador do Kage Bunshin, fuuton, e rasengan?')
   talk_state = 4

elseif msgcontains(msg, 'aburame') then
   selfSay('Este clã controla os kikaichuus para ajuda-los em batalhas. Quer ser um aburame?')
  talk_state = 5

elseif msgcontains(msg, 'hyuuga') then
   selfSay('Este clã controla o poder do byakugan para ajuda-los em batalhas. Quer ser um hyuuga?')
  talk_state = 6

elseif msgcontains(msg, 'rock') then
   selfSay('Este clã usa o taijutsu em batalhas. Quer ser um rock?')
  talk_state = 7

elseif msgcontains(msg, 'nara') then
   selfSay('Este clã controla o poder das sombras para ajuda-los em batalhas. Quer ser um nara?')
  talk_state = 8

elseif msgcontains(msg, 'inuzuka') then
   selfSay('Este clã usa a força selvagem nas batalhas. Quer ser um inuzuka?')
  talk_state = 9

elseif msgcontains(msg, 'haruno') then
   selfSay('Este clã é medicinal, e usa a força do chakra nos punhos e pés . Quer ser uma Haruno?')
  talk_state = 10

elseif msgcontains(msg, 'akimichi') then
   selfSay('Este clã usa o poder das três pirulas, além de aumentar seu corpo para atacar. Quer ser um Akimichi?')
  talk_state = 11

elseif msgcontains(msg, 'tenzou') then
   selfSay('Este clã usa o elemento madeira para lutar. Quer ser um Tenzou?')
  talk_state = 12

elseif msgcontains(msg, 'hatake') then
   selfSay('Este clã é conhecido como os copiadores. Quer ser um Hatake?')
  talk_state = 13

elseif msgcontains(msg, 'sai') then
   selfSay('Este clã usa sua tinta para o combate. Quer ser um Sai?')
  talk_state = 15

elseif msgcontains(msg, 'shizune') then
   selfSay('Este clã usa veneno, medical e a tonton para o combate. Quer ser uma Shizune?')
  talk_state = 16

elseif msgcontains(msg, 'yamanaka') then
   selfSay('Este clã usa o poder da Flora. Quer ser uma Yamanaka?')
  talk_state = 17

   else
               selfSay('Desculpa, mas esse clã não existe.')
               vocation = 0
               talk_state = 2
           end


elseif talk_state == 4 then
 if msgcontains(msg, 'yes') and talk_state == 4 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,1003,1)
learnSpell(cid,'kuchyose no jutsu',0)
learnSpell(cid,'bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu two',0)
learnSpell(cid,'kage bunshin no jutsu three',0)
learnSpell(cid,'tajuu kage bunshin no jutsu',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'oodama rasengan',0)
learnSpell(cid,'fuuton rasen-shuriken',0)
learnSpell(cid,'senen goroshi',0)
learnSpell(cid,'nature control',0)
learnSpell(cid,'luz',0)
learnSpell(cid,'chakra impulse',0)
learnSpell(cid,'kawarimi',0)
learnSpell(cid,'uzumaki naruto rendan',0)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 10')
doCreatureChangeOutfit(cid, 177)
learnSpell(cid,'kuchyose no jutsu',0)
learnSpell(cid,'bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu two',0)
learnSpell(cid,'kage bunshin no jutsu three',0)
learnSpell(cid,'tajuu kage bunshin no jutsu',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'oodama rasengan',0)
learnSpell(cid,'fuuton rasen-shuriken',0)
learnSpell(cid,'senen goroshi',0)
learnSpell(cid,'luz',0)
learnSpell(cid,'chakra impulse',0)
learnSpell(cid,'kawarimi',0)
learnSpell(cid,'uzumaki naruto rendan',0)
setPlayerMasterPos(cid, 388, 117, 7)    
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 9')
doCreatureChangeOutfit(cid, 128)
learnSpell(cid,'utevo lux',0)
setPlayerMasterPos(cid, 388, 117, 7)    
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 5 then
 if msgcontains(msg, 'yes') and talk_state == 5 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
learnSpell(cid,'call kinkai',0)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 6')
doCreatureChangeOutfit(cid, 180)
learnSpell(cid,'chakra impulse',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'kikaichuu no jutsu',0)     
learnSpell(cid,'kikai rastrear',0)         
learnSpell(cid,'kikai atack',0)     
learnSpell(cid,'mushikame no jutsu',0)     
learnSpell(cid,'create kikais',0)
learnSpell(cid,'casulo kikai',0)     
learnSpell(cid,'mushikame invocate',0)     
learnSpell(cid,'kikaischuu no jutsu',0)
learnSpell(cid,'kikai shield',0)         
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 5')
doCreatureChangeOutfit(cid, 23)
learnSpell(cid,'chakra impulse',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'kikaichuu no jutsu',0)     
learnSpell(cid,'kikai rastrear',0)     
learnSpell(cid,'kikai atack',0)     
learnSpell(cid,'mushikame no jutsu',0)     
learnSpell(cid,'casulo kikai',0)     
learnSpell(cid,'kikai shield',0)
learnSpell(cid,'mushikame invocate',0)     
learnSpell(cid,'kikaischuu no jutsu',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 6 then
 if msgcontains(msg, 'yes') and talk_state == 6 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 4')
doCreatureChangeOutfit(cid, 137)
learnSpell(cid,'juunken',0)     
learnSpell(cid,'2 pontos',0)     
learnSpell(cid,'4 pontos',0)     
learnSpell(cid,'8 pontos',0)     
learnSpell(cid,'16 pontos',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'32 pontos',0)     
learnSpell(cid,'64 pontos',0)     
learnSpell(cid,'256 pontos',0)     
learnSpell(cid,'byakugan',0)     
learnSpell(cid,'byakugan impulse',0)     
learnSpell(cid,'ativar byakugan',0)     
learnSpell(cid,'byakugan eyes',0)     
learnSpell(cid,'kaiten',0)     
learnSpell(cid,'hakke rokujuuyon shou',0)     
learnSpell(cid,'hakke hasangeki',0)     
learnSpell(cid,'hakke doujin',0)     
learnSpell(cid,'hakke sanjin',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 3')
doCreatureChangeOutfit(cid, 71)
learnSpell(cid,'juunken',0)     
learnSpell(cid,'2 pontos',0)     
learnSpell(cid,'4 pontos',0)     
learnSpell(cid,'8 pontos',0)     
learnSpell(cid,'16 pontos',0)     
learnSpell(cid,'32 pontos',0)     
learnSpell(cid,'64 pontos',0)     
learnSpell(cid,'256 pontos',0)     
learnSpell(cid,'byakugan',0)     
learnSpell(cid,'byakugan impulse',0)     
learnSpell(cid,'ativar byakugan',0)     
learnSpell(cid,'byakugan eyes',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'kaiten',0)     
learnSpell(cid,'hakke rokujuuyon shou',0)     
learnSpell(cid,'hakke hasangeki',0)     
learnSpell(cid,'hakke doujin',0)     
learnSpell(cid,'hakke sanjin',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 7 then
 if msgcontains(msg, 'yes') and talk_state == 7 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 2')
doCreatureChangeOutfit(cid, 178)
learnSpell(cid,'konoha senpuu',0)     
learnSpell(cid,'konoha dai senpuu',0)     
learnSpell(cid,'konoha gouriki senpuu',0)     
learnSpell(cid,'omote renge',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'ura renge',0)     
learnSpell(cid,'lotus',0)
learnSpell(cid,'samp',0)
learnSpell(cid,'portao inicial',0)     
learnSpell(cid,'portao da energia',0)     
learnSpell(cid,'portao da vida',0)     
learnSpell(cid,'portao do ferimento',0)     
learnSpell(cid,'portao da floresta',0)     
learnSpell(cid,'portao da visao',0)     
learnSpell(cid,'portao da insanidade',0)     
learnSpell(cid,'portao da morte',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 11')
doCreatureChangeOutfit(cid, 130)
learnSpell(cid,'konoha senpuu',0)     
learnSpell(cid,'konoha dai senpuu',0)     
learnSpell(cid,'konoha gouriki senpuu',0)     
learnSpell(cid,'omote renge',0)     
learnSpell(cid,'ura renge',0)     
learnSpell(cid,'lotus',0)     
learnSpell(cid,'samp',0)
learnSpell(cid,'portao inicial',0)     
learnSpell(cid,'portao da energia',0)     
learnSpell(cid,'portao da vida',0)     
learnSpell(cid,'portao do ferimento',0)     
learnSpell(cid,'portao da floresta',0)     
learnSpell(cid,'portao da visao',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'portao da insanidade',0)     
learnSpell(cid,'portao da morte',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 8 then
 if msgcontains(msg, 'yes') and talk_state == 8 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 8')
doCreatureChangeOutfit(cid, 181)
learnSpell(cid,'kage nui',0)     
learnSpell(cid,'chunnin paralize',0)     
learnSpell(cid,'kagemane',0)     
learnSpell(cid,'kage barrer',0)     
learnSpell(cid,'fogen no jutsu',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'kage fuchi no jutsu',0)     
learnSpell(cid,'ultimate kage nui',0)         
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 7')
doCreatureChangeOutfit(cid, 146)
learnSpell(cid,'kage nui',0)     
learnSpell(cid,'kagemane',0)     
learnSpell(cid,'kage barrer',0)     
learnSpell(cid,'fogen no jutsu',0)     
learnSpell(cid,'kage fuchi no jutsu',0)
learnSpell(cid,'henge no jutsu',0)    
learnSpell(cid,'ultimate kage nui',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 9 then
 if msgcontains(msg, 'yes') and talk_state == 9 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 32')
doCreatureChangeOutfit(cid, 143)
learnSpell(cid,'akamaru',0)     
learnSpell(cid,'tsuuga',0)     
learnSpell(cid,'gatsuuga',0)     
learnSpell(cid,'dynamic marking',0)     
learnSpell(cid,'gijuu ninpou-shikyaku no jutsu',0)
learnSpell(cid,'henge no jutsu',0)    
learnSpell(cid,'gijuu ninpou-juujin bunshin',0)     
learnSpell(cid,'garouga',0)         
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 33')
doCreatureChangeOutfit(cid, 143)
learnSpell(cid,'akamaru',0)     
learnSpell(cid,'tsuuga',0)     
learnSpell(cid,'gatsuuga',0)     
learnSpell(cid,'dynamic marking',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'gijuu ninpou-shikyaku no jutsu',0)     
learnSpell(cid,'gijuu ninpou-juujin bunshin',0)     
learnSpell(cid,'garouga',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 10 then
 if msgcontains(msg, 'yes') and talk_state == 10 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 34')
doCreatureChangeOutfit(cid, 136)
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'chyute sio',0)     
learnSpell(cid,'mega chute',0)     
learnSpell(cid,'power rush',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'hp restore',0)     
learnSpell(cid,'hiper chute',0)     
learnSpell(cid,'saikan chuushutsu no jutsu',0)         
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 35')
doCreatureChangeOutfit(cid, 136)
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'chyute sio',0)     
learnSpell(cid,'mega chute',0)     
learnSpell(cid,'power rush',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'hp restore',0)     
learnSpell(cid,'hiper chute',0)     
learnSpell(cid,'saikan chuushutsu no jutsu',0)                 
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 11 then
 if msgcontains(msg, 'yes') and talk_state == 11 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 39')
doCreatureChangeOutfit(cid, 109)
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'asas da divindade',0)
learnSpell(cid,'tres pirulas',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'pirula verde',0)
learnSpell(cid,'bubun baika no jutsu',0)
learnSpell(cid,'bubun baika',0)
learnSpell(cid,'chou baika no jutsu',0)
learnSpell(cid,'pirula vermelha',0)    
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 40')
doCreatureChangeOutfit(cid, 109)
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'asas da divindade',0)
learnSpell(cid,'tres pirulas',0)
learnSpell(cid,'pirula verde',0)
learnSpell(cid,'bubun baika',0)
learnSpell(cid,'chou baika no jutsu',0)
learnSpell(cid,'bubun baika no jutsu',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'pirula vermelha',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 12 then
 if msgcontains(msg, 'yes') and talk_state == 12 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 60')
doCreatureChangeOutfit(cid, 70)
learnSpell(cid,'mokuton impulse',0)         
learnSpell(cid,'henge no jutsu',0)                                                                                                                                                                        
learnSpell(cid,'mokuton no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuuka no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton hijutsu jukai kousan',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton jubaku eisou',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton moku shouheki no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuurou no jutsu',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 60')
doCreatureChangeOutfit(cid, 70)
learnSpell(cid,'mokuton impulse',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuuka no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton hijutsu jukai kousan',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton jubaku eisou',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton moku shouheki no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuurou no jutsu',0)
learnSpell(cid,'henge no jutsu',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 13 then
 if msgcontains(msg, 'yes') and talk_state == 13 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
buy(cid,2390,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 35')
doCreatureChangeOutfit(cid, 2)
learnSpell(cid,'raiton no jutsu',0)     
learnSpell(cid,'chidori',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'katon kasumi enbu no jutsu',0)     
learnSpell(cid,'raikiri',0)     
learnSpell(cid,'senbon chidori',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'doku kiri no jutsu',0)    
learnSpell(cid,'ultimate raikiri',0)             
learnSpell(cid,'pakkun invocate',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 36')
doCreatureChangeOutfit(cid, 2)
learnSpell(cid,'raiton no jutsu',0)         
learnSpell(cid,'chidori',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'katon kasumi enbu no jutsu',0)     
learnSpell(cid,'raikiri',0)     
learnSpell(cid,'senbon chidori',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'doku kiri no jutsu',0)    
learnSpell(cid,'ultimate raikiri',0)             
learnSpell(cid,'pakkun invocate',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 15 then
 if msgcontains(msg, 'yes') and talk_state == 15 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
doCreatureChangeOutfit(cid, 15)
learnSpell(cid,'ninpou choujuu giga rat',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'ninpou choujuu giga lion',0)
learnSpell(cid,'tinta impulse',0)
learnSpell(cid,'casulo artistico',0)
learnSpell(cid,'explosao de tintas',0)    
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
doCreatureChangeOutfit(cid, 15)
learnSpell(cid,'ninpou choujuu giga rat',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'ninpou choujuu giga lion',0)
learnSpell(cid,'tinta impulse',0)
learnSpell(cid,'casulo artistico',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'explosao de tintas',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 16 then
 if msgcontains(msg, 'yes') and talk_state == 16 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
doCreatureChangeOutfit(cid, 172)
learnSpell(cid,'faca de chakra',0)
learnSpell(cid,'create senbon',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'tonton',0)
learnSpell(cid,'veneno letal',0)
learnSpell(cid,'facas de chakra',0)
learnSpell(cid,'jutsu secreto da shizune',0)
learnSpell(cid,'doku impulse',0)
learnSpell(cid,'doku protect',0)
learnSpell(cid,'hiper chute',0)
learnSpell(cid,'chyute sio',0)
learnSpell(cid,'hp restore',0)
learnSpell(cid,'saikan chuushutsu no jutsu',0)
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
doCreatureChangeOutfit(cid, 172)
learnSpell(cid,'faca de chakra',0)
learnSpell(cid,'create senbon',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'tonton',0)
learnSpell(cid,'veneno letal',0)
learnSpell(cid,'facas de chakra',0)
learnSpell(cid,'jutsu secreto da shizune',0)
learnSpell(cid,'doku impulse',0)
learnSpell(cid,'doku protect',0)
learnSpell(cid,'hiper chute',0)
learnSpell(cid,'chyute sio',0)
learnSpell(cid,'hp restore',0)
learnSpell(cid,'saikan chuushutsu no jutsu',0)        
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 17 then
 if msgcontains(msg, 'yes') and talk_state == 17 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 40')
doCreatureChangeOutfit(cid, 142)
learnSpell(cid,'veneno da flora',0)        
learnSpell(cid,'transferencia de mente',0)
learnSpell(cid,'henge no jutsu',0)        
learnSpell(cid,'protecao venenosa',0)        
learnSpell(cid,'casulo da flora',0)        
learnSpell(cid,'jutsu secreto dos yamanaka',0)        
learnSpell(cid,'kuchyose flora no jutsu',0)    
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 41')
doCreatureChangeOutfit(cid, 142)
learnSpell(cid,'veneno da flora',0)        
learnSpell(cid,'transferencia de mente',0)        
learnSpell(cid,'protecao venenosa',0)        
learnSpell(cid,'casulo da flora',0)        
learnSpell(cid,'jutsu secreto dos yamanaka',0)        
learnSpell(cid,'kuchyose flora no jutsu',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

function onCreatureChangeOutfit(creature)

end


function onThink()
if focus > 0 then
x, y, z = creatureGetPosition(focus)
myx, myy, myz = selfGetPosition()
if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then
   selfTurn(0)
end
if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then
   selfTurn(2)
end
   if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then
   selfTurn(1)
end
if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then
   selfTurn(3)
end
if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then
   selfTurn(1)
end
if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then
    selfTurn(3)
end
if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then
    selfTurn(2)
end
if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then
    selfTurn(0)
end
if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then
    selfTurn(1)
end
if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then
    selfTurn(3)
end
if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then
    selfTurn(2)
end
if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then
    selfTurn(0)
end
if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then
    selfTurn(1)
end
if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then
    selfTurn(3)
end
if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then
    selfTurn(2)
end
if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then
    selfTurn(0)
end
end
if focus == 0 then
randmove = math.random(1,50)
if randmove == 1 then
 selfMove(0)
end
if randmove == 2 then
 selfMove(1)
end
if randmove == 3 then
 selfMove(2)
end
if randmove == 4 then
 selfMove(3)
end
end
 if (os.clock() - talk_start) > 45 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
end
end
end
end

 

Boa sorte, poste resultados! BENÇA :))

Link para o comentário
Compartilhar em outros sites

Mostre-me qual erro no Distro!

 

@EDIT

 

Não sei como faz para criar talkactions no 7.81. Acho que é mexendo nas sources ;s

Se eu descobrir aonde fica as talkactions eu resolvo. Bastaria criar outro comando que eles não descobrissem ^^

Editado por Roksas
Link para o comentário
Compartilhar em outros sites

Peço-lhe para que use o NPC original. Descubri que não há solução para teu caso, o motivo: Não tem como adicionar novos comandos em Ots 7.81. Perdão! Aqui está o original, basta substituir:

 

focus = 0
talk_start = 0
target = 0
following = false
attacking = false
talk_state = 20
cname = ''
vocation = 0
mainlevel = 8
gstat = 0        -- guild status
grank = ''        -- guild rank
gname = ''        -- guild name
pname = ''        -- name of some other player
maxnamelen = 30
maxranklen = 20
maxnicklen = 20
leaderlevel = 50
NONE = 0
INVITED = 1
MEMBER = 2
VICE = 3
leader = 4
allow_pattern = '^[a-zA-Z0-9 -]+$'

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
 if focus == cid then
    selfSay('Bye.')
    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)
 cname = creatureGetName(cid)
msg = string.lower(msg)
   posK = {x=388, y=117, z=7}
   posS = {x=388, y=117, z=7}
   posM = {x=799, y=420, z=7}
 if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then
if getPlayerSex(cid) == 0 or getPlayerSex(cid) == 28 then
 selfSay('Oi! ' .. cname .. '! Quer se tornar Gennin, e começar o sonho de Naruto?')
 talk_state = 20
 focus = cid
 talk_start = os.clock()
else
selfSay('Sorry, but you alredy chose your village. If not, talk to the Admin.')
talk_state = 0
 focus = cid
end

elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
 selfSay('Desculpe, ' .. cname .. '! Falo com você em um minuto.')

 elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then
 selfSay('Boa sorte, ' .. cname .. '!')
 talk_state = 20
 focus = 0
 talk_start = 0  elseif focus == cid then
 talk_start = os.clock()  

if talk_state == 20 then
 if msgcontains(msg, 'yes') then  -- confirmando decisao
   level = getPlayerLevel(cname)



   if level >= mainlevel then
       selfSay('Olá, eu recruto shinobis para "konoha".')
       talk_state = 1
   else
  selfSay('Você ainda não tem o aprendizado necessário da Academia...')
   talk_state = 20
   end
 else
 --  selfSay('Você não tem level suficiente para escolher seu clã '.. mainlevel ..'.')
   talk_state = 20
 end

 elseif talk_state == 1 then        -- telling vilage
   talk_state = 2

 if msgcontains(msg, 'konoha') then
   selfSay('Agora escolha seu clã. Uzumaki, Aburame, Hyuuga, Rock, Nara, Inuzuka, Haruno, Akimichi, Tenzou, Hatake, Yamanaka, Sai ou Shizune?')
   talk_state = 2  

   else
               selfSay('Sorry, this village does not exists...')
               vocation = 0
               talk_state = 1
           end

elseif talk_state == 2 then        -- telling vilage


 if msgcontains(msg, 'uzumaki') then
  selfSay('Quer mesmo se tornar a lenda? Quer mesmo se tornar o dominador do Kage Bunshin, fuuton, e rasengan?')
   talk_state = 4

elseif msgcontains(msg, 'aburame') then
   selfSay('Este clã controla os kikaichuus para ajuda-los em batalhas. Quer ser um aburame?')
  talk_state = 5

elseif msgcontains(msg, 'hyuuga') then
   selfSay('Este clã controla o poder do byakugan para ajuda-los em batalhas. Quer ser um hyuuga?')
  talk_state = 6

elseif msgcontains(msg, 'rock') then
   selfSay('Este clã usa o taijutsu em batalhas. Quer ser um rock?')
  talk_state = 7

elseif msgcontains(msg, 'nara') then
   selfSay('Este clã controla o poder das sombras para ajuda-los em batalhas. Quer ser um nara?')
  talk_state = 8

elseif msgcontains(msg, 'inuzuka') then
   selfSay('Este clã usa a força selvagem nas batalhas. Quer ser um inuzuka?')
  talk_state = 9

elseif msgcontains(msg, 'haruno') then
   selfSay('Este clã é medicinal, e usa a força do chakra nos punhos e pés . Quer ser uma Haruno?')
  talk_state = 10

elseif msgcontains(msg, 'akimichi') then
   selfSay('Este clã usa o poder das três pirulas, além de aumentar seu corpo para atacar. Quer ser um Akimichi?')
  talk_state = 11

elseif msgcontains(msg, 'tenzou') then
   selfSay('Este clã usa o elemento madeira para lutar. Quer ser um Tenzou?')
  talk_state = 12

elseif msgcontains(msg, 'hatake') then
   selfSay('Este clã é conhecido como os copiadores. Quer ser um Hatake?')
  talk_state = 13

elseif msgcontains(msg, 'sai') then
   selfSay('Este clã usa sua tinta para o combate. Quer ser um Sai?')
  talk_state = 15

elseif msgcontains(msg, 'shizune') then
   selfSay('Este clã usa veneno, medical e a tonton para o combate. Quer ser uma Shizune?')
  talk_state = 16

elseif msgcontains(msg, 'yamanaka') then
   selfSay('Este clã usa o poder da Flora. Quer ser uma Yamanaka?')
  talk_state = 17

   else
               selfSay('Desculpa, mas esse clã não existe.')
               vocation = 0
               talk_state = 2
           end


elseif talk_state == 4 then
 if msgcontains(msg, 'yes') and talk_state == 4 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,1003,1)
learnSpell(cid,'kuchyose no jutsu',0)
learnSpell(cid,'bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu two',0)
learnSpell(cid,'kage bunshin no jutsu three',0)
learnSpell(cid,'tajuu kage bunshin no jutsu',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'oodama rasengan',0)
learnSpell(cid,'fuuton rasen-shuriken',0)
learnSpell(cid,'senen goroshi',0)
learnSpell(cid,'nature control',0)
learnSpell(cid,'luz',0)
learnSpell(cid,'chakra impulse',0)
learnSpell(cid,'kawarimi',0)
learnSpell(cid,'uzumaki naruto rendan',0)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 10')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 177')
learnSpell(cid,'kuchyose no jutsu',0)
learnSpell(cid,'bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu',0)
learnSpell(cid,'kage bunshin no jutsu two',0)
learnSpell(cid,'kage bunshin no jutsu three',0)
learnSpell(cid,'tajuu kage bunshin no jutsu',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'oodama rasengan',0)
learnSpell(cid,'fuuton rasen-shuriken',0)
learnSpell(cid,'senen goroshi',0)
learnSpell(cid,'luz',0)
learnSpell(cid,'chakra impulse',0)
learnSpell(cid,'kawarimi',0)
learnSpell(cid,'uzumaki naruto rendan',0)
setPlayerMasterPos(cid, 388, 117, 7)    
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 9')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 128')
learnSpell(cid,'utevo lux',0)
setPlayerMasterPos(cid, 388, 117, 7)    
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 5 then
 if msgcontains(msg, 'yes') and talk_state == 5 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
learnSpell(cid,'call kinkai',0)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 6')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 180')
learnSpell(cid,'chakra impulse',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'kikaichuu no jutsu',0)     
learnSpell(cid,'kikai rastrear',0)         
learnSpell(cid,'kikai atack',0)     
learnSpell(cid,'mushikame no jutsu',0)     
learnSpell(cid,'create kikais',0)
learnSpell(cid,'casulo kikai',0)     
learnSpell(cid,'mushikame invocate',0)     
learnSpell(cid,'kikaischuu no jutsu',0)
learnSpell(cid,'kikai shield',0)         
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 5')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 23')
learnSpell(cid,'chakra impulse',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'kikaichuu no jutsu',0)     
learnSpell(cid,'kikai rastrear',0)     
learnSpell(cid,'kikai atack',0)     
learnSpell(cid,'mushikame no jutsu',0)     
learnSpell(cid,'casulo kikai',0)     
learnSpell(cid,'kikai shield',0)
learnSpell(cid,'mushikame invocate',0)     
learnSpell(cid,'kikaischuu no jutsu',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 6 then
 if msgcontains(msg, 'yes') and talk_state == 6 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 4')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 137')
learnSpell(cid,'juunken',0)     
learnSpell(cid,'2 pontos',0)     
learnSpell(cid,'4 pontos',0)     
learnSpell(cid,'8 pontos',0)     
learnSpell(cid,'16 pontos',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'32 pontos',0)     
learnSpell(cid,'64 pontos',0)     
learnSpell(cid,'256 pontos',0)     
learnSpell(cid,'byakugan',0)     
learnSpell(cid,'byakugan impulse',0)     
learnSpell(cid,'ativar byakugan',0)     
learnSpell(cid,'byakugan eyes',0)     
learnSpell(cid,'kaiten',0)     
learnSpell(cid,'hakke rokujuuyon shou',0)     
learnSpell(cid,'hakke hasangeki',0)     
learnSpell(cid,'hakke doujin',0)     
learnSpell(cid,'hakke sanjin',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 3')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 71')
learnSpell(cid,'juunken',0)     
learnSpell(cid,'2 pontos',0)     
learnSpell(cid,'4 pontos',0)     
learnSpell(cid,'8 pontos',0)     
learnSpell(cid,'16 pontos',0)     
learnSpell(cid,'32 pontos',0)     
learnSpell(cid,'64 pontos',0)     
learnSpell(cid,'256 pontos',0)     
learnSpell(cid,'byakugan',0)     
learnSpell(cid,'byakugan impulse',0)     
learnSpell(cid,'ativar byakugan',0)     
learnSpell(cid,'byakugan eyes',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'kaiten',0)     
learnSpell(cid,'hakke rokujuuyon shou',0)     
learnSpell(cid,'hakke hasangeki',0)     
learnSpell(cid,'hakke doujin',0)     
learnSpell(cid,'hakke sanjin',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 7 then
 if msgcontains(msg, 'yes') and talk_state == 7 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 2')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 178')
learnSpell(cid,'konoha senpuu',0)     
learnSpell(cid,'konoha dai senpuu',0)     
learnSpell(cid,'konoha gouriki senpuu',0)     
learnSpell(cid,'omote renge',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'ura renge',0)     
learnSpell(cid,'lotus',0)
learnSpell(cid,'samp',0)
learnSpell(cid,'portao inicial',0)     
learnSpell(cid,'portao da energia',0)     
learnSpell(cid,'portao da vida',0)     
learnSpell(cid,'portao do ferimento',0)     
learnSpell(cid,'portao da floresta',0)     
learnSpell(cid,'portao da visao',0)     
learnSpell(cid,'portao da insanidade',0)     
learnSpell(cid,'portao da morte',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 11')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 130')
learnSpell(cid,'konoha senpuu',0)     
learnSpell(cid,'konoha dai senpuu',0)     
learnSpell(cid,'konoha gouriki senpuu',0)     
learnSpell(cid,'omote renge',0)     
learnSpell(cid,'ura renge',0)     
learnSpell(cid,'lotus',0)     
learnSpell(cid,'samp',0)
learnSpell(cid,'portao inicial',0)     
learnSpell(cid,'portao da energia',0)     
learnSpell(cid,'portao da vida',0)     
learnSpell(cid,'portao do ferimento',0)     
learnSpell(cid,'portao da floresta',0)     
learnSpell(cid,'portao da visao',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'portao da insanidade',0)     
learnSpell(cid,'portao da morte',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 8 then
 if msgcontains(msg, 'yes') and talk_state == 8 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 8')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 181')
learnSpell(cid,'kage nui',0)     
learnSpell(cid,'chunnin paralize',0)     
learnSpell(cid,'kagemane',0)     
learnSpell(cid,'kage barrer',0)     
learnSpell(cid,'fogen no jutsu',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'kage fuchi no jutsu',0)     
learnSpell(cid,'ultimate kage nui',0)         
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 7')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 146')
learnSpell(cid,'kage nui',0)     
learnSpell(cid,'kagemane',0)     
learnSpell(cid,'kage barrer',0)     
learnSpell(cid,'fogen no jutsu',0)     
learnSpell(cid,'kage fuchi no jutsu',0)
learnSpell(cid,'henge no jutsu',0)    
learnSpell(cid,'ultimate kage nui',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 9 then
 if msgcontains(msg, 'yes') and talk_state == 9 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 143')
learnSpell(cid,'akamaru',0)     
learnSpell(cid,'tsuuga',0)     
learnSpell(cid,'gatsuuga',0)     
learnSpell(cid,'dynamic marking',0)     
learnSpell(cid,'gijuu ninpou-shikyaku no jutsu',0)
learnSpell(cid,'henge no jutsu',0)    
learnSpell(cid,'gijuu ninpou-juujin bunshin',0)     
learnSpell(cid,'garouga',0)         
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 143')
learnSpell(cid,'akamaru',0)     
learnSpell(cid,'tsuuga',0)     
learnSpell(cid,'gatsuuga',0)     
learnSpell(cid,'dynamic marking',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'gijuu ninpou-shikyaku no jutsu',0)     
learnSpell(cid,'gijuu ninpou-juujin bunshin',0)     
learnSpell(cid,'garouga',0)             
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 10 then
 if msgcontains(msg, 'yes') and talk_state == 10 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 34')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 136')
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'chyute sio',0)     
learnSpell(cid,'mega chute',0)     
learnSpell(cid,'power rush',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'hp restore',0)     
learnSpell(cid,'hiper chute',0)     
learnSpell(cid,'saikan chuushutsu no jutsu',0)         
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 35')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 136')
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'chyute sio',0)     
learnSpell(cid,'mega chute',0)     
learnSpell(cid,'power rush',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'hp restore',0)     
learnSpell(cid,'hiper chute',0)     
learnSpell(cid,'saikan chuushutsu no jutsu',0)                 
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 11 then
 if msgcontains(msg, 'yes') and talk_state == 11 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 39')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 109')
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'asas da divindade',0)
learnSpell(cid,'tres pirulas',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'pirula verde',0)
learnSpell(cid,'bubun baika no jutsu',0)
learnSpell(cid,'bubun baika',0)
learnSpell(cid,'chou baika no jutsu',0)
learnSpell(cid,'pirula vermelha',0)    
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 40')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 109')
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'asas da divindade',0)
learnSpell(cid,'tres pirulas',0)
learnSpell(cid,'pirula verde',0)
learnSpell(cid,'bubun baika',0)
learnSpell(cid,'chou baika no jutsu',0)
learnSpell(cid,'bubun baika no jutsu',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'pirula vermelha',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 12 then
 if msgcontains(msg, 'yes') and talk_state == 12 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 60')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 70')
learnSpell(cid,'mokuton impulse',0)         
learnSpell(cid,'henge no jutsu',0)                                                                                                                                                                        
learnSpell(cid,'mokuton no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuuka no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton hijutsu jukai kousan',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton jubaku eisou',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton moku shouheki no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuurou no jutsu',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 60')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 70')
learnSpell(cid,'mokuton impulse',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuuka no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton hijutsu jukai kousan',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton jubaku eisou',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton moku shouheki no jutsu',0)                                                                                                                                                                                 
learnSpell(cid,'mokuton shichuurou no jutsu',0)
learnSpell(cid,'henge no jutsu',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 13 then
 if msgcontains(msg, 'yes') and talk_state == 13 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
buy(cid,2390,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 35')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 2')
learnSpell(cid,'raiton no jutsu',0)     
learnSpell(cid,'chidori',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'katon kasumi enbu no jutsu',0)     
learnSpell(cid,'raikiri',0)     
learnSpell(cid,'senbon chidori',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'doku kiri no jutsu',0)    
learnSpell(cid,'ultimate raikiri',0)             
learnSpell(cid,'pakkun invocate',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 36')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 2')
learnSpell(cid,'raiton no jutsu',0)         
learnSpell(cid,'chidori',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'katon kasumi enbu no jutsu',0)     
learnSpell(cid,'raikiri',0)     
learnSpell(cid,'senbon chidori',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'mega soco',0)     
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'doku kiri no jutsu',0)    
learnSpell(cid,'ultimate raikiri',0)             
learnSpell(cid,'pakkun invocate',0)     
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 15 then
 if msgcontains(msg, 'yes') and talk_state == 15 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 15')
learnSpell(cid,'ninpou choujuu giga rat',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'ninpou choujuu giga lion',0)
learnSpell(cid,'tinta impulse',0)
learnSpell(cid,'casulo artistico',0)
learnSpell(cid,'explosao de tintas',0)    
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 15')
learnSpell(cid,'ninpou choujuu giga rat',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'ninpou choujuu giga lion',0)
learnSpell(cid,'tinta impulse',0)
learnSpell(cid,'casulo artistico',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'explosao de tintas',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 16 then
 if msgcontains(msg, 'yes') and talk_state == 16 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 172')
learnSpell(cid,'faca de chakra',0)
learnSpell(cid,'create senbon',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'tonton',0)
learnSpell(cid,'veneno letal',0)
learnSpell(cid,'facas de chakra',0)
learnSpell(cid,'jutsu secreto da shizune',0)
learnSpell(cid,'doku impulse',0)
learnSpell(cid,'doku protect',0)
learnSpell(cid,'hiper chute',0)
learnSpell(cid,'chyute sio',0)
learnSpell(cid,'hp restore',0)
learnSpell(cid,'saikan chuushutsu no jutsu',0)
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 172')
learnSpell(cid,'faca de chakra',0)
learnSpell(cid,'create senbon',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'tonton',0)
learnSpell(cid,'veneno letal',0)
learnSpell(cid,'facas de chakra',0)
learnSpell(cid,'jutsu secreto da shizune',0)
learnSpell(cid,'doku impulse',0)
learnSpell(cid,'doku protect',0)
learnSpell(cid,'hiper chute',0)
learnSpell(cid,'chyute sio',0)
learnSpell(cid,'hp restore',0)
learnSpell(cid,'saikan chuushutsu no jutsu',0)        
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

if talk_state == 17 then
 if msgcontains(msg, 'yes') and talk_state == 17 then
setPlayerVocation(cid,1)
buy(cid,2381,1,0)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 40')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 142')
learnSpell(cid,'veneno da flora',0)        
learnSpell(cid,'transferencia de mente',0)
learnSpell(cid,'henge no jutsu',0)        
learnSpell(cid,'protecao venenosa',0)        
learnSpell(cid,'casulo da flora',0)        
learnSpell(cid,'jutsu secreto dos yamanaka',0)        
learnSpell(cid,'kuchyose flora no jutsu',0)    
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'chakra impulse',0)             
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotedsx 41')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!ropa4859 142')
learnSpell(cid,'veneno da flora',0)        
learnSpell(cid,'transferencia de mente',0)        
learnSpell(cid,'protecao venenosa',0)        
learnSpell(cid,'casulo da flora',0)        
learnSpell(cid,'jutsu secreto dos yamanaka',0)        
learnSpell(cid,'kuchyose flora no jutsu',0)            
learnSpell(cid,'kawarimi',0)     
learnSpell(cid,'luz',0)     
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'chakra impulse',0)
setPlayerMasterPos(cid,388,117,7)
Travel(cid, 0, 388, 117, 7)        
talk_state = 20
focus = 0
end
end
end

function onCreatureChangeOutfit(creature)

end


function onThink()
if focus > 0 then
x, y, z = creatureGetPosition(focus)
myx, myy, myz = selfGetPosition()
if ((myy-y==0) and (myx-x<=0 and myx-x>=-4)) then
   selfTurn(0)
end
if ((myy-y==0) and (myx-x>=0 and myx-x<=4)) then
   selfTurn(2)
end
   if ((myx-x==0) and (myy-y<=0 and myy-y>=-4)) then
   selfTurn(1)
end
if ((myx-x==0) and (myy-y>=0 and myy-y<=4)) then
   selfTurn(3)
end
if ((myy-y==-2) and (myx-x>=-1 and myx-x<=1)) then
   selfTurn(1)
end
if ((myy-y==2) and (myx-x>=-1 and myx-x<=1)) then
    selfTurn(3)
end
if ((myx-x==2) and (myy-y>=-1 and myy-y<=1)) then
    selfTurn(2)
end
if ((myx-x==-2) and (myy-y>=-1 and myy-y<=1)) then
    selfTurn(0)
end
if ((myy-y==-3) and (myx-x>=-2 and myx-x<=2)) then
    selfTurn(1)
end
if ((myy-y==3) and (myx-x>=-2 and myx-x<=2)) then
    selfTurn(3)
end
if ((myx-x==3) and (myy-y>=-2 and myy-y<=2)) then
    selfTurn(2)
end
if ((myx-x==-3) and (myy-y>=-2 and myy-y<=2)) then
    selfTurn(0)
end
if ((myy-y==-4) and (myx-x>=-3 and myx-x<=3)) then
    selfTurn(1)
end
if ((myy-y==4) and (myx-x>=-3 and myx-x<=3)) then
    selfTurn(3)
end
if ((myx-x==4) and (myy-y>=-3 and myy-y<=3)) then
    selfTurn(2)
end
if ((myx-x==-4) and (myy-y>=-3 and myy-y<=3)) then
    selfTurn(0)
end
end
if focus == 0 then
randmove = math.random(1,50)
if randmove == 1 then
 selfMove(0)
end
if randmove == 2 then
 selfMove(1)
end
if randmove == 3 then
 selfMove(2)
end
if randmove == 4 then
 selfMove(3)
end
end
 if (os.clock() - talk_start) > 45 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
end
end
end
end

Link para o comentário
Compartilhar em outros sites

  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...