título irregular
reportado
vo editar aki jaja eu posto
Script
local interval = 0
local heals = {
['hp'] = 800,
['mana'] = 800,
}
----
local interval = 1000
local function rot(cid,n,old)
local tb_rot = {{0,2},{6,5},{1,3},{7,4},false}
if isPlayer(cid) == FALSE or tb_rot[n] == nil or old.x ~= getCreaturePosition(cid).x or old.y ~= getCreaturePosition(cid).y then
return false
end
if tb_rot[n] == false then
doCreatureAddHealth(cid, heals['hp'])
doCreatureAddMana(cid, heals['mana'])
doSendMagicEffect(getCreaturePosition(cid), 3)
addEvent(rot, interval,cid,2,old)
return false
end
n = n+1
addEvent(rot, interval,cid,n,old)
end
function onSay(cid, words, param)
if isInArray(cid) == TRUE then
return FALSE
end
addEvent(rot, interval,cid,1,getCreaturePosition(cid))
return FALSE
end
if getCreatureMaxHealth(cid) and getPlayerMaxMana(cid) then
doPlayerSendTextMessage(cid, 22 , "Desculpe mais sua mana ja esta full")
end










info
Grupo: Artesão
Registrado: 11/11/11
Posts: 115
Reputação: +12
Eu Preciso de ajuda nesse script aqui, Esse script aki é um talkactions que quando tu fala "aumenta" Sobe 800 de life e de mana , eu queria q bota-se a função de parar de encher quando tivesse full a mana e a life e tambem um doPlayerSendCancel falando q esta full ! vlw
local interval = 0 local heals = { ['hp'] = 800, ['mana'] = 800, } ---- local interval = 1000 local function rot(cid,n,old) local tb_rot = {{0,2},{6,5},{1,3},{7,4},false} if isPlayer(cid) == FALSE or tb_rot[n] == nil or old.x ~= getCreaturePosition(cid).x or old.y ~= getCreaturePosition(cid).y then return false end if tb_rot[n] == false then doCreatureAddHealth(cid, heals['hp']) doCreatureAddMana(cid, heals['mana']) doSendMagicEffect(getCreaturePosition(cid), 3) addEvent(rot, interval,cid,2,old) return false end n = n+1 addEvent(rot, interval,cid,n,old) end function onSay(cid, words, param) if isInArray(cid) == TRUE then return FALSE end addEvent(rot, interval,cid,1,getCreaturePosition(cid)) return FALSE end