UR

[Duvida] function on look

Por uriel70, 11 de set. de 2013 em Clients

otserv
tibia
script
3
1.3k
uriel70U
11 de setembro de 2013 às 14:17

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 ??


NoninhouhN
11 de setembro de 2013 às 18:03

o client da cip tem alguma dll? e qd vc da look aparece algum sendCancel? se aparecer, aparece oq?

uriel70U
11 de setembro de 2013 às 18:19

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 Setembro 12 por uriel70