imback1
Unknown member
- Joined
- Jul 11, 2013
- Messages
- 785
- Solutions
- 1
- Reaction score
- 46
Using this script but there is something missing on it, It is working good but when there is no area for the monster that will be summoned, it doesn't summon and gives me error because of there is an area behind the boss to be summoned, so i need it to summon it if there is no area for it behind the main boss that summon it.
TFS 0.4
so need it to be summoned on blue area if there is no area behind the boss
TFS 0.4
so need it to be summoned on blue area if there is no area behind the boss
Lua:
local damagePercent = {
{"Mini Breaker","Mini Breaker","The Breaker"}, -- this happens at 19.5% health
{"The Breaker","Mini Breaker"}, -- this happens at 39% health
{"The Breaker","Mini Breaker"}, -- this happens at 58.5% health
{"The Breaker","Mini Breaker","The Breaker"}, -- this happens at 78% health
{"The Breaker","Tech","Mini Breaker"}, -- this happens at 97.5%
{"The Breaker","Tech","The Breaker"}, -- this happens at 97.5% health
{"The Breaker","Tech","Turbo","Tech"}, -- this happens at 97.5% health
{"Tech","Tech","Tech"}, -- this happens at 97.5% health
{"Turbo","Turbo","Turbo"}, -- this happens at 97.5% health
}
function onThink(cid, interval)
if isCreature(cid) then
local temtem = getPlayerStorageValue(cid, "temtem")
if temtem == -1 then temtem = 1 end
if temtem <= #damagePercent then
local SummonsList = damagePercent[temtem]
if getCreatureHealth(cid) <= (getCreatureMaxHealth(cid) - ((10/100*getCreatureMaxHealth(cid))*temtem)) then
for _, tid in ipairs(SummonsList) do
doCreateMonster(tid, getCreaturePosition(cid)) ------------------------Fixed--
end
doPlayerSetStorageValue(cid, "temtem", temtem+1)
end
end
end
return true
end
Last edited: