• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua If you kill monster > doSummonCreature.

LUA:
local c = {
	["Azerus"] = {
		message =		"Azerus ran into teleporter! It will disappear in 2 minutes. Enter It!",
		delay =			{120, 240},
		destination =	{{x=32784, y=31169, z=9}, {x=32784, y=31169, z=9}},
		create =		{{x=32783, y=31177, z=9}, {x=32783, y=31177, z=9}}
	},
	["Snake God Essence"] = {
		wco = "Snake Thing",
		message = "IT'S NOT THAT EASY, MORTALS! FEEL THE POWER OF A GOD!"
	},
	["Snake Thing"] = {
		wco = "Lizard Abomination",
		message = "NOOOO! NOW YOU HERETICS WILL FACE MY GODLY WRATH!"
	},
	["Lizard Abomination"] = {
		wco = "Mutated Zalamon",
		message = "... OF AGONY!"
	}
}
 
function onDeath(cid, corpse, deathList)
	if isPlayer(cid) or getCreatureMaster(cid) then return true end

	local m = getCreatureName(cid)
	local pos = getThingPosition(cid)

-- white deer
	if m == "White Deer" then
		if math.random(4) == 1 then
			addEvent(doCreateMonster, 30, "Enraged White Deer", pos)
		else
			addEvent(doCreateMonster, 30, "Desperate White Deer", pos)
		end
	elseif m == "Enraged White Deer" or m == "Desperate White Deer" then
		if math.random(4) == 1 then
			doCreateMonster("Elf Scout", pos)
			doCreateMonster("Elf Scout", pos)
		end
--/end white deer

-- wrath of emperor mission 11
	elseif c[m] and c[m].wco then
		doCreatureSay(cid, c[m].message, TALKTYPE_MONSTER_SAY)
		addEvent(doCreateMonster, 30, c[m].wco, pos)
--/wrath of emperor mission 11

	elseif c[m] then
		for i, p in ipairs(c[m].delay) do
			addEvent(doCreateTeleport, p * 1000, 1387, c[m].destination[i], c[m].create[i])
		end
		doCreatureSay(cid, c[m].message, TALKTYPE_MONSTER_SAY)
	end
	return true
end

sorry I do not want to improve yours

and here klick if thats ok :)
 
With your thrid script, make sure you match the case of the monster (Snake God Essence, not snake god essence for example).

Cheers.
 
Back
Top