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

Boss respawn after killing 3 other bosses

Jajebecozagowno

New Member
Joined
Aug 28, 2010
Messages
1
Reaction score
0
Hello to all forum users. I can not create scripts but I can modify them. Please make a script for me. On the map posted three bosses. I want to after killing the three bosses, how a new boss appeared in another room. And after killing the boss as he appeared the next boss appeared again in another room. Finally, after killing the last boss in the room disappeared stone on my way. Is the date of advice to do something like this? Sorry I used the translator.
 
Hello to all forum users. I can not create scripts but I can modify them. Please make a script for me. On the map posted three bosses. I want to after killing the three bosses, how a new boss appeared in another room. And after killing the boss as he appeared the next boss appeared again in another room. Finally, after killing the last boss in the room disappeared stone on my way. Is the date of advice to do something like this? Sorry I used the translator.

LUA:
local bosses = {"lol", "lol2", "lol3"}

function onKill(cid, target)
	if(isInArray(bosses, getCreatureName(target))) then
		if(getGlobalStorageValue(7000) < 0) then
			setGlobalStorageValue(7000, 1)
			return true
		elseif(getGlobalStorageValue(7000) == 1) then
			setGlobalStorageValue(7000, getGlobalStorageValue(7000) + 1)
			return true
		elseif(getGlobalStorageValue(7000) == 2) then
			setGlobalStorageValue(7000, 0)
			doSummonCreature("lol4", {x = 100, y = 100, z = 7})
			return true
		end
	end
	return true
end

Dunno whether it works or not, I'm dizzy today. x.x
 
Back
Top