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

Annih Script.

Tsson

New Member
Joined
Nov 4, 2007
Messages
76
Reaction score
0
Hello, can someone release a good annihilator script for me?

it sould be good if you can enter the quest more times then once
and that it should summon demons when pull the lever

Thanks in advance
 
Hello, can someone release a good annihilator script for me?

it sould be good if you can enter the quest more times then once
and that it should summon demons when pull the lever

Thanks in advance

PHP:
local playerPosition =
{
	{x = 247, y = 659, z = 13, stackpos = STACKPOS_TOP_CREATURE},
	{x = 247, y = 660, z = 13, stackpos = STACKPOS_TOP_CREATURE},
	{x = 247, y = 661, z = 13, stackpos = STACKPOS_TOP_CREATURE},
	{x = 247, y = 662, z = 13, stackpos = STACKPOS_TOP_CREATURE}
}

local newPosition =
{
	{x = 189, y = 650, z = 13},
 	{x = 189, y = 651, z = 13},
	{x = 189, y = 652, z = 13},
	{x = 189, y = 653, z = 13}
}

-- Do not modify the declaration lines below.
local player = {0, 0, 0, 0}
local failed = FALSE

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		for i = 1, 4 do
			failed = TRUE
			player[i] = getThingfromPos(playerPosition[i])
			if player[i].itemid > 0 then
				if isPlayer(player[i].uid) == TRUE then
					if getPlayerStorageValue(player[i].uid, 30015) == -1 then
						if getPlayerLevel(player[i].uid) >= 100 then
							failed = FALSE
						end
					end
				end
			end
			if failed == TRUE then
				doPlayerSendCancel(cid, "Sorry, not possible.")
				return TRUE
			end
		end
		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
		doTransformItem(item.uid, item.itemid + 1)
	elseif item.itemid == 1946 then
		doPlayerSendCancel(cid, "Sorry, not possible.")
	end
	return TRUE
end

PHP:
function onUse(cid, item, frompos, item2, topos)

	if item.uid == 5000 and item.itemid == 1945 then
		player1pos = {x=835, y=754, z=7, stackpos=253}
		player1 = getThingfromPos(player1pos)

		player2pos = {x=836, y=754, z=7, stackpos=253}
		player2 = getThingfromPos(player2pos)

		player3pos = {x=837, y=754, z=7, stackpos=253}
		player3 = getThingfromPos(player3pos)

		player4pos = {x=838, y=754, z=7, stackpos=253}
		player4 = getThingfromPos(player4pos)
		
			if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then

				nplayer1pos = {x=858, y=754, z=7}
				nplayer2pos = {x=859, y=754, z=7}
				nplayer3pos = {x=860, y=754, z=7}
				nplayer4pos = {x=861, y=754, z=7}
				
				doSendMagicEffect(player1pos,2)
				doSendMagicEffect(player2pos,2)
				doSendMagicEffect(player3pos,2)
				doSendMagicEffect(player4pos,2)
				
				doTeleportThing(player1.uid,nplayer1pos)
				doTeleportThing(player2.uid,nplayer2pos)
				doTeleportThing(player3.uid,nplayer3pos)
				doTeleportThing(player4.uid,nplayer4pos)

				doSendMagicEffect(nplayer1pos,10)
				doSendMagicEffect(nplayer2pos,10)
				doSendMagicEffect(nplayer3pos,10)
				doSendMagicEffect(nplayer4pos,10)

				demon1pos = {x=858, y=752, z=7}
				demon2pos = {x=860, y=752, z=7}
				demon3pos = {x=859, y=756, z=7}
				demon4pos = {x=861, y=756, z=7}
				demon5pos = {x=862, y=754, z=7}
				demon6pos = {x=863, y=754, z=7}
				
				doSummonCreature("Demon", demon1pos)
				doSummonCreature("Demon", demon2pos)
				doSummonCreature("Demon", demon3pos)
				doSummonCreature("Demon", demon4pos)
				doSummonCreature("Demon", demon5pos)
				doSummonCreature("Demon", demon6pos)
				
				
				else
				doPlayerSendCancel(cid,"You need 4 players.") -- change bla bla bla
			end
		else
		return 0
   	end
	return 1
end

PHP:
 
Back
Top