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

TFS v0.2.1 Full Anihilator Script.

Tazzonny

The Bestest
Joined
Feb 8, 2009
Messages
161
Reaction score
2
Well, I got the anihilator script the server coems with but it won't summon the demons so it's kinda useless. Could any1 help please?
Thanks in advance
Tazz~
 
post the script here and maybe i'll help you

Ok Here it is.
Code:
local playerPosition =
{
	{x = 1275, y = 1436, z = 11, stackpos = STACKPOS_TOP_CREATURE},
	{x = 1274, y = 1436, z = 11, stackpos = STACKPOS_TOP_CREATURE},
	{x = 1273, y = 1436, z = 11, stackpos = STACKPOS_TOP_CREATURE},
	{x = 1272, y = 1436, z = 11, stackpos = STACKPOS_TOP_CREATURE}
}

local newPosition =
{
	{x = 1275, y = 1436, z = 12},
 	{x = 1274, y = 1436, z = 12},
	{x = 1273, y = 1436, z = 12},
	{x = 1272, y = 1436, z = 12}
}

-- 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
 
use this

Code:
-- annihilator lever

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

   	if item.uid == 7000 and item.itemid == 1945 then
		player1pos = {x=497, y=755, z=9, stackpos=253}
		player1 = getThingfromPos(player1pos)

		player2pos = {x=498, y=755, z=9, stackpos=253}
		player2 = getThingfromPos(player2pos)

		player3pos = {x=499, y=755, z=9, stackpos=253}
		player3 = getThingfromPos(player3pos)

		player4pos = {x=500, y=755, z=9, stackpos=253}
		player4 = getThingfromPos(player4pos)
		dzwignia = os.clock()


		if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
			queststatus1 = getPlayerStorageValue(player1.uid,7000)
			queststatus2 = getPlayerStorageValue(player2.uid,7000)
			queststatus3 = getPlayerStorageValue(player3.uid,7000)
			queststatus4 = getPlayerStorageValue(player4.uid,7000)

			if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
				nplayer1pos = {x=497, y=755, z=10}
				nplayer2pos = {x=498, y=755, z=10}
				nplayer3pos = {x=499, y=755, z=10}
				nplayer4pos = {x=500, y=755, z=10}

				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=500, y=753, z=10} 
				demon2pos = {x=498, y=753, z=10} 
				demon3pos = {x=497, y=757, z=10} 
				demon4pos = {x=499, y=757, z=10} 
				demon5pos = {x=501, y=755, z=10} 
				demon6pos = {x=502, y=755, z=10} 

				doSummonCreature("Demon", demon1pos) 
				doSummonCreature("Demon", demon2pos) 
				doSummonCreature("Demon", demon3pos) 
				doSummonCreature("Demon", demon4pos) 
				doSummonCreature("Demon", demon5pos) 
				doSummonCreature("Demon", demon6pos) 

				doTransformItem(item.uid,item.itemid+1)
			else
				doPlayerSendCancel(cid,"Somebody in your team has already done this quest.")
			end
		else
			doPlayerSendCancel(cid,"You need four players for this quest.")
		end

	elseif item.uid ==7000 and item.itemid == 1946 then
		if (dzwignia - os.clock()) > 30 then
		doTransformItem(item.uid,item.itemid-1)
		end
		if getPlayerAccess(cid) > 0 then
			doTransformItem(item.uid,item.itemid-1)
			end
		end
	return 1
end
 
Lua:
local demonPosition =
{
	{x = 155, y = 372, z = 9},
 	{x = 157, y = 372, z = 9},
	{x = 156, y = 376, z = 9},
	{x = 158, y = 376, z = 9},
	{x = 159, y = 374, z = 9},
	{x = 160, y = 374, z = 9}
}

Lua:
		for i = 1, 6 do	
			doSummonCreature("demon", demonPosition[i])
 
Back
Top