I need add three warning before summon boss tfs 1.2
first warning "two minutes for boss"
after 1 minute second warning "one minute for boss"
now "the evil forces summon a creature "
first warning "two minutes for boss"
after 1 minute second warning "one minute for boss"
now "the evil forces summon a creature "
Lua:
local monsters = {[26195] = "world devourer", "evergrove ancient", "world devourer"}
function onUse(player, item, fromPosition, itemEx)
Game.broadcastMessage(0, 'test', MESSAGE_STATUS_WARNING)
local position = player:getPosition()
local gift = monsters[math.random(#monsters)]
local monster = Game.createMonster(gift, position)
monster:setReward(true)
position:sendMagicEffect(CONST_ME_MAGIC_RED)
item:transform(26196)
return true
end