Parabéns pelo tutorial.
Continue assim,trazendo conteudo.
Obrigado,MrCatra
Por PostadorHunter, 26 de set. de 2012 em Tutoriais para Iniciantes
Parabéns pelo tutorial.
Continue assim,trazendo conteudo.
Obrigado,MrCatra
info
Grupo: Herói
Registrado: 12/06/12
Posts: 1k
Reputação: +362
Gênero: Masculino
Char no Tibia: Aarow

vlw mano muito bom min ajudo Muito !!!
info
Grupo: Herói
Registrado: 05/11/07
Posts: 544
Reputação: +70

Tutorial aprovado, movido para seção correta.
Atenciosamente, Critical.
Agora eu estava vendo aqui.
Fala galera do absoft hoje vou terminar o tutorial de como criar vocations em wodbo 8.0
absoft?
Coloque os creditos de onde vc pegou.
alguem pode ma juda quando os players vao atk level mais alto nao da e aparece isso: you is to strong for you
info
Grupo: Conde
Registrado: 10/12/11
Posts: 962
Reputação: +99
Gênero: Masculino

eu que fiz o tutorialAgora eu estava vendo aqui.
Fala galera do absoft hoje vou terminar o tutorial de como criar vocations em wodbo 8.0
absoft?
Coloque os creditos de onde vc pegou.
eu tinha postado la
so peguei e coloquei aqui
esqueci de muda essa parte
editei ja
qual seu server ?alguem pode ma juda quando os players vao atk level mais alto nao da e aparece isso: you is to strong for you
Editado Outubro 24 por PostadorHunter
info
Grupo: Campones
Registrado: 11/10/12
Posts: 13
Reputação: 0
Char no Tibia: [ADM] Killer

@PostadorHunter Vc poderia me passar a vocation shenron pronta ja se puder me avise rep+...
info
Grupo: Marquês
Registrado: 29/10/11
Posts: 1.2k
Reputação: +134
Gênero: Masculino

Amigo,para criar isso,ele precisa saber o Looktype,das outfits de seu cliente.
info
Grupo: Campones
Registrado: 11/01/12
Posts: 36
Reputação: +1
Char no Tibia: gianlukinha

vlwww e continue assim trazendo mais coisas para o Xtibia
ajudara/ajudou muitas pessoas
. ei cara apropozito tem como vc postar as sprites da vocation Shin ? ;x
Editado Março 4 por gian1616
info
Grupo: Conde
Registrado: 10/12/11
Posts: 962
Reputação: +99
Gênero: Masculino
Fala galera do xtibia hoje vou terminar o tutorial de como criar vocations em wodbo 8.0
Então vamos la
O que você vai precisar
- Somente o bloco de notas ou algum outro editor de sua preferencia
Para colocar reborn em uma Vocation va em data/npcs/scripts/reborn.lua
deve estar mais ou menos assim
local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('?????.')
focus = 0
talk_start = 0
end
end
function onCreatureTurn(creature)
end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hello. If you ready I can "Reborn" you.')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! Hey!.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then
selfSay('Sorry, but you are after reborn.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 350 and getPlayerStorageValue(cid,30023) ~= 4 then
selfSay('Hehe. Voce Nao Tem Level 350.')
elseif msgcontains(msg, 'reborn') then
selfSay('Tem Sertesa?')
talk_state = 2
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 20 then
doReborn(cid,201,137)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then
doReborn(cid,214,152)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then
doReborn(cid,286,60)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 58 then
doReborn(cid,247,34)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 71 then
doReborn(cid,258,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 75 then
doReborn(cid,263,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 274 then
doReborn(cid,275,118)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 315) then
doReborn(cid,227,144)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then
selfSay('You cannot reborn in fusion.')
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 318) then
doReborn(cid,232,150)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 280 then
doReborn(cid,281,190)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 112 then
doReborn(cid,298,221)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 50 then
doReborn(cid,253,101)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 44 then
doReborn(cid,237,173)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 292 then
doReborn(cid,293,281)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then
doReborn(cid,221,162)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 96 then
doReborn(cid,242,178)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,268,184)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 307 then
doReborn(cid,308,280)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 335 then
doReborn(cid,336,79)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Mals, ' .. getCreatureName(cid) .. '! Voce Tem que tar na transform serta.')
elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye.')
focus = 0
talk_start = 0
end
end
end
function onThink()
doNpcSetCreatureFocus(focus)
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
Agora nessa parte aqui
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 335 then
doReborn(cid,336,79)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
copie e cole
agora vamos aprender a ajustar para a vocação que você criou
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 350 and getPlayerVocation(cid) == 335 then
doReborn(cid,336,79)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
Configurando:
level necessario para rebornar
vocation normal
vocation transformada
looktype
Agora para colocar buffs nas vocations va em data/movements/first.lua
deve estar parecido com isso:
para adicionar os buffs para tal vocation simplesmente adicione a linha:
em 206 você coloca o id da vocation
lembrando que se for o ultimo daquela lista de buffs tem um then no final da linha
Editado Outubro 24 por PostadorHunter