Ir para conteúdo
  • 0

[Duvida] function on look


uriel70

Pergunta

Bom dia galera do XTibia, Bom, tem uma script no meu ot que dar pra ver as honras quando dar look em algum player.
veja \/

Tibia Client:

p69d.png

OtClient:
wdlb.png


Queria saber porque não acontece a mesma coisa no ot client ??? e como resolver isso ??


Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

No client da cip não tem nenhuma dll, e não aparece nenhuma sendCancel o.O, e é só no otclient que não aparece nada :z, e parece que são todos os creaturescripts que não funcionam :z, uq será ?

ai está o script:

 

-- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< --
-- >>> Credits to darkhaos in this script<<< --
-- >>> Scripted IN and ONLY for TFS 0.3<<< --

function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) == true then


if getPlayerVocation(cid) == 30 or getPlayerVocation(cid) == 7 then

local hpmax = getCreatureMaxHealth(thing.uid)
local hp = getCreatureHealth(thing.uid)
local speed = getCreatureSpeed(thing.uid)
local money = getPlayerMoney(thing.uid)
doPlayerSendTextMessage(cid, 34, "Speed: " .. speed .. " ")

doPlayerSendTextMessage(cid, 34, "Health: " .. hp .." / " .. hpmax .. "")
doPlayerSendTextMessage(cid, 4, "" .. money .. " gold coins.")
return true
end

if getPlayerVocation(cid) == 13 or getPlayerVocation(cid) == 58 then

local mp = getCreatureMana(thing.uid)
local mpmax = getCreatureMaxMana(thing.uid)

doPlayerSendTextMessage(cid, 34, "Mana: " .. mp .." / " .. mpmax .. "")
return true
end
return true
end

if isMonster(thing.uid) == true then

if getPlayerVocation(cid) == 30 or getPlayerVocation(cid) == 7 then

local hpmax = getCreatureMaxHealth(thing.uid)
local hp = getCreatureHealth(thing.uid)
local speed = getCreatureSpeed(thing.uid)

doPlayerSendTextMessage(cid, 34, "Speed: " .. speed .. " ")

doPlayerSendTextMessage(cid, 34, "Health: " .. hp .." / " .. hpmax .. "")
return true
end

if getPlayerVocation(cid) == 13 or getPlayerVocation(cid) == 58 then

local mp = getCreatureMana(thing.uid)
local mpmax = getCreatureMaxMana(thing.uid)

doPlayerSendTextMessage(cid, 34, "Mana: " .. mp .." / " .. mpmax .. "")
return true
end
return true
end

return true
end

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

×
×
  • Criar Novo...