Advertisement
poxipox

Untitled

Nov 6th, 2023
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local function createMonsterCreat(bossName, pos, times)
  2.     if times <= 0 then
  3.         local monsterCreats = doCreateMonster(bossName, pos)
  4.         if monsterCreats and tonumber(monsterCreats) then
  5.             doSendMagicEffect(pos, 101)
  6.         else
  7.             print('createMonsterCreat: FAIL ' .. bossName)
  8.         end
  9.     else
  10.         doSendAnimatedText(pos, times, colorCountDown_whiteTored(times))
  11.         addEvent(createMonsterCreat, 1000, bossName, pos, times-1)
  12.         doSendMagicEffect(pos, 100)
  13.     end
  14.     return true
  15. end
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement