Hello guys can someone help me pass this script for the version of tfs 1.2 (8.60 by ninja)
and instead of using the doTargetCombatHealth check is in manashield
Code:
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid ==7891then
if(type == STATSCHANGE_HEALTHGAIN)or(type == STATSCHANGE_MANAGAIN)then
if(value >=1000)then
local metade = math.floor(value/2)
if getPlayerStorageValue(cid,41234)- os.time()then
setPlayerStorageValue(cid,41234, os.time()+120)
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE,-metade,-metade, CONST_ME_NONE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT,"A sua rocky boots absorveu ".. metade .." de dano.")
return FALSE
end
end
end
end
return TRUE
end
and instead of using the doTargetCombatHealth check is in manashield