Erro Besta Em Uma Action

lordrai
em Scripts

lordrai

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 17/12/07Posts: 32Char no Tibia: aienbdn

DUVIDA SANADA...

 

Obrigado Slicer e Skymagnum

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

tenta isso..

 

function onUse(cid, item, frompos, item2, topos)

 

topos.stackpos = 253

local player1 = getThingfromPos(topos)

if not isPlayer(player1.uid) then return doPlayerSendCancel(cid, "You can scout only players.") end

 

local lol = getPlayerName(player1.uid)

 

local nick = getPlayerName(player1.uid)

local ki = getPlayerMagLevel(player1.uid)

local lvl = getPlayerLevel(player1.uid)

local mana = getPlayerMana(player1.uid)

local hp = getPlayerHealth(player1.uid)

local maxmana = getPlayerMaxMana(player1.uid)

local maxhp = getPlayerMaxHealth(player1.uid)

local access = getPlayerAccess(player1.uid)

 

 

if access <=3 then

doPlayerSendTextMessage(cid, 22, 'Nick: '..nick..'')

doPlayerSendTextMessage(cid, 22, 'Level: '..lvl..'')

doPlayerSendTextMessage(cid, 22, 'Ki Level: '..ki..'')

doPlayerSendTextMessage(cid, 22, 'Hp: '..hp..'/'..maxhp..'')

doPlayerSendTextMessage(cid, 22, 'Ki Points: '..mana..'/'..maxmana..'')

else

return 0

end

return 1

end

 

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

Skymagnum

Hamburguer
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 02/08/12Posts: 1025Char no Tibia: Maurolkit

Cacetada getThingFromPos(pos) pra checar player? nussa mano.

 

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

if not isPlayer(itemEx.uid) then
return doPlayerSendCancel(cid, "You can use only in players.")
end

if getPlayerAccess(cid) < getPlayerAccess(itemEx.uid) then
return doPlayerSendCancel(cid, "You can use only in players of group id lower of you.")
end

doPlayerSendTextMessage(cid, 27, "Nick: " .. getCreatureName(itemEx.uid) .. "/nLevel: " .. getPlayerLevel(itemEx.uid) .. "/nKi Level: " .. getPlayerMagLevel(itemEx.uid) .. "/nHp/Max Hp: " .. getCreatureHealth(itemEx.uid) .. " / " .. getCreatureMaxHealth(itemEx.uid) .. "/nMana/Max Mana: " .. getCreatureMana(itemEx.uid) .. " / " .. getPlayerMaxMana(itemEx.uid) .. ".")
return true
end

jeoz.png

lordrai

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 17/12/07Posts: 32Char no Tibia: aienbdn

deu certo... como dou rep+? :x

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

clica na flechinha verde para cima no canto >>>>\/\/ do Sky xD o dele fico bem melhor ^^

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

SkyLigh

User X
avatar
Lorde
Lorde

INFOS

Grupo: LordeRegistrado: 23/07/12Posts: 2183Char no Tibia: Kissy

Tópico movido para a seção de dúvidas e pedidos resolvidos.

Att,
Kissy