function onSay(cid, words, param, channel) param = param or "" if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player ".. param .." not found.") return true end doPlayerPopupFYI(cid, "Informações Pessoais\n" .. "\nNome: " .. getCreatureName(pid) .. "\nLevel: " .. getPlayerLevel(pid) .. "\nChakra: " .. getPlayerMagLevel(pid) .. "\nVIP: " .. (isPremium(pid) and "Sim" or "Não") .. "\nSaldo Bancário: " .. getPlayerBalance(pid) .. "\nReputação: " .. getCreatureStorage(pid, 6001) .. "\n\nAtributos\n" .. "\nTaijutsu - " .. getPlayerSkillLevel(pid, 0) .. "\nNinjutsu - " .. getPlayerSkillLevel(pid, 1) .. "\nGenjutsu - " .. getPlayerSkillLevel(pid, 2) .. "\nKenjutsu - " .. getPlayerSkillLevel(pid, 3) .. "\nDistance - " .. getPlayerSkillLevel(pid, 4) .. "\nDefense - " .. getPlayerSkillLevel(pid, 5) .. "\nFishing - " .. getPlayerSkillLevel(pid, 6) .. "\n\nInformações da Tribo\n" .. "\nNome: " .. getPlayerGuildName(pid) .. "\nPosto: " .. getPlayerGuildRank(pid) .. "\nNível: " .. getPlayerGuildLevel(pid)) return true end
[Ajuda] Sistema De Informação [Ajuda]
Por Flaah, 24 de jul. de 2012 em Scripts
Editado Julho 24 por Oneshot
info
Grupo: Barão
Registrado: 26/12/11
Posts: 201
Reputação: +18
Char no Tibia: Flaah

Deu o seguinte ERRO no console quando vc vai digita o nome de alguem player ON.
[24/07/2012 16:38:10] [Error - TalkAction Interface][24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetCreatureName) Creature not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (internalGetPlayerInfo) Player not found when requesting player info #3
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerMagLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (internalGetPlayerInfo) Player not found when requesting player info #22
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetCreatureStorage) Creature not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (luaGetPlayerSkillLevel) Player not found
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (internalGetPlayerInfo) Player not found when requesting player info #12
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (internalGetPlayerInfo) Player not found when requesting player info #14
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] (internalGetPlayerInfo) Player not found when requesting player info #15
[24/07/2012 16:38:10] [Error - TalkAction Interface]
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:onSay
[24/07/2012 16:38:10] Description:
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:32: attempt to concatenate a boolean value
[24/07/2012 16:38:10] stack traceback:
[24/07/2012 16:38:10] data/talkactions/scripts/infopla.lua:32: in function <data/talkactions/scripts/infopla.lua:1>
ALGUEM AJUDA, PORFAVOR, VALENDO +REP
Oops, falha minha.
Já consertei, só copiar o código denovo.
info
Grupo: Barão
Registrado: 26/12/11
Posts: 201
Reputação: +18
Char no Tibia: Flaah

Cara ta tudo blz, mais tem 3 probleminhas, que seria:
Teria como aparece o sexo do player? (exemplo: Masculino ou Feminino)
E teria como eu coloca pra aparece ser o player é VIP, pelo meu sistema VIP que eu coloquei? Storage 13540
E não teria como colocar, pra fica com aquela caixinha que estava antes, ou voltaria aqueles problemas acima?
ALGUEM AJUDA, PORFAVOR, VALENDO +REP
Opa, claro.
function onSay(cid, words, param, channel)
param = param or ""
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player ".. param .." not found.")
return true
end
doShowTextDialog(cid, 2175, "Informações Pessoais\n" ..
"\nNome: " .. getCreatureName(pid) ..
"\nSexo: " .. (getPlayerSex(pid) == 0 and "Feminino" or "Masculino") ..
"\nLevel: " .. getPlayerLevel(pid) ..
"\nChakra: " .. getPlayerMagLevel(pid) ..
"\nVIP: " .. (getCreatureStorage(pid, 13540) > os.time() and "Sim" or "Não") ..
"\nSaldo Bancário: " .. getPlayerBalance(pid) ..
"\nReputação: " .. getCreatureStorage(pid, 6001) ..
"\n\nAtributos\n" ..
"\nTaijutsu - " .. getPlayerSkillLevel(pid, 0) ..
"\nNinjutsu - " .. getPlayerSkillLevel(pid, 1) ..
"\nGenjutsu - " .. getPlayerSkillLevel(pid, 2) ..
"\nKenjutsu - " .. getPlayerSkillLevel(pid, 3) ..
"\nDistance - " .. getPlayerSkillLevel(pid, 4) ..
"\nDefense - " .. getPlayerSkillLevel(pid, 5) ..
"\nFishing - " .. getPlayerSkillLevel(pid, 6) ..
"\n\nInformações da Tribo\n" ..
"\nNome: " .. getPlayerGuildName(pid) ..
"\nPosto: " .. getPlayerGuildRank(pid) ..
"\nNível: " .. getPlayerGuildLevel(pid))
return true
end
info
Grupo: Barão
Registrado: 26/12/11
Posts: 201
Reputação: +18
Char no Tibia: Flaah

OOOOOOOH Cara brigadão mesmo, KKKK' vontade de te lasca uma beijoka xD
+REP PRA VC COM TODO CERTEZA ABSOLUTA \o/
Obrigado XTIBIA, e Oneshot, sem vcs eu não seria nada, KKKK' <3
PS: Você já atingiu seu limite de reputações positivas para hoje
Oneshot vou tentar da seu +REP mais tarde, flw parceiro? ;D
Editado Julho 24 por Flaah
De nada, estamos aqui para isso ![]()
REPORTADO COMO RESOLVIDO
info
Grupo: Conde
Registrado: 29/07/13
Posts: 780
Reputação: +60
Gênero: Masculino
Char no Tibia: aguarde...

OOOOOOOH Cara brigadão mesmo, KKKK' vontade de te lasca uma beijoka xD
+REP PRA VC COM TODO CERTEZA ABSOLUTA \o/
Obrigado XTIBIA, e Oneshot, sem vcs eu não seria nada, KKKK' <3
PS: Você já atingiu seu limite de reputações positivas para hoje
Oneshot vou tentar da seu +REP mais tarde, flw parceiro? ;D
kkkk duvida sanada
info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

O system é atraz de comando?Se sim pode postar o tag?




info
Grupo: Barão
Registrado: 26/12/11
Posts: 201
Reputação: +18
Char no Tibia: Flaah
Boa Tarde amigos do XTIBIA Boa Tarde, estou com 3 probleminhas do meu sistema de informação que eu montei, que seria:
Não aparece quantos dias de VIP o player tem.
Aparese um ERRO no console quando alguem digita o nome errado do player.
Não aparece o sexo do player (exemplo: Masculino ou Feminino) só aparese número, 0 ou 1.
E quando atualiza a informação do player (exemplo: o cara upa, skill, magic level, entre outros), acaba multiplicando as informações do player.
SCRIPT:
ERRO no console quando digita o nome errado:
ALGUEM AJUDA, PORFAVOR, VALENDO +REP
Editado Julho 24 por Flaah