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

Action [Release] Ultimate Bomb

Any1 have the script done to work perfectly?
I can make it to work after someone leave it but i got some problems (ex. if someone dies in room, the monsters keep spawning and when another team tries to make it .. its fkin impossible >< whats more - second wall is spawning).
Dunno, if I'd have some free time maybe I'll be able to make it after few days, but I don't really know how to.
Any1 with solution? :D Can be even on PM (so selfish, eh? :))
 
Yet another nice quest, cool idea, sounds fun... but no fixes for the problems we are having.
 
can u make it so a teleport appears in X place every X hours and only 4 can join, after those 4 join the event starts after 30sec
REP++ if u do it
 
I thought this was an awesome script buy my 9.6 server didn't supported it so i kinda eddited it a bit.

Movement Script:
movements/scripts/bombQuest.lua

Code:
function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	doSendMagicEffect(fromPosition, CONST_ME_POFF)
return true
end

Action Script:
actions/scripts/bombQuest.lua

Code:
-- Made by Third Aid
-- Edited by Xiduzo
setGlobalStorageValue(17000, 0)
function monsterSpawns()
	local monsters = {"Rat", "Rotworm", "Orc Leader", "Bog Raider", "Giant Spider", "Diabolic Imp", "Destroyer", "Dark Torturer", "Behemoth", "Hellspawn", "War Golem", "Serpent Spawn", "Hellhound", "Plaguesmith", 
					  "Demon", "Undead Dragon"} -- list of monster which should spawn (do not add extra monster / only change the names)
 
	local monstersPos = {x=308, y=274, z=7} -- Where the monsters should be spawned

 
	local northWestX = 304 -- North West X of the room with the bomb
	local northEastX = 319 -- North East X of the room with the bomb
	local northWestY = 270 -- North West Y of the room with the bomb
	local southWestY = 279 -- South West Y of the room with the bomb
	local roomFloor = 7 -- Floor / Z of the room with the bomb

	
	if getGlobalStorageValue(17000) == 1 then
		if getGlobalStorageValue(17001) <= 15 then
			setGlobalStorageValue(17001, getGlobalStorageValue(17001)+1)
			addEvent(monsterSpawns, 60*1000)
			for i = 1, 3 do -- summons 3 monsters
			doSummonCreature(monsters[getGlobalStorageValue(17001)], monstersPos)
			end
		else
			setGlobalStorageValue(17000, 0)
			setGlobalStorageValue(17001, 0)
			for x = northWestX, northEastX do
				for y = northWestY, southWestY do
				local explosionArea = {x=x, y=y, z=roomFloor, stackPos=253}
				local getCreatures = getTopCreature(explosionArea).uid
					doSendMagicEffect(explosionArea, CONST_ME_FIREATTACK)
					if(isCreature(getCreatures) == TRUE) then
						doCreatureAddHealth(getCreatures, -getCreatureHealth(getCreatures))
					end
				end
			end 
		end
	end
return true
end

local playerPosition = {
{x=293, y=275, z=7, stackpos=STACKPOS_TOP_CREATURE}, -- The tiles they should stand on when pulling the switch
{x=294, y=275, z=7, stackpos=STACKPOS_TOP_CREATURE},
{x=295, y=275, z=7, stackpos=STACKPOS_TOP_CREATURE},
{x=296, y=275, z=7, stackpos=STACKPOS_TOP_CREATURE}
}

local newPosition = {
{x=305, y=273, z=7}, -- Where they get teleported in the room with the bomb
{x=305, y=274, z=7},
{x=305, y=275, z=7},
{x=305, y=276, z=7}
}
 
local wallName = "Brick Wall" -- Name of the "Wall monster"
local wallPos = {x=319, y=275, z=7} -- Where the wall should be

-- do not edit below here!--

setGlobalStorageValue(17002,0) 

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local player = {}
	if item.itemid == 1945 then	
		setGlobalStorageValue(17002,0)	
		if getGlobalStorageValue(17000) == 0 then
			for i = 1, 4 do
				player[i] = getThingfromPos(playerPosition[i])
				if player[i].itemid > 0 then
					if isPlayer(player[i].uid) == true then
						if getPlayerLevel(player[i].uid) <= 99 then						
							doPlayerSendCancel(cid, "All players need to be level 100 or higher.")
						else	
							setGlobalStorageValue(17002, getGlobalStorageValue(17002)+1)
							if getGlobalStorageValue(17002) == 4 then
								for i = 1, 4 do
								doSendMagicEffect(playerPosition[i], CONST_ME_POFF)
								doTeleportThing(player[i].uid, newPosition[i], FALSE)
								doSendMagicEffect(newPosition[i], CONST_ME_ENERGYAREA)
								end
								addEvent(monsterSpawns, 30*1000)
								doSummonCreature(wallName, wallPos)
								doTransformItem(item.uid, item.itemid + 1)
								setGlobalStorageValue(17001, 0)
								setGlobalStorageValue(17000, 1)
							else
								doPlayerSendCancel(cid, "You need 4 people to start this quest.")
							end							
						end
					end
				end
			end
		elseif getGlobalStorageValue(17000) == 1 then
			doPlayerSendCancel(cid, "There is allready a team inside, please be patient.")
		end		
	elseif item.itemid == 1946 then
		doTransformItem(item.uid, item.itemid - 1)
		doPlayerSendCancel(cid, "Sorry, not possible.")
	end
return true
end

It's just a startup and i would like to add the bomb counting etc. maybe i'll post it if i get that working or somebody else will.

- sorry for bad english
 
Last edited:
Back
Top