azzkaban
Monster Maker
Hi! I need creaturescript for monsters:
Example: Monster attack you, and add random skull.
Is possible?
Rep+ For you.
Example: Monster attack you, and add random skull.
Is possible?
Rep+ For you.
local monster = "monster name"
function onCombat(cid, target)
if isMonster(target) and isPlayer(cid) and getCreatureName(target) == string.lower(monster) then
doCreatureSetSkullType(cid, math.random(1,6))
end
return true
end
local name = "dog"
function onCombat(cid, target)
if isPlayer(target) and isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(name) then
doCreatureSetSkullType(target, math.random(1, 6))
end
return true
end