if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, 91911) >= 1 then
local playerlook = getPlayerStorageValue(thing.uid, 91911)
if isPlayer(playerlook) then
local nick = getCreatureName(playerlook)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..nick.." ,Cam mode on")
end
return false
end
if isMonster(thing.uid) then
if getCreatureName(thing.uid) == "Tall Grass" then
local player = getPlayerStorageValue(thing.uid,1)
if isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..getCreatureName(player).." Watch a tv.")
end
return false
end
if isPlayer(getCreatureMaster(thing.uid)) then
local dono = getCreatureMaster(thing.uid)
local nome = getCreatureName(dono)
local poke = string.lower(getCreatureName(thing.uid))
local apelido = getPlayerStorageValue(dono,9000)
local pokemondoido = getPlayerSlotItem(dono, 8)
local catchby = getItemAttribute(pokemondoido.uid, "catchby")
local SEX_MALE = 4
local SEX_FEMALE = 5
local sex = getItemAttribute(item.uid, "sexy") == SEX_MALE and "macho" or getItemAttribute(item.uid, "sexy") == SEX_FEMALE and "femea" or "indefinido"
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..poke..".("..apelido..")\n It belongs to "..nome..".(catch by "..catchby..")\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid)..".\nEste pokémon é "..sex..".")
else
return true
end
return false
end
return true
end
- Se nao der o Primeiro teste o Segundo:
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, 91911) >= 1 then
local playerlook = getPlayerStorageValue(thing.uid, 91911)
if isPlayer(playerlook) then
local nick = getCreatureName(playerlook)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..nick.." ,Cam mode on")
end
return false
end
if isMonster(thing.uid) then
if getCreatureName(thing.uid) == "Tall Grass" then
local player = getPlayerStorageValue(thing.uid,1)
if isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..getCreatureName(player).." Watch a tv.")
end
return false
end
if isPlayer(getCreatureMaster(thing.uid)) then
local dono = getCreatureMaster(thing.uid)
local nome = getCreatureName(dono)
local poke = string.lower(getCreatureName(thing.uid))
local apelido = getPlayerStorageValue(dono,9000)
local pokemondoido = getPlayerSlotItem(dono, 8)
local catchby = getItemAttribute(pokemondoido.uid, "catchby")
local sex = getItemAttribute(item.uid, "sexy",4) == "macho" or getItemAttribute(item.uid, "sexy",5) == "femea" or "indefinido"
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..poke..".("..apelido..")\n It belongs to "..nome..".(catch by "..catchby..")\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid)..".\nEste pokémon é "..sex..".")
O tópico foi fechado e movido para lixeira por estar inativo a mais de 10 dias. Caso seja preciso reabrir o mesmo, favor entrar em contato com a equipe.
info
Grupo: Visconde
Registrado: 19/12/12
Posts: 465
Reputação: +111
function onLook(cid, thing, position, lookDistance)
end
- Se nao der o Primeiro teste o Segundo:
function onLook(cid, thing, position, lookDistance)
end
Editado Junho 22 por Nextbr