Ir para conteúdo

Colocar gender no Look.lua


Developer Berg

Posts Recomendados

 

function onLook(cid, thing, position, lookDistance)

--for rocks = 0, 8 do
--if thing == rocks then
--if rocks == 8 then
--if #getCreatureSummons(cid) >= 1 then
--setCreatureMaxHealth(getCreatureSummons(cid)[1], getCreatureMaxHealth(getCreatureSummons(cid)[1]) + pokes[getCreatureName(getCreatureSummons(cid)[1])].cons)
--doCreatureAddHealth(getCreatureSummons(cid)[1],getCreatureMaxHealth(getCreatureSummons(cid)[1]))doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 28)
--doSendMagicEffect(getThingPos(cid), 29)
--end
--elseif rocks == 2 then
--doSendMagicEffect(getThingPos(cid), 28)
--if getPlayerStorageValue(cid, 91859) >= 1 then
--local speedskills = getPlayerSkill(cid,2)*10
--doChangeSpeed(cid, -getCreatureSpeed(cid))
--doChangeSpeed(cid, getCreatureBaseSpeed(cid)+speedskills)
--end
--end
--return true
--end
--end
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)

--for rocks = 0, 8 do
--if thing == rocks then
--if rocks == 8 then
--if #getCreatureSummons(cid) >= 1 then
--setCreatureMaxHealth(getCreatureSummons(cid)[1], getCreatureMaxHealth(getCreatureSummons(cid)[1]) + pokes[getCreatureName(getCreatureSummons(cid)[1])].cons)
--doCreatureAddHealth(getCreatureSummons(cid)[1],getCreatureMaxHealth(getCreatureSummons(cid)[1]))doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 28)
--doSendMagicEffect(getThingPos(cid), 29)
--end
--elseif rocks == 2 then
--doSendMagicEffect(getThingPos(cid), 28)
--if getPlayerStorageValue(cid, 91859) >= 1 then
--local speedskills = getPlayerSkill(cid,2)*10
--doChangeSpeed(cid, -getCreatureSpeed(cid))
--doChangeSpeed(cid, getCreatureBaseSpeed(cid)+speedskills)
--end
--end
--return true
--end
--end
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..".")
else
return true
end
return false
end
return true

end

 

Editado por Nextbr
Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...

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.

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...