GU

ajuda com script ferumbras 20 lives

Por gusinhi, 11 de abr. de 2016 em Scripts

3
938
gusinhiG
11 de abril de 2016 às 10:29
Spoiler
function onKill(cid, target)local config = {monstername = "Ferumbras"}if getCreatureName(target) == config.monstername then	local catuid = getGlobalStorageValue(tonumber(target))	if catuid >= 19 then		return TRUE	else		setGlobalStorageValue(tonumber(target),(catuid+1))		local maxhealth = getCreatureMaxHealth(target)		doCreatureAddHealth(target, maxhealth,1)		doSendMagicEffect(getCreaturePosition(target),49)		return FALSE	endelse	return TRUEendend

 

alguem me da uma força aki com esse script, ele funciona tudo menos dar vida ao ferumbras eu quero q quando o player mata ele o ferumbras ganhe uma nova vida

Editado Abril 11 por gusinhi

miguel223M
12 de abril de 2016 às 00:36


function onKill(cid, target)

local config = {

monstername = "Ferumbras"

}

 

if getCreatureName(target) == config.monstername then

local catuid = getGlobalStorageValue(tonumber(target))

if catuid >= 19 then

return TRUE

else

return false

setGlobalStorageValue(tonumber(target),(catuid+1))

local maxhealth = getCreatureMaxHealth(target)

doCreatureAddHealth(target, maxhealth)

doSendMagicEffect(getCreaturePosition(target),49)

end

 

end

return true

end

Editado Abril 12 por miguel223

1 mês depois...
DanihcvD
18 de maio de 2016 às 22:21

Este tópico foi movido para Tutoriais e Suporte - Tutoriais de Scripting - Suporte Scripting