tambem estou atas disso.
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Colocando Rainho Na Vocation
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

retired.
Editado Março 10 por Demonbholder
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

pelo fato de vc ter me ajudado ja dei REP, mas num deu :< mas vlw assim mesmo :<
info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

Não deu? Deu algum erro do distro? Porque tem alguns ots que não tem a função isOnline, ai só me avisa que eu mudo.
EDIT:
function onLogin(cid) doEffect(cid) return TRUE end function doEffect(cid) local efeito = 3 local delay = 5 if isCreature(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), efeito) addEvent(doEffect, delay*1000, cid) end return TRUE end
Editado Março 10 por Demonbholder
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

bom vou destar, destajá dou rep. qualquer coisa eu volto ta.
é deu certo agora. mas ai vem o segundo problema. eu so queria que vocations reborn tivesse esse efeito. muito obrigado, se tiver como concluir isso. pq a função era embelezar as vocations com poucas outfits entendeu . mas vlwsao, sera que tem como dar esta ultima força? no caso esses raios so aparecerem na vocation escolhida ou reborn.
depois te mando um vidoe de meu Ot, ja evolui muita coisa nele.
peguei wodbo by jao, e ja mudei varias coisas, add vocations de bleach = 3
fusao ssj5. maioria so futucando e vendo aonde posso mudar, errando. extressando.
info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

Voce quer que so certas vocaçoes tenham estes raios?
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

as vocações reborn. tipo. vocation 1 a 5. nao eh reborn. 6 a 10 eh reborn. dai, de 6 a 10, teria que ter o efeito.e assim com as demais vocações.
valeeew muito por ser atecioso
Editado Março 13 por CoyoteStark
info
Grupo: Barão
Registrado: 12/09/10
Posts: 249
Reputação: +53

as vocações reborn. tipo. vocation 1 a 5. nao eh reborn. 6 a 10 eh reborn. dai, de 6 a 10, teria que ter o efeito.e assim com as demais vocações.
valeeew muito por ser atecioso
Coyote, não funciono aqui... O que eu tenho que colocar no creaturescripts.xml? a propósito, pra colocar somente pra determinada vocação, esse parte ficaria assim:
if (getPlayerVocation(cid) == 201) then <<vocação numero 201
doSendMagicEffect(getCreaturePosition(cid), efeito)
addEvent(doEffect, delay*1000, cid)
end
return TRUE
end
E as outras assim
elseif (getPlayerVocation(cid) == 540) then <<vocação numero 540
doSendMagicEffect(getCreaturePosition(cid), efeito)
addEvent(doEffect, delay*1000, cid)
end
return TRUE
end
]É isso, se você puder me ajudar a ver onde to errando, meu creaturescripts ta assim:
<event type="login" name="login" event="script" value="login.lua"/>
Flws
Editado Março 13 por dragonfight
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

cara, eu botei em creature scripts. assim
<event type="login" name="firstitems" script="effect.lua"/>
e o resto dentro da pasta scripts. um arquivo .lua vou testar este que vc me deu. tomara que funcione que agora to fazendo um update, com novas vocações e monstros.
Editado Março 14 por CoyoteStark
info
Grupo: Barão
Registrado: 12/09/10
Posts: 249
Reputação: +53

cara, eu botei em creature scripts. assim
<event type="login" name="firstitems" script="effect.lua"/>e o resto dentro da pasta scripts. um arquivo .lua vou testar este que vc me deu. tomara que funcione que agora to fazendo um update, com novas vocações e monstros.
Cra funciono, vlw te dei rep++, amnha do rep pro Demonbholder.
Eu não sei se é só comigo, mas tem vocação nova, tenta cria uma vocação e loga ela. Não vai dar efeito na hora, só depois de um tempo. Amanhã testo +, tenho que acorda cedo, flws
info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

function onLogin(cid) if getPlayerVocation(cid) > 5 then doEffect(cid) return TRUE end return TRUE end function doEffect(cid) local efeito = 3 local delay = 5 if isCreature(cid) == TRUE then doSendMagicEffect(getCreaturePosition(cid), efeito) addEvent(doEffect, delay*1000, cid) end return TRUE end
tenta ai, só quem tive vocação 6 pra cima vai ter raio.
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

nao era exatamente assim que eu queria,era dessa forma, goku nao reborn, normal. goku reborn. com raios. na logica, um char, tem uma vocação por transform; exmplo, goku, goku caioken, goku ssj..., nas transforms reborn. eu teria os raios. para cada char, o que vc me deu funciona apartir de uma determinada vocação. dai o que eu fiz. alterei as vocações reborn, para alem de 500, e no seu script, mudei de 5 para 500. ta dando para o gasto. nao ta 100% mas ta ajudando.
dragonfight eu nao consegui fazer o seu funcionar :<
info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

Deixe-me ver o sistema de reborn.
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

bom se for isto que vc esta pedindo. qualquer duvida...
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) < 250 and getPlayerStorageValue(cid,30023) ~= 4 then
selfSay('Hehe, I say If you READY. You do not have 250 lvl.')
elseif msgcontains(msg, 'reborn') then
selfSay('Are you sure?')
talk_state = 2
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 77) 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) >= 250 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) >= 250 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 79) 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 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) >= 250 and getPlayerVocation(cid) == 403 then
doReborn(cid,408,239)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 428 then
doReborn(cid,524,352)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,268,184)
doSendMagicEffect(getPlayerPosition(cid), 19)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 428 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,429,352)
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 447 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,536,90)
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 367 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,529,198)
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 445 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,518,361)
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 456 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,541,363)
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 413 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,506,42)
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerAddHealthMax(cid,20000)
doPlayerAddManaMax(cid,20000)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! You must revert or transform.')
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



info
Grupo: Campones
Registrado: 07/12/10
Posts: 0
Reputação: 0
Char no Tibia: Wizardimon
se alguem puder me ajuda me fala com eu faço pra coloca rainhos nas vocation e um wodbo by bianco eu to precisisando mesmo que me ajuda eu agradeço.me descupem seu fiz aguma coisa errada mais esse eo meu primeiro post