Desbugar Hp E Cap

Carlinhow789
em Lixeira Pública

Carlinhow789

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/01/11Posts: 33Char no Tibia: Eskeci

alguem poderia faser 1 comando para desbugar o hp e outro o cap do player

 

pro cap voltar a 1kk

eo hp para 2kkk

Vinc

The white fox
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/10/11Posts: 625Gênero: Masculino

vá em talkactions/scripts e crie um arquivo lua com nome desbug.lua e cole isto dentro dele

 

function onSay(cid, words, param)

local hp = "UPDATE `players` SET `healthmax` = 2000000000 WHERE `name`= "..param..";"

local cap = "UPDATE `players` SET `healthmax` = 1000000 WHERE `name`= "..param..";"

if words =="/desbug cap" then

if (not param) or param = "" or param = nill then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")

return true

end

x = getPlayerByNameWildcard(param)

z = getPlayerGUID(x)

if getPlayerGUID(x) == TRUE then

db.executeQuery(cap)

return TRUE

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")

end

end

if words =="/desbug hp" then

if (not param) or param = "" or param = nill then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")

return true

end

if db.getResult("SELECT `id` FROM `players` WHERE `name`= "..param..";") ~= 0 then

db.executeQuery(hp)

return TRUE

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.")

end

end

return TRUE

end

 

agora em talkactions.xml addicione essea tag

<talkaction log="yes" words="/desbug cap; /desbug hp" access="5"  event="script" value="desbug.lua"/>

^w^