Ir para conteúdo

Featured Replies

  • Respostas 7
  • Visualizações 519
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onLook(cid, thing, position, lookDistance) if not isCreature(thing.uid) then local house = getHouseFromPos(position) if house then local article = thing.type > 1 and thing.type.." " or get

  • function onLook(cid, thing, position, lookDistance) if not isCreature(thing.uid) then local house = getHouseFromPos(position) if house then local article = thing.type > 1 and thing.type.." " or get

  • function onLook(cid, thing, position, lookDistance) if not isCreature(thing.uid) then local house = getHouseFromPos(position) if house then local article = thing.type > 1 and thing.type.." " or get

Postado
  • Solução
function onLook(cid, thing, position, lookDistance)
if not isCreature(thing.uid) then
local house = getHouseFromPos(position)
if house then
local article = thing.type > 1 and thing.type.." " or getItemArticleById(thing.itemid)..(getItemArticleById(thing.itemid) == "" and "" or " ")
local plural = getItemPluralNameById(thing.itemid) == "" and getItemNameById(thing.itemid).."s" or getItemPluralNameById(thing.itemid)
local desc = getItemSpecialDescription(thing.uid) == "" and "" or getItemSpecialDescription(thing.uid).." "
local str = "You see "..(article)..""..(thing.type > 1 and plural or getItemNameById(thing.itemid))..". "..desc..".\nPertence à casa '"..getHouseName(house).."'."
if getHouseOwner(house) ~= 0 then
str = str.." ".. getPlayerNameByGUID( getHouseOwner(house) ).." é dono dessa casa."
else
str = str.." Ninguém é dono dessa casa. Ela custa "..getHousePrice(house).." dólares."
end
if getPlayerAccess(cid) > 2 then
str = str.."\nItemID: ["..(thing.itemid).."]"
if thing.actionid > 0 then
str = str..", ActionID: ["..(thing.actionid).."]"
end
if thing.uid < 65536 then
str = str..", UniqueID: ["..(thing.uid).."]"
end
str = str..".\nPosition: [X: "..(getThingPos(thing.uid).x).."] [Y: "..(getThingPos(thing.uid).y).."] [Z: "..(getThingPos(thing.uid).z).."]."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
end
end
return true
end

deve resolver

Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá!

"Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda

I7Pm6ih.png

(obg ao @Beeny por fazer essa linda sign <3)

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo