• 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!

Remove Boss monters in raids

valivan601

New Member
Joined
Apr 13, 2011
Messages
365
Reaction score
1
can anyone help me with this script i want it to make a globalevents that`s remove some creatures by name like ghazbaran, orshabaal, morgaroth, ferumbras

this script will remove the monsters each 4 hours but i need some help here :)

which function i need for this script?? i want to modify this

i made it but dont work anyone help me to fix?
Code:
local k = {"Ghazbaran","Morgaroth","Ferumbras","Orshabaal"}

function onThink(interval, lastExecution, thinkInterval)
	
	local target = getPlayerByNameWildcard(cid)
	if(not target) then		
		if isInArray(k, getCreatureByName(cid)) then
		doRemoveCreature(k,cid)
		end
		
	end	

	return true
end
 
Last edited:
Lua:
local config = {"Monster", "Monster"}

function onThink(...)
	for _, monster in ipairs(config) do
		doRemoveCreature(getCreatureByName(monster))
	end
	
	return true
end
 
when there is no monster a msg appers on console one for each monster any fix for it?

(luaDoRemoveCreature) Creature not found

Code:
local config = {"Ghazbaran","Morgaroth"}

function onThink(interval, lastExecution, thinkInterval)
	
	for _, monster in ipairs(config) do
		doRemoveCreature(getCreatureByName(monster))
	end
	return true
end
 
Back
Top