• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Annihilator Script

lol94

Loler
Joined
Dec 23, 2008
Messages
764
Reaction score
55
Location
Mexico
Hey whats up otland.. can someone giveme a annihilator script because my annihilator script doesnt work
 
Ok there you go, change the positions from your map.
And put the lever uid and aid 7100.
I think it should work



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

       if item.uid == 7100 and item.itemid == 1945 then
        player1pos = {x=214, y=146, z=8, stackpos=253}
        player1 = getThingfromPos(player1pos)

        player2pos = {x=214, y=147, z=8, stackpos=253}
        player2 = getThingfromPos(player2pos)

        player3pos = {x=214, y=148, z=8, stackpos=253}
        player3 = getThingfromPos(player3pos)

        player4pos = {x=214, y=149, z=8, stackpos=253}
        player4 = getThingfromPos(player4pos)


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

            if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
                nplayer1pos = {x=211, y=148, z=10}
                nplayer2pos = {x=212, y=148, z=10}
                nplayer3pos = {x=213, y=148, z=10}
                nplayer4pos = {x=214, y=148, 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)

                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 ==7100 and item.itemid == 1946 then
        if getPlayerAccess(cid) > 0 then
            doTransformItem(item.uid,item.itemid-1)
        else
            doPlayerSendCancel(cid,"Sorry, not possible.")
        end
    else
        return 0
    end

    return 1
end

Rep++ me if it worked
 
[08/09/2010 13:59:15] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Annihilator.lua)
[08/09/2010 13:59:15] cannot open data/actions/scripts/Annihilator.lua: No such file or directory
 
hmm, this script doesn't summon creatures, so if someone kill demons, and another party came after, they';ll have empty room :D
 
Looking for a Annihilator script for 9.1. Any help would be greatly appreciated. ty
huang3.jpg

huang2.jpg

huang4.jpg
 
Orginal script from TFS
LUA:
local config = {
	daily = "no", -- allow only one enter per day? (like in global Tibia)
	level = 100,
	storage = 30015,
	entry =
	{
		{x = 247, y = 659, z = 13},
		{x = 247, y = 660, z = 13},
		{x = 247, y = 661, z = 13},
		{x = 247, y = 662, z = 13}
	},
	destination =
	{
		{x = 189, y = 650, z = 13},
		{x = 189, y = 651, z = 13},
		{x = 189, y = 652, z = 13},
		{x = 189, y = 653, z = 13}
	}
}

config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		if(config.daily) then
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
		else
			doTransformItem(item.uid, item.itemid - 1)
		end

		return true
	end

	if(item.itemid ~= 1945) then
		return true
	end

	local players = {}
	for _, position in ipairs(config.entry) do
		local pid = getTopCreature(position).uid
		if(pid == 0 or not isPlayer(pid) or getCreatureStorage(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
			return true
		end

		table.insert(players, pid)
	end

	for i, pid in ipairs(players) do
		doSendMagicEffect(config.entry[i], CONST_ME_POFF)
		doTeleportThing(pid, config.destination[i], false)
		doSendMagicEffect(config.destination[i], CONST_ME_ENERGYAREA)
	end

	doTransformItem(item.uid, item.itemid + 1)
	return true
end
 
Orginal script from TFS
LUA:
local config = {
    daily = "no", -- allow only one enter per day? (like in global Tibia)
    level = 100,
    storage = 30015,
    entry =
    {
        {x = 247, y = 659, z = 13},
        {x = 247, y = 660, z = 13},
        {x = 247, y = 661, z = 13},
        {x = 247, y = 662, z = 13}
    },
    destination =
    {
        {x = 189, y = 650, z = 13},
        {x = 189, y = 651, z = 13},
        {x = 189, y = 652, z = 13},
        {x = 189, y = 653, z = 13}
    }
}

config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(item.itemid == 1946) then
        if(config.daily) then
            doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
        else
            doTransformItem(item.uid, item.itemid - 1)
        end

        return true
    end

    if(item.itemid ~= 1945) then
        return true
    end

    local players = {}
    for _, position in ipairs(config.entry) do
        local pid = getTopCreature(position).uid
        if(pid == 0 or not isPlayer(pid) or getCreatureStorage(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then
            doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
            return true
        end

        table.insert(players, pid)
    end

    for i, pid in ipairs(players) do
        doSendMagicEffect(config.entry[I], CONST_ME_POFF)
        doTeleportThing(pid, config.destination[I], false)
        doSendMagicEffect(config.destination[I], CONST_ME_ENERGYAREA)
    end

    doTransformItem(item.uid, item.itemid + 1)
    return true
end
[/I][/I][/I]


Will this work in 0.4 tfs?
 
If you find scripts you can just test them and post if you have problems or errors with that script.
Almost all scripts that are not for TFS 1.0 will work on TFS 0.4.
 
Back
Top