Postado Junho 5, 2014 11 anos gente ja tenho meu scripter ele da reborn e tudo nas outras vocações so que eu fiz outra vocação e quero colocar para o npc da reborn nela quero saber ai no scripter o que devo fazer para o npc da uma nova vocação para o novo players 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) == 216 then doReborn(cid,1,332,217) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 265 then doReborn(cid,1,217,266) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 278 then doReborn(cid,1,242,279) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 235 then doReborn(cid,1,309,236) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 248 then doReborn(cid,1,286,249) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 6 then doReborn(cid,1,165,7) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 19 then doReborn(cid,1,7,20) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 32 then doReborn(cid,1,58,33) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 45 then doReborn(cid,1,104,46) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then doReborn(cid,1,63,59) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then doReborn(cid,1,95,72) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 84 then doReborn(cid,1,256,85) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 97 then doReborn(cid,1,115,98) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 110 then doReborn(cid,1,193,111) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 123 then doReborn(cid,1,20,124) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 136 then doReborn(cid,1,215,137) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 149 then doReborn(cid,1,133,150) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 162 then doReborn(cid,1,179,163) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 175 then doReborn(cid,1,99,176) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 188 then doReborn(cid,1,40,189) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 203 then doReborn(cid,1,282,204) 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 Wodbo battle of gods galera serve novo online 24 horas site= http://wodbo.webhop.me lista de servidores= http://tibia-dragonb...logspot.com.br/ o que temos de novo Bills<<<<Vip God saiyan goku<<<<Vip Shenron<<<<Vip King vegeta <<<<Vip C8 <<<<Vip >>>Infor<<<< xp 600x <<<<stages skill 10x ML 10x
Postado Junho 5, 2014 11 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados" Ajudei = REP+ Não dou suporte por PM qualquer dúvida procure no fórum,caso não encontre oque procura crie um tópico. [email protected]" /> | TFS 0.4 DEV | %5Bcreaturescript%5D Icones no minimap com descrição%5Btalkaction%5D Adicionar ou remover VIP do player.%5Bcreaturescripts%5D Senha para porta%5Btalkaction%5D Mandar mensagem para pasta do servidorMapa Evento War Castle%5Baction%5D Canoa em MovimentoTeleport Scroll System%5Bcreaturescripts%5D Recompensa por level para X vocations%5Btalkaction%5D Adicionar X item para o player%5Btalkactions%5D Adicionar item para todos players online%5Baction%5D Item que teleporta o player para house[action+movement] Passaporte para entrar no barco
Postado Junho 6, 2014 11 anos Solução onde tem: elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 203 then doReborn(cid,1,282,204) talk_state = 0 É a parte da script que vai adiciona a nova vocação e sprit ao player. Para você adicionar uma nova vocação basta copiar essa parte e cola logo em baixo editando para funcionar com a nova vocação. Explicando cada parte: getPlayerLevel(cid) >= 250 É o level que o player tem que ter para poder fazer o reborn. getPlayerVocation(cid) == 203 then É a vocação atual do player(no caso a ultima transform antes do reborn). doReborn(cid,1,282,204) Vermelho: É o id da nova vocação que o player vai ter ao realizar o reborn. Verde: É o ItemType da nova vocação (o looktype ou outfit da nova transform).
Postado Junho 7, 2014 11 anos Autor vlw Wodbo battle of gods galera serve novo online 24 horas site= http://wodbo.webhop.me lista de servidores= http://tibia-dragonb...logspot.com.br/ o que temos de novo Bills<<<<Vip God saiyan goku<<<<Vip Shenron<<<<Vip King vegeta <<<<Vip C8 <<<<Vip >>>Infor<<<< xp 600x <<<<stages skill 10x ML 10x
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.