Ir para conteúdo
  • Cadastre-se

Posts Recomendados

[13/01/2017 14:02:35] [Error - CreatureScript Interface] 
[13/01/2017 14:02:35] data/creaturescripts/scripts/showvoc.lua:onLook
[13/01/2017 14:02:35] Description: 
[13/01/2017 14:02:35] data/creaturescripts/scripts/showvoc.lua:8: attempt to concatenate a boolean value
[13/01/2017 14:02:35] stack traceback:
[13/01/2017 14:02:35]     data/creaturescripts/scripts/showvoc.lua:8: in function <data/creaturescripts/scripts/showvoc.lua:1>

 

 

 

SCRIPT

 

function onLook(cid, thing, position, lookDistance)
    if isPlayer(thing.uid) and thing.uid ~= cid then
local type = getPlayerStorageValue(thing.uid, 89745)
        doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(cid) == 0 and "She" or "He").." are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 4 and "Anbu" or type == 5 and "Sennin" or type == 6 and "Kage"))
        return true
    elseif thing.uid == cid then
type = getPlayerStorageValue(cid, 89745)
        doPlayerSetSpecialDescription(cid, "\nYou are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 4 and "Anbu" or type == 5 and "Sennin" or type == 6 and "Kage")..".")
        local string = 'You see yourself.'
        if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then
            string = string..' You are '.. getPlayerGroupName(cid) ..'.'
        elseif getPlayerVocation(cid) ~= 0 then
            string = string..' You are '.. getPlayerVocationName(cid) ..'.'
        else
            string = string..' You have no vocation.'
        end
        string = string..getPlayerSpecialDescription(cid)..''

        if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then
            string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.'
        end

        if getPlayerGuildId(cid) > 0 then
            string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid)
            string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.'
        end

        if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then
            string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].'
        if isPlayerGhost(cid) then
            string = string..'\n*GhostMode*'
        end
            string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.'
        end

        if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then
            string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].'
        end
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)  
        return false
    end
    return true
end


 

Link para o post
Compartilhar em outros sites

Esta é uma mensagem automática! Este tópico foi movido para a área correta.
Pedimos que você leia as regras do fórum.

Spoiler

This is an automated message! This topic has been moved to the correct area.
Please read the forum rules.

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites
Spoiler

function onLook(cid, thing, position, lookDistance)
	if(isPlayer(thing.uid) and thing.uid ~= cid) then
		local s = tonumber(getPlayerStorageValue(thing.uid, 89745)) or 0
		doPlayerSetSpecialDescription(thing.uid, "\n" .. (getPlayerSex(cid) == 0 and "She" or "He") .. " are " .. (s <= 0 and "Shinobi" or s == 1 and "Genin" or s == 2 and "Chunin" or s == 3 and "Jounin" or s == 4 and "Anbu" or s == 5 and "Sennin" or "Kage"))
		return true
		
	elseif(thing.uid == cid) then
		local s = tonumber(getPlayerStorageValue(cid, 89745)) or 0
		doPlayerSetSpecialDescription(cid, "\nYou are " .. (s <= 0 and "Shinobi" or s == 1 and "Genin" or s == 2 and "Chunin" or s == 3 and "Jounin" or s == 4 and "Anbu" or s == 5 and "Sennin" or "Kage") .. ".")
		
		local str = "You see yourself."
		if(getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION)) then
			str = str .. " You are " .. getPlayerGroupName(cid) .. "."
		elseif(getPlayerVocation(cid) ~= 0) then
			str = str .. " You are " .. getPlayerVocationName(cid) .. "."
		else
			str = str .. " You have no vocation."
		end
		
		str = str .. getPlayerSpecialDescription(cid)
		if(getPlayerNameByGUID(getPlayerPartner(cid), false, false)) then
			str = str .. " You are " .. (getPlayerSex(cid) == 0 and "wife" or "husband") .. " of " .. getPlayerNameByGUID(getPlayerPartner(cid)) .. "."
		end
		
		if(getPlayerGuildId(cid) > 0) then
			str = str .. " You are " .. (getPlayerGuildRank(cid) == "" and "a member" or getPlayerGuildRank(cid)) .. " of the " .. getPlayerGuildName(cid)
			str = getPlayerGuildNick(cid) ~= "" and (str .. " (" .. getPlayerGuildNick(cid) .. ").") or str .. "."
		end
		
		if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS)) then
			str = str .. "\nHealth: [" .. getCreatureHealth(cid) .. " / " .. getCreatureMaxHealth(cid) .. "], Mana: [" .. getCreatureMana(cid) .. " / " .. getCreatureMaxMana(cid) .. "]."
			if(isPlayerGhost(cid)) then
				str = str .. "\n*GhostMode*"
			end
			str = str .. "\nIP: " .. doConvertIntegerToIp(getPlayerIp(cid)) .. "."
		end
		
		if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION)) then
			str = str .. "\nPosition: [X:" .. position.x .. "] [Y:" .. position.y .. "] [Z:" .. position.z .. "]."
		end
		
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str) 
		return false
	end
	
	return true
end

 

 

Link para o post
Compartilhar em outros sites

Mano Vlw Pelo Script Mais Tipo Onde Tiro Esse He Is

 

(Staff) Viny

You see

He Is Leader Guild Testes

Link para o post
Compartilhar em outros sites

@NtoFoxter não ajudei porque estava com pressa em tal hora.

Em fim, para sua outra duvida, ajudei um membro com a mesma duvida que você:

 

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Link para o post
Compartilhar em outros sites

Manoo ajuda ae quero que aparece os rank dos player tipo pertence akatsuki e dai ficava so no kage dai tirei o kage da erro

 

onlook sla alguma coisa assim 

showvoc.lua

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.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Danyel Varejao
      Fala galerinha do TK, aqui vai um script muito útil para vários servidores. O script serve para salvar o player e a house do mesmo, utilizando o comando !save.
      O script foi testado em OTXServer 2.
      local Configs = { Exhausted = 180, Storage_Exhausted = 5000001, Messages = { SALVED = "You character has been salved.", EXHAUST = "You need wait %d seconds to save again.", }, } local function doSavePlayerAndHouse(cid) doPlayerSave(cid) if getHouseByPlayerGUID(getPlayerGUID(cid)) then doSaveHouse(getHouseByPlayerGUID(getPlayerGUID(cid))) end return true end function onSay(cid, words, param) if getPlayerStorageValue(cid, Configs.Storage_Exhausted) >= os.time() then doPlayerSendCancel(cid, string.format(Configs.Messages.EXHAUST, getPlayerStorageValue(cid, Configs.Storage_Exhausted) - os.time())) return true end doSavePlayerAndHouse(cid) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, Configs.Messages.SALVED) setPlayerStorageValue(cid, Configs.Storage_Exhausted, os.time() + Configs.Exhausted) return true end Tag do talkactions.xml
      <talkaction words="/save;!save" event="script" value="SavePlayers.lua"/>  
    • Por Belmont
      Hoje venho aqui trazer a solução pra vocês que colam scripts e jogam em seus arquivos, essa solução nada mais é que remover os caracteres especias que vem junto quando você usa o famoso comando CTRL+C e CTRL+V, esse erro se apresenta de várias formas.
       
      Para resolver, basta você ir no diretório do arquivo abri-lo e ir até a linha que mostra no executável(distro) e procurar o caractere especial, LEMBRANDO que ele pode vim oculto, você ira precisar procurar em letra por letra, no vídeo abaixo explica como procurar o caractere especial oculto letra por letra. O que eu fiz ai no vídeo foi somente apagar o caractere oculto.                                      
       
      Os caracteres ocultos, eles podem serem visualizados com mais facilidade ou com mais dificuldade, no caso desse vídeo, foi bem fácil de visualizar, mais em fim, é só você ir até a linha que mostra no executável(distro) vai no final do código e vem apertando a tecla na direção esquerda até acha-lo.
                                                                                           
    • Por Cat
      Essa resolução visa reduzir o lag na hora de mapear.
      Dicas:
      Leve em consideração que um mapa de 100MB necessita em torno de 4GB de memória, um de 200MB, 8GB e assim vai. Mapear com minimap aberto ajuda a travar o mapa. Quando for mapear, feche outros aplicativos. Faça backups frequentes, (Se usar um CPU cuidado com quedas de energia, pode corromper seu mapa ao desligar). Use a última versão lançada para evitar erros.  
      Mas como posso fazer para que o Map Editor trave menos?
      Com o Remeres aberto, vá em File - Preferences - General. Em File – Preferences – General você deverá configurar Undo Queue Size: Aqui vai o valor (em MB) da metade da memória ram de seu pc (caso queira coloque mais). Undo maximum memory size (MB):  Tamanho máximo de memória que o RME poderá utilizar, aumente para metade da memória ram de seu pc (caso queira coloque mais). Worker Threads: Número de núcleos de processador que o RME pode utilizar, nessa parte depende se seu processador, caso seu pc só tenha um núcleo deixe apenas um, caso tenha 2, deixe 2 e se for maior que isso deixe o tanto que você preferir.  
      Aplique, reinicie o editor e teste as novas configurações. Se ainda não funcionar, faça uma limpeza de hardware/software, atualize seus drivers ou compre um PC melhor.
    • Por LuXcaS
      Bom dia,
       
      Alguém saberia me informar porque acontece esse erro?
       
      E tentar me ajudar a solucionar.
       
      Fico grato!

    • Por LuXcaS
      Bom dia galera,
       
      Gostaria de saber se alguém poderia me dizer, "mostrar" como fazer para que os pokemons tenham ícones nas houses, igual o exemplo abaixo.
       
      Obrigado!


×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo