Ir para conteúdo

[Encerrado] NPC que da clans


Posts Recomendados

Onde eu mudo ou local pra ele levar para o templo que fica localizado ou se puder editar o script pra mim.
Local konoha : x 623 , y 372 , z 7
é pra levar ele pra essas cordenadas e marcas spawn


A script é
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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, Mitsashi, 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, 'mitsashi') then
selfSay('Este clã conjura armas para o combate. Quer ser uma Mitsashi?')
talk_state = 14

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

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

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

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


if 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,'henge no jutsu',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)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotesex 10')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'henge no jutsu',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)
setPlayerMasterPos(cid, 388, 117, 7)
Travel(cid, 0, 388, 117, 7)
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotesex 9')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 6')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'henge no jutsu',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) .. ',/promotesex 5')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'henge no jutsu',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) .. ',/promotesex 4')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 3')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 2')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 11')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 8')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 181')
learnSpell(cid,'kage nui',0)
learnSpell(cid,'kagemane no jutsu',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) .. ',/promotesex 7')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 146')
learnSpell(cid,'kage nui',0)
learnSpell(cid,'kagemane no jutsu',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) .. ',/promotesex 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 29')
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) .. ',/promotesex 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 29')
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) .. ',/promotesex 34')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 31')
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) .. ',/promotesex 35')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 31')
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) .. ',/promotesex 39')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 145')
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,'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) .. ',/promotesex 40')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 145')
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 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) .. ',/promotesex 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotesex 35')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 2')
learnSpell(cid,'raiton no jutsu',0)
learnSpell(cid,'sharingan level 1',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,'juunken',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'kage nui',0)
learnSpell(cid,'tsuuga',0)
learnSpell(cid,'mega soco',0)
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'veneno da flora',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'kikai atack',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) .. ',/promotesex 36')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 2')
learnSpell(cid,'raiton no jutsu',0)
learnSpell(cid,'sharingan level 1',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'chidori',0)
learnSpell(cid,'katon kasumi enbu no jutsu',0)
learnSpell(cid,'raikiri',0)
learnSpell(cid,'senbon chidori',0)
learnSpell(cid,'ultimate raikiri',0)
learnSpell(cid,'kazeno tzul',0)
learnSpell(cid,'cachorros kakashi',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'juunken',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'kage nui',0)
learnSpell(cid,'tsuuga',0)
learnSpell(cid,'mega soco',0)
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'veneno da flora',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'kikai atack',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 == 14 then
if msgcontains(msg, 'yes') and talk_state == 14 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) .. ',/promotesex 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 139')
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'create shuriken',0)
learnSpell(cid,'create fuuma shuriken',0)
learnSpell(cid,'chuva de shurikens',0)
learnSpell(cid,'pergaminhos',0)
learnSpell(cid,'bastao explosivo',0)
learnSpell(cid,'muchaco explosivo',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) .. ',/promotesex 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 139')
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'create shuriken',0)
learnSpell(cid,'create fuuma shuriken',0)
learnSpell(cid,'chuva de shurikens',0)
learnSpell(cid,'pergaminhos',0)
learnSpell(cid,'bastao explosivo',0)
learnSpell(cid,'muchaco explosivo',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 == 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) .. ',/promotesex 40')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 111')
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) .. ',/promotesex 41')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 111')
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

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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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 == 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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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

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

 

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

Acho que seria em Pedidos e Dúvidas - Servidores derivados.. nao lembro..

@Topico: não entendi seu pedido, voce quer saber onde muda as coordenadas para onde o player vai ? no caso o templo ?

-Reportad para ver se está certo ou errado.

Link para o comentário
Compartilhar em outros sites

procure por local konoha no script, é lá que muda as pos, deixei comentado ^^

 

 

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, Mitsashi, 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, 'mitsashi') then
selfSay('Este clã conjura armas para o combate. Quer ser uma Mitsashi?')
talk_state = 14

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

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

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

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


if 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,'henge no jutsu',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)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotesex 10')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'henge no jutsu',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)
setPlayerMasterPos(cid, 388, 117, 7) -- local konoha
Travel(cid, 0, 388, 117, 7)          -- local konoha
talk_state = 20
focus = 0
else
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotesex 9')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 128')
learnSpell(cid,'utevo lux',0)
setPlayerMasterPos(cid, 388, 117, 7) -- local konoha
Travel(cid, 0, 388, 117, 7)          -- local konoha
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) .. ',/promotesex 6')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'henge no jutsu',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) .. ',/promotesex 5')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'henge no jutsu',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) .. ',/promotesex 4')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 3')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 2')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 11')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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,'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) .. ',/promotesex 8')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 181')
learnSpell(cid,'kage nui',0)
learnSpell(cid,'kagemane no jutsu',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) .. ',/promotesex 7')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 146')
learnSpell(cid,'kage nui',0)
learnSpell(cid,'kagemane no jutsu',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) .. ',/promotesex 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 29')
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) .. ',/promotesex 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 29')
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) .. ',/promotesex 34')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 31')
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) .. ',/promotesex 35')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 31')
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) .. ',/promotesex 39')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 145')
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,'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) .. ',/promotesex 40')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 145')
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 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) .. ',/promotesex 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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)
setPlayerStorageValue(cid,600,1)
setPlayerStorageValue(cid,5,1)
if getPlayerSex(cid) == 0 then
selfSay('/makesay ' .. creatureGetName(cid) .. ',/promotesex 35')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 2')
learnSpell(cid,'raiton no jutsu',0)
learnSpell(cid,'sharingan level 1',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,'juunken',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'kage nui',0)
learnSpell(cid,'tsuuga',0)
learnSpell(cid,'mega soco',0)
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'veneno da flora',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'kikai atack',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) .. ',/promotesex 36')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 2')
learnSpell(cid,'raiton no jutsu',0)
learnSpell(cid,'sharingan level 1',0)
learnSpell(cid,'henge no jutsu',0)
learnSpell(cid,'chidori',0)
learnSpell(cid,'katon kasumi enbu no jutsu',0)
learnSpell(cid,'raikiri',0)
learnSpell(cid,'senbon chidori',0)
learnSpell(cid,'ultimate raikiri',0)
learnSpell(cid,'kazeno tzul',0)
learnSpell(cid,'cachorros kakashi',0)
learnSpell(cid,'rasengan',0)
learnSpell(cid,'juunken',0)
learnSpell(cid,'konoha senpuu',0)
learnSpell(cid,'kage nui',0)
learnSpell(cid,'tsuuga',0)
learnSpell(cid,'mega soco',0)
learnSpell(cid,'pirula amarela',0)
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'veneno da flora',0)
learnSpell(cid,'protecao artistica',0)
learnSpell(cid,'doku kiri no jutsu',0)
learnSpell(cid,'kikai atack',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 == 14 then
if msgcontains(msg, 'yes') and talk_state == 14 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) .. ',/promotesex 32')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 139')
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'create shuriken',0)
learnSpell(cid,'create fuuma shuriken',0)
learnSpell(cid,'chuva de shurikens',0)
learnSpell(cid,'pergaminhos',0)
learnSpell(cid,'bastao explosivo',0)
learnSpell(cid,'muchaco explosivo',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) .. ',/promotesex 33')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 139')
learnSpell(cid,'kunais explosion',0)
learnSpell(cid,'create shuriken',0)
learnSpell(cid,'create fuuma shuriken',0)
learnSpell(cid,'chuva de shurikens',0)
learnSpell(cid,'pergaminhos',0)
learnSpell(cid,'bastao explosivo',0)
learnSpell(cid,'muchaco explosivo',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 == 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) .. ',/promotesex 40')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 111')
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) .. ',/promotesex 41')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 111')
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

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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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 == 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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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) .. ',/promotesex 28')
selfSay('/makesay ' .. creatureGetName(cid) .. ',!cmot3416 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

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

  • 4 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...