local pedestalPos =
{
{x = 304, y = 272, z = 3, stackpos = 1}, -- Warrior Statue
{x = 306, y = 272, z = 3, stackpos = 1}, -- Archer Statue
{x = 308, y = 272, z = 3, stackpos = 1} -- Wizard Statue
}
local triggerName = {"Angel warrior", "Angel archer", "Angel wizard"} -- Put the right monster name down there: Mine works with angels I made.
local statueID = {8836, 3739, 8834}
function onKill(cid, target)
local monster = getCreatureName(target)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, monster)
if isInArray(monster, triggerName) then
for i = 1, 3 do
if monster == triggerName[i] then
doTransformItem(getThingfromPos(pedestalPos[i]).uid, statueID[i])
doSendMagicEffect(pedestalPos[i], CONST_ME_HOLYAREA)
end
end
end
end