Ir para conteúdo
  • 0

Pergunta

alguem poderia me ajudar num script para meu servidor que consiste em dar look em vc

 

mesmo e aparecer os frags que o player possui.

 

* Sim eu ja procurei no forum e ja encontrei porem eu ja tenhu 1 script no meu look entao

 

sempre que adiciono buga o look

 

script do meu look

 

 

 

function onLook(cid, thing, position, lookDistance)

if isPlayer(thing.uid) and thing.uid ~= cid then
local string = 'You see '..getCreatureName(thing.uid)..' (Level '.. getPlayerLevel(thing.uid)..') [Reset '..getPlayerResets(thing.uid)..'].'
if getPlayerFlagValue(thing.uid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then
if(getPlayerSex(thing.uid)== 1) then
string = string..' He is '.. getPlayerGroupName(thing.uid) ..'.'
end
if(getPlayerSex(thing.uid)== 0) then
string = string..' She is '.. getPlayerGroupName(thing.uid) ..'.'
end
elseif getPlayerVocation(thing.uid) ~= 0 then
if(getPlayerSex(thing.uid)== 1) then
string = string..' He is '.. getPlayerVocationName(thing.uid) ..'.'
end
if(getPlayerSex(thing.uid)== 0) then
string = string..' She is '.. getPlayerVocationName(thing.uid) ..'.'
end
else
if(getPlayerSex(thing.uid)== 1) then
string = string..' He has no vocation.'
end
if(getPlayerSex(thing.uid)== 0) then
string = string..' She has no vocation.'
end
end
-- if (getPlayerNameByGUID(getPlayerPartner(thing.uid), false, false) ~= nil) or (getPlayerNameByGUID(getPlayerPartner(thing.uid), false, false) == true) then
-- if(getPlayerSex(thing.uid)== 1) then
-- string = string..' He is '.. (getPlayerSex(thing.uid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(thing.uid)) ..'.'
-- end
-- if(getPlayerSex(thing.uid)== 0) then
-- string = string..' She is '.. (getPlayerSex(thing.uid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(thing.uid)) ..'.'
-- end
-- else
-- string = string
-- end
if getPlayerGuildId(thing.uid) > 0 then
if(getPlayerSex(thing.uid)== 1) then
string = string..' He is ' .. (getPlayerGuildRank(thing.uid) == '' and 'a member' or getPlayerGuildRank(thing.uid)) ..' of the '.. getPlayerGuildName(thing.uid)
end
if(getPlayerSex(thing.uid)== 0) then
string = string..' She is ' .. (getPlayerGuildRank(thing.uid) == '' and 'a member' or getPlayerGuildRank(thing.uid)) ..' of the '.. getPlayerGuildName(thing.uid)
end
string = getPlayerGuildNick(thing.uid) ~= '' and string..' ('.. getPlayerGuildNick(thing.uid) ..').' or string..'.'
end
if (getPlayerGroupId(cid) >= 3) then
if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then
string = string..'\nHealth: ['.. getCreatureHealth(thing.uid) ..' / '.. getCreatureMaxHealth(thing.uid) ..'], Mana: ['.. getCreatureMana(thing.uid) ..' / '.. getCreatureMaxMana(thing.uid) ..'].'
string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(thing.uid)) ..'.'
end
if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then
string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].'
end
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)
return false
----------------------------------------------------------------------------------------------------------------------------------------
elseif thing.uid == cid then
local string = 'You see yourself. (Level '.. getPlayerLevel(cid)..') [Reset '..getPlayerResets(cid)..'].'
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
-- if (getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil) or (getPlayerNameByGUID(getPlayerPartner(thing.uid), false, false) == true) 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 (getPlayerGroupId(cid) >= 3) then
if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then
string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].'
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
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)
return false
end
return true
end

Se alguem pudesse adpatar pra mim os 2 script junto sem bugar ficaria show
repp++
Editado por Dennyz Dias
Link para o comentário
https://xtibia.com/forum/topic/238612-frags-no-look/
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

×
×
  • Criar Novo...