Ir para conteúdo
  • Cadastre-se

(Resolvido)Mostrar Level em que deu Reborn


Ir para solução Resolvido por Vodkart,

Posts Recomendados

.Qual servidor ou website você utiliza como base?  -- DBORox2.0

 

Olá, eu gostaria de saber como colocar para que depois que o personagem de reborn o look dele mostre o Nivel em que ele rebornou Exemplo

"13:42 You see Lawliiet (Level 795). He is Tapion. -- Reborn no Nivel [600]" o sistema de reborn do servidor você pode dar reborn entre os nivel 200 a 600, então se 1 player der Reborn 200 eu queria que fica-se como no look que mostrei antes só que [200]

 

Não acho que a mudança é no script de reborn e sim nas sources, mas vou deiar a script em spoiler ai, se puderem me ajudar. Obrg desde já.

Spoiler

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('Olá! Se voce está pronto, diga "reborn".')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then
selfSay('Desculpe, mas voce já é rebornado.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) < 200 and getPlayerStorageValue(cid,30023) ~= 4) or (getPlayerLevel(cid) > 600 and getPlayerStorageValue(cid,30023) ~= 4) then
selfSay('Apenas level 200 até 600 podem rebornar.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'reborn') then
selfSay('Realmente quer isto?')
talk_state = 2
--_GOKU_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 8 then
doReborn(cid,1,10,9)
talk_state = 0

--_VEGETA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 23 then
doReborn(cid,1,25,24)
talk_state = 0

--_PICCOLO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 36 then
doReborn(cid,1,42,37)
talk_state = 0

--_C17_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 49 then
doReborn(cid,1,50,50)
talk_state = 0

--_GOHAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 63 then
doReborn(cid,1,62,64)
talk_state = 0

--_TRUNKS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 75 then
doReborn(cid,1,74,76)
talk_state = 0

--_CELL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 87 then
doReborn(cid,1,81,88)
talk_state = 0

--_FREEZA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 101 then
doReborn(cid,1,88,102)
talk_state = 0

--_MAJIN BOO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 117 then
doReborn(cid,1,98,118)
talk_state = 0

--_BROLY_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 131 then
doReborn(cid,1,113,132)
talk_state = 0

--_C18_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 144 then
doReborn(cid,1,50,145)
talk_state = 0

--_UUB_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 156 then
doReborn(cid,1,128,157)
talk_state = 0

--_GOTEN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 170 then
doReborn(cid,1,142,171)
talk_state = 0

--_CHIBI TRUNKS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 184 then
doReborn(cid,1,151,185)
talk_state = 0

--_COOLER_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 197 then
doReborn(cid,1,153,198)
talk_state = 0

--_DENDE_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 210 then
doReborn(cid,1,169,211)
talk_state = 0

--_TSUFUL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 222 then
doReborn(cid,1,180,223)
talk_state = 0

--_BARDOCK_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 235 then
doReborn(cid,1,194,236)
talk_state = 0

--_KURIRIN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 248 then
doReborn(cid,1,205,249)
talk_state = 0

--_PAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 260 then
doReborn(cid,1,212,261)
talk_state = 0

--_KAIO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 272 then
doReborn(cid,1,221,273)
talk_state = 0

--_VIDEL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 284 then
doReborn(cid,1,227,285)
talk_state = 0

--_JANEMBA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 296 then
doReborn(cid,1,234,297)
talk_state = 0

--_TENSHINHAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 308 then
doReborn(cid,1,246,309)
talk_state = 0

--_JENK_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 320 then
doReborn(cid,1,257,321)
talk_state = 0

--_RADITZ_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 332 then
doReborn(cid,1,265,333)
talk_state = 0

--_C16_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 344 then
doReborn(cid,1,277,345)
talk_state = 0

--_TURLES_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 356 then
doReborn(cid,1,285,357)
talk_state = 0

--_BULMA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 368 then
doReborn(cid,1,296,369)
talk_state = 0

--_SHENRON_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 380 then
doReborn(cid,1,302,381)
talk_state = 0

--_VEGETTO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 392 then
doReborn(cid,1,308,393)
talk_state = 0

--_TAPION_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 404 then
doReborn(cid,1,321,405)
talk_state = 0

--_KAME_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 417 then
doReborn(cid,1,335,418)
talk_state = 0

--_KING VEGETA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 429 then
doReborn(cid,1,347,430)
talk_state = 0

--_KAGOME_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 441 then
doReborn(cid,1,357,442)
talk_state = 0

--_ZAIKO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 453 then
doReborn(cid,1,368,454)
talk_state = 0

--_LORD CHILLED_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 465 then
doReborn(cid,1,375,466)
talk_state = 0

--_C8_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 482 then
doReborn(cid,1,517,483)
talk_state = 0

--_Goku Black_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 534 then
doReborn(cid,1,592,535)
talk_state = 0

--_Golden Freeza_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 544 then
doReborn(cid,1,88,545)
talk_state = 0

--_Bills_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 554 then
doReborn(cid,1,502,555)
talk_state = 0

--_Zamasu_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 564 then
doReborn(cid,1,607,565)
talk_state = 0

--_Whiss_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 574 then
doReborn(cid,1,617,575)
talk_state = 0

--_Vados_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 584 then
doReborn(cid,1,624,585)
talk_state = 0

--_Vegetto Black_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 594 then
doReborn(cid,1,630,595)
talk_state = 0

--_Blue Gogeta_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 604 then
doReborn(cid,1,640,605)
talk_state = 0

--_Vegetto Blue_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 614 then
doReborn(cid,1,308,615)
talk_state = 0

--_Zeno_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 624 then
doReborn(cid,1,641,625)
talk_state = 0

--_Goku Black Evo_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 634 then
doReborn(cid,1,651,635)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima transformação.')


elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Adeus!')
focus = 0
talk_start = 0
end
end
end

function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 45 then
if focus > 0 then
selfSay('Próximo por favor...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Adeus!')
focus = 0
end
end
end

 

Link para o post
Compartilhar em outros sites
4 minutos atrás, So volto tarde disse:

manda o npc de reborn, e, se existir, manda o look.lua na pasta creaturescripts também (se existir)

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Reborn" script="reborn.lua" walkinterval="0">
    <health now="100" max="100"/>
    <look type="446"/>
    <parameters>
        <parameter key="message_greet" value="Olá, |PLAYERNAME|! Eu posso te {Rebornar}." />
    </parameters>
</npc>

o Look.Lua eu n achei.

Link para o post
Compartilhar em outros sites
  • Moderador
9 horas atrás, AloppTK disse:
  Ocultar conteúdo

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Reborn" script="reborn.lua" walkinterval="0">
    <health now="100" max="100"/>
    <look type="446"/>
    <parameters>
        <parameter key="message_greet" value="Olá, |PLAYERNAME|! Eu posso te {Rebornar}." />
    </parameters>
</npc>

o Look.Lua eu n achei.

manda o reborn.lua

Link para o post
Compartilhar em outros sites
6 horas atrás, YagoNR disse:

Manda seu login.lua em creaturescripts e essa função "doReborn" (deve estar em algum lugar na lib provavelmente, nunca mexi com servidor de DBZ).

Spoiler

local config = {
    loginMessage = getConfigValue('loginMessage'),
    useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
registerCreatureEvent(cid, "onPrepareDeathinifi")
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
    end
        local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
        if(lastLogin > 0) then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
            str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
        else
                                    setPlayerStorageValue(cid, 30024, 0)
        end


    if(not isPlayerGhost(cid)) then
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
    end

    registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "SkullCheck")
    registerCreatureEvent(cid, "NoPartyAttack")
    registerCreatureEvent(cid, "TiraBattle")
    registerCreatureEvent(cid, "Idle")
    if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
        registerCreatureEvent(cid, "Reward")
    end
    registerCreatureEvent(cid, "FullHpMana")
    registerCreatureEvent(cid, "AdvanceSave")
    registerCreatureEvent(cid, "ZombieAttack")
    registerCreatureEvent(cid, "BlessCheck")
    registerCreatureEvent(cid, "advance")
    registerCreatureEvent(cid, "SkullCheck")
    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid,"Outfit")
    registerCreatureEvent(cid, "FragReward")
    registerCreatureEvent(cid, "Niwdeath")
    registerCreatureEvent(cid, "AdvanceSave")
    registerCreatureEvent(cid, "LevelRecompense")
    registerCreatureEvent(cid, "BoasVindas")
    registerCreatureEvent(cid, "BroadDeath")
    registerCreatureEvent(cid, "SaveStamina")
    registerCreatureEvent(cid, "Vip")
    --------- SHOP ---------
    registerCreatureEvent(cid, "VocShenron")
    registerCreatureEvent(cid, "VocVegetto")
    registerCreatureEvent(cid, "VocTapion")
    registerCreatureEvent(cid, "VocKame")
    registerCreatureEvent(cid, "VocKagome")
    registerCreatureEvent(cid, "VocKingVegeta")
    registerCreatureEvent(cid, "VocZaiko")
    registerCreatureEvent(cid, "VocChilled")
    registerCreatureEvent(cid, "VocC8")
    registerCreatureEvent(cid, "VocGoku")
    registerCreatureEvent(cid, "VocBills")
    registerCreatureEvent(cid, "VocFreeza")
    registerCreatureEvent(cid, "VocZamasu")
    registerCreatureEvent(cid, "VocWhiss")
    registerCreatureEvent(cid, "VocGogeta")
    registerCreatureEvent(cid, "VocVados")
    registerCreatureEvent(cid, "VocVegettoblack")
    registerCreatureEvent(cid, "VocVegettoblue")
    registerCreatureEvent(cid, "VocGokuevo")
    registerCreatureEvent(cid, "VocZeno")
    registerCreatureEvent(cid, "RemovedorDeFrags")
    --------------- REFLECT ----------------
    registerCreatureEvent(cid, "Reflect")
    if getPlayerStorageValue(cid, 3482101) ~= 0 then
            setPlayerStorageValue(cid, 3482101, 0) 
    end

return true
end

Achei o login.lua, mas o DoRborn não.

Link para o post
Compartilhar em outros sites
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)
	local rstorage = 149501
	if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
		selfSay('Olá! Se voce está pronto, diga "reborn".')
		focus = cid
		talk_start = os.clock()
	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
		selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.')
	elseif focus == cid then
		talk_start = os.clock()
		if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then
			selfSay('Desculpe, mas voce já é rebornado.')
			focus = 0
			talk_start = 0
		elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) < 200 and getPlayerStorageValue(cid,30023) ~= 4) or (getPlayerLevel(cid) > 600 and getPlayerStorageValue(cid,30023) ~= 4) then
			selfSay('Apenas level 200 até 600 podem rebornar.')
			focus = 0
			talk_start = 0
		elseif msgcontains(msg, 'reborn') then
			selfSay('Realmente quer isto?')
			talk_state = 2
			--_GOKU_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 8 then
			doReborn(cid,1,10,9)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_VEGETA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 23 then
			doReborn(cid,1,25,24)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_PICCOLO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 36 then
			doReborn(cid,1,42,37)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_C17_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 49 then
			doReborn(cid,1,50,50)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_GOHAN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 63 then
			doReborn(cid,1,62,64)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_TRUNKS_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 75 then
			doReborn(cid,1,74,76)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_CELL_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 87 then
			doReborn(cid,1,81,88)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_FREEZA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 101 then
			doReborn(cid,1,88,102)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_MAJIN BOO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 117 then
			doReborn(cid,1,98,118)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_BROLY_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 131 then
			doReborn(cid,1,113,132)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_C18_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 144 then
			doReborn(cid,1,50,145)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_UUB_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 156 then
			doReborn(cid,1,128,157)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_GOTEN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 170 then
			doReborn(cid,1,142,171)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_CHIBI TRUNKS_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 184 then
			doReborn(cid,1,151,185)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_COOLER_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 197 then
			doReborn(cid,1,153,198)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_DENDE_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 210 then
			doReborn(cid,1,169,211)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_TSUFUL_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 222 then
			doReborn(cid,1,180,223)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_BARDOCK_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 235 then
			doReborn(cid,1,194,236)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_KURIRIN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 248 then
			doReborn(cid,1,205,249)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_PAN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 260 then
			doReborn(cid,1,212,261)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_KAIO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 272 then
			doReborn(cid,1,221,273)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_VIDEL_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 284 then
			doReborn(cid,1,227,285)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_JANEMBA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 296 then
			doReborn(cid,1,234,297)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_TENSHINHAN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 308 then
			doReborn(cid,1,246,309)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_JENK_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 320 then
			doReborn(cid,1,257,321)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_RADITZ_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 332 then
			doReborn(cid,1,265,333)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_C16_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 344 then
			doReborn(cid,1,277,345)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_TURLES_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 356 then
			doReborn(cid,1,285,357)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_BULMA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 368 then
			doReborn(cid,1,296,369)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_SHENRON_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 380 then
			doReborn(cid,1,302,381)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_VEGETTO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 392 then
			doReborn(cid,1,308,393)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_TAPION_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 404 then
			doReborn(cid,1,321,405)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_KAME_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 417 then
			doReborn(cid,1,335,418)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_KING VEGETA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 429 then
			doReborn(cid,1,347,430)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_KAGOME_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 441 then
			doReborn(cid,1,357,442)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_ZAIKO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 453 then
			doReborn(cid,1,368,454)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_LORD CHILLED_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 465 then
			doReborn(cid,1,375,466)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_C8_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 482 then
			doReborn(cid,1,517,483)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Goku Black_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 534 then
			doReborn(cid,1,592,535)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Golden Freeza_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 544 then
			doReborn(cid,1,88,545)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Bills_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 554 then
			doReborn(cid,1,502,555)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Zamasu_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 564 then
			doReborn(cid,1,607,565)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Whiss_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 574 then
			doReborn(cid,1,617,575)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Vados_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 584 then
			doReborn(cid,1,624,585)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Vegetto Black_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 594 then
			doReborn(cid,1,630,595)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Blue Gogeta_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 604 then
			doReborn(cid,1,640,605)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Vegetto Blue_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 614 then
			doReborn(cid,1,308,615)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Zeno_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 624 then
			doReborn(cid,1,641,625)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
			--_Goku Black Evo_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 634 then
			doReborn(cid,1,651,635)
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
			talk_state = 0
			
		elseif msgcontains(msg, 'yes') and talk_state == 2 then
			selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima transformação.')
			
			
		elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
			selfSay('Adeus!')
			focus = 0
			talk_start = 0
		end
	end
end

function onThink()
	doNpcSetCreatureFocus(focus)
	if (os.clock() - talk_start) > 45 then
		if focus > 0 then
			selfSay('Próximo por favor...')
		end
		focus = 0
	end
	if focus ~= 0 then
		if getDistanceToCreature(focus) > 5 then
			selfSay('Adeus!')
			focus = 0
		end
	end
end

 

 

 

rebornlook.lua

function onLook(cid, thing, position, lookDistance)
	local rstorage = 149501
	if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, rstorage) > 0 then
		doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").. " Reborned at Level [".. getPlayerStorageValue(thing.uid, rstorage) .."]")
	end	
	return true
end

 

creaturescript.xml

<event type="look" name="showreborn" event="script" value="rebornlook.lua"/>

em creaturescript/script/login.lua add:

registerCreatureEvent(cid, "showreborn")

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
21 minutos atrás, AloppTK disse:

Fiz tudo que você pediu Vodkart mas quando dou look ainda continua assim > 09:54 You see Gokuzada (Level 783). He is Goku Reborn.  --  PS: Não apareceu erro nenhum na distrito.

tem que rebornar e ai pegar um segundo player e dar look no player que deu reborn... fez isso?

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
2 minutos atrás, Vodkart disse:

tem que rebornar e ai pegar um segundo player e dar look no player que deu reborn... fez isso?

Eu ja tinha 2 chars rebornados antes de implementar o sistema, vou testar upando outro.

Link para o post
Compartilhar em outros sites
Agora, AloppTK disse:

Eu ja tinha 2 chars rebornados antes de implementar o sistema, vou testar upando outro.

só vai contar a partir dos novos reborns...

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
5 minutos atrás, Vodkart disse:

só vai contar a partir dos novos reborns...

Criei 1 novo char, dei reborn e ainda continua sem aparecer, mas dessa vez deu 2 erros na distrito assim que dou reborn

Spoiler

[10:26:25.623] [Error - NpcScript Interface]
[10:26:25.634] data/npc/scripts/reborn.lua:onCreatureSay
[10:26:25.635] Description:
[10:26:25.636] (internalGetPlayerInfo) Player not found when requesting player info #3

 

[10:26:25.639] [Error - NpcScript Interface]
[10:26:25.642] data/npc/scripts/reborn.lua:onCreatureSay
[10:26:25.644] Description:
[10:26:25.645] (luaDoCreatureSetStorage) Creature not found

 

Link para o post
Compartilhar em outros sites
  • Solução
21 minutos atrás, AloppTK disse:

Criei 1 novo char, dei reborn e ainda continua sem aparecer, mas dessa vez deu 2 erros na distrito assim que dou reborn

  Mostrar conteúdo oculto

 

entendi, o reborn ele desloga o char... usa assim o npc:

 

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)
	local rstorage = 149501
	if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
		selfSay('Olá! Se voce está pronto, diga "reborn".')
		focus = cid
		talk_start = os.clock()
	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
		selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.')
	elseif focus == cid then
		talk_start = os.clock()
		if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then
			selfSay('Desculpe, mas voce já é rebornado.')
			focus = 0
			talk_start = 0
		elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) < 200 and getPlayerStorageValue(cid,30023) ~= 4) or (getPlayerLevel(cid) > 600 and getPlayerStorageValue(cid,30023) ~= 4) then
			selfSay('Apenas level 200 até 600 podem rebornar.')
			focus = 0
			talk_start = 0
		elseif msgcontains(msg, 'reborn') then
			selfSay('Realmente quer isto?')
			talk_state = 2
			--_GOKU_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 8 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,10,9)
			talk_state = 0
			
			--_VEGETA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 23 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,25,24)
			talk_state = 0
			
			--_PICCOLO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 36 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,42,37)
			talk_state = 0
			
			--_C17_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 49 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,50,50)
			talk_state = 0
			
			--_GOHAN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 63 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,62,64)
			talk_state = 0
			
			--_TRUNKS_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 75 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,74,76)
			talk_state = 0
			
			--_CELL_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 87 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,81,88)
			talk_state = 0
			
			--_FREEZA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 101 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,88,102)
			talk_state = 0
			
			--_MAJIN BOO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 117 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,98,118)
			talk_state = 0
			
			--_BROLY_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 131 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,113,132)
			talk_state = 0
			
			--_C18_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 144 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,50,145)
			talk_state = 0
			
			--_UUB_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 156 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,128,157)
			talk_state = 0
			
			--_GOTEN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 170 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,142,171)
			talk_state = 0
			
			--_CHIBI TRUNKS_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 184 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,151,185)
			talk_state = 0
			
			--_COOLER_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 197 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,153,198)
			talk_state = 0
			
			--_DENDE_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 210 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,169,211)
			talk_state = 0
			
			--_TSUFUL_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 222 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,180,223)
			talk_state = 0
			
			--_BARDOCK_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 235 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,194,236)
			talk_state = 0
			
			--_KURIRIN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 248 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,205,249)
			talk_state = 0
			
			--_PAN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 260 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,212,261)
			talk_state = 0
			
			--_KAIO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 272 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,221,273)
			talk_state = 0
			
			--_VIDEL_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 284 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,227,285)
			talk_state = 0
			
			--_JANEMBA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 296 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,234,297)
			talk_state = 0
			
			--_TENSHINHAN_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 308 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,246,309)
			talk_state = 0
			
			--_JENK_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 320 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,257,321)
			talk_state = 0
			
			--_RADITZ_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 332 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,265,333)
			talk_state = 0
			
			--_C16_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 344 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,277,345)
			talk_state = 0
			
			--_TURLES_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 356 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,285,357)
			talk_state = 0
			
			--_BULMA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 368 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,296,369)
			talk_state = 0
			
			--_SHENRON_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 380 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,302,381)
			talk_state = 0
			
			--_VEGETTO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 392 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,308,393)
			talk_state = 0
			
			--_TAPION_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 404 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,321,405)
			talk_state = 0
			
			--_KAME_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 417 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,335,418)
			talk_state = 0
			
			--_KING VEGETA_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 429 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,347,430)
			talk_state = 0
			
			--_KAGOME_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 441 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,357,442)
			talk_state = 0
			
			--_ZAIKO_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 453 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,368,454)
			talk_state = 0
			
			--_LORD CHILLED_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 465 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,375,466)
			talk_state = 0
			
			--_C8_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 482 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,517,483)
			talk_state = 0
			
			--_Goku Black_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 534 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,592,535)
			talk_state = 0
			
			--_Golden Freeza_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 544 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,88,545)
			talk_state = 0
			
			--_Bills_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 554 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,502,555)
			talk_state = 0
			
			--_Zamasu_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 564 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,607,565)
			talk_state = 0
			
			--_Whiss_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 574 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,617,575)
			talk_state = 0
			
			--_Vados_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 584 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,624,585)
			talk_state = 0
			
			--_Vegetto Black_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 594 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,630,595)
			talk_state = 0
			
			--_Blue Gogeta_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 604 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,640,605)
			talk_state = 0
			
			--_Vegetto Blue_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 614 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,308,615)
			talk_state = 0
			
			--_Zeno_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 624 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,641,625)
			talk_state = 0
			
			--_Goku Black Evo_--
		elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 634 then
			setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid))
            doReborn(cid,1,651,635)
			talk_state = 0
			
		elseif msgcontains(msg, 'yes') and talk_state == 2 then
			selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima transformação.')
			
			
		elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
			selfSay('Adeus!')
			focus = 0
			talk_start = 0
		end
	end
end

function onThink()
	doNpcSetCreatureFocus(focus)
	if (os.clock() - talk_start) > 45 then
		if focus > 0 then
			selfSay('Próximo por favor...')
		end
		focus = 0
	end
	if focus ~= 0 then
		if getDistanceToCreature(focus) > 5 then
			selfSay('Adeus!')
			focus = 0
		end
	end
end

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo