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
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
info
Grupo: Cavaleiro
Registrado: 17/06/15
Posts: 177
Reputação: +9
Char no Tibia: GOD Server
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)
Editado Janeiro 3 por Dennyz Dias