Nao testei, tenta ae:
function onSay(cid, words, param, channel)
local tmf = getCreaturePosition(cid)
local tms = getCreaturePosition(pid)
if getDistanceBetween(tmf, tms) >= 7 then
return true
end
if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR , "Voce nao pode estar em Batlel!")
end
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
player1 = getPlayerByNameWildcard(param)
lol = getPlayerByNameWildcard(param)
local nick = getCreatureName(pid)
local ki = getPlayerMagLevel(pid)
local lvl = getPlayerLevel(pid)
local mana = getCreatureMana(pid)
local hp = getCreatureHealth(pid)
local maxmana = getCreatureMaxMana(pid)
local maxhp = getCreatureMaxHealth(pid)
local access = getPlayerAccess(pid)
if getPlayerByNameWildcard(param) ~= 1 then
doPlayerSendTextMessage(cid, 6, 'Nick: '..nick..'')
doPlayerSendTextMessage(cid, 19, 'Level: '..lvl..'')
doPlayerSendTextMessage(cid, 1, 'Magic Attack: '..ki..'')
doPlayerSendTextMessage(cid, 4, 'Hp: '..hp..'/'..maxhp..'')
doPlayerSendTextMessage(cid, 5, 'Ki Points: '..mana..'/'..maxmana..'')
else
doPlayerSendCancel(cid,"You can scout only players.")
end
return 1
end




info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du
Este script funciona perfeitamente, era uma actions e deixei assim, ta otimo, mas eu queria que ele funcionase apenas com o player que da infomação na tela
ele funciona assim
!pinfo fulano.
e mostra alguns dados do jogador informado.
20:11 /pinfo Trunks Af
20:11 Nick: Trunks Af
20:11 Level: 7
20:11 Magic Attack: 1
20:11 Hp: 745/745
20:11 Ki Points: 715/715
Mas como eu citei antes, quero que o jogador que eu queira saber a infomação, esteja pelo menos a 6 tiles de mim.
tentei usar
Mas nao funfa
script completo abaixo.
Editado Maio 14 por CoyoteStark