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

Solved annihlator for TFS 0.3.6pl1

skenchu

New Member
Joined
Mar 14, 2009
Messages
218
Reaction score
0
Location
Holland, Rotterdam
i cant find any where a annihlator script for 6pl1

so maybe anyone can share one

and please dont come use Search blablabla because i searched much :( without result

Thanks if you share :)
 
Last edited:
Code:
local t = {
	playerPositions = {
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7}
	},
	monstersPosition = {
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7}
	},
	teleportPos = {
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7},
		{x = 100, y = 200, z = 7}
	}
}
local players, summonPos = {}, {}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 or item.itemid == 1946 then
		for _, player in ipairs(t.playerPositions) do
			local c = getTopCreature(player).uid
			if c > 0 and isPlayer(c) then table.insert(players, c) end
		end
		if #players == 4 then
			for i, summon in ipairs(monstersPosition) do
				summonPos[i] = summon
			end
			for i, v in ipairs(players) do
				doSendMagicEffect(t.playerPositions[i], CONST_ME_POFF)
				doTeleportThing(v, t.teleportPos[i], true)
				doSendMagicEffect(t.teleportPos[i], CONST_ME_TELEPORT)
			end
			for _, s in ipairs(summonPos) do
				doSummonCreature("Demon", s)
			end
		else
			doPlayerSendDefaultCancel(player[1], RETURNVALUE_NOTPOSSIBLE)
		end
	end
	return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end
 
Back
Top