• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Treasure Goblin

can you explain it better, step by step (ohhh baby jajaj) and exactly what you want but all, ALL, i will try to do it
 
I will try to be as clear as possible.. I just want a monster "Treasure Gobiln" that disappears after lets say 1 if being attacked. Its just that ^^

Player attacks "Treasue Goblin", if not killed after 1 min, it disappears.
 
can you explain it better, step by step (ohhh baby jajaj) and exactly what you want but all, ALL, i will try to do it

[video=youtube;FPda6BSkniE]http://www.youtube.com/watch?v=FPda6BSkniE[/video]

I think this is what he ment.
 
Something like that? Monster appear on pos and if nobody kill him in 1min. then he disappear?
If yes then take it:
Code:
----config!
	local room = {     -- room with goblin
	fromX = 257,
	fromY = 247,
	fromZ = 5,
	--------------
	toX = 266,
	toY = 254,
	toZ = 5
	}
	local monsterpos = {224, 223, 9} -- monster position (where he appear)
	local monster = {"Goblin"} -- monster name
	local message = {"blahblah"} --message at appear?
----config!

function onThink(interval)
	doSummonCreature(monster, monsterpos)
	doBroadcastMessage(message)
	addEvent(removeCreature, 60*1000)
end


function removeCreature()
	for x = room.fromX, room.toX do
		for y = room.fromY, room.toY do
			for z = room.fromZ, room.toZ do
			local monsters = getTopCreature({x=x, y=y, z=z}).uid
				if monsters ~= 0 and isMonster(monsters) then
					doRemoveCreature(monsters)
				end
			end
		end
	end
end
 
Back
Top