Moj mistrz
Monster Creator
#edit
How is it possible for monster to summon random creature from table with random chance? how to configure doSummonCreature()?
NOTE: THIS IS AN EXAMPLE NOT A SCRIPT.
#down
thx
How is it possible for monster to summon random creature from table with random chance? how to configure doSummonCreature()?
Code:
local chance = math.random(1,100)
local summon = "Demon Skeleton"[chance < 40], "Lich"[chance < 20], "Vampire"[chance < 10], "Vampire Bride"[chance < 10], "Vampire Viscount[chance < 10], "Undead Dragon"[chance < 5]
doSummonCreature("summon.chance", getCreaturePosition(cid))
#down
thx
Last edited: