Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

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).

logo9.png

  • Respostas 14
  • Visualizações 1.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • 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

  • Funcionou Obrigado, seus topicos já me ajudaram muito.

Postado
  • Autor
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.

Postado
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

 

Postado
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

 

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo