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
![1707241317938.png 1707241317938.png](https://static3.otland.net/d/attachments/73/73476-fb6b61baaafd9c93700015f6850d7080.jpg)
![1707241569673.png 1707241569673.png](https://static3.otland.net/d/attachments/73/73477-0e25a1549e657c844cfda2213d87d329.jpg)
so need it to be summoned on blue area if there is no area behind the boss
![1707241821836.png 1707241821836.png](https://static3.otland.net/d/attachments/73/73478-495aadff3c9d30bdd553ee0ecf448f45.jpg)
TFS 0.4
![1707241317938.png 1707241317938.png](https://static3.otland.net/d/attachments/73/73476-fb6b61baaafd9c93700015f6850d7080.jpg)
![1707241569673.png 1707241569673.png](https://static3.otland.net/d/attachments/73/73477-0e25a1549e657c844cfda2213d87d329.jpg)
so need it to be summoned on blue area if there is no area behind the boss
![1707241821836.png 1707241821836.png](https://static3.otland.net/d/attachments/73/73478-495aadff3c9d30bdd553ee0ecf448f45.jpg)
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: