Northnorial
Member
HiHo 
I need the full Annihilator Script ...
Thanks
rep ++
I need the full Annihilator Script ...
Thanks
rep ++
local playerPosition =
{
{x = 1224, y = 969, z = 11, stackpos = STACKPOS_TOP_CREATURE},
{x = 1223, y = 969, z = 11, stackpos = STACKPOS_TOP_CREATURE},
{x = 1222, y = 969, z = 11, stackpos = STACKPOS_TOP_CREATURE},
{x = 1221, y = 969, z = 11, stackpos = STACKPOS_TOP_CREATURE}
}
local newPosition =
{
{x=1224, y=969, z=12},
{x=1223, y=969, z=12},
{x=1222, y=969, z=12},
{x=1221, y=969, z=12}
}
local demonPosition =
{
{x=1222, y=967, z=12},
{x=1224, y=967, z=12},
{x=1225, y=969, z=12},
{x=1226, y=969, z=12},
{x=1221, y=971, z=12},
{x=1223, y=971, z=12}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = {0, 0, 0, 0}
local failed = TRUE
local count = 0
item.new = 1946
if(item.itemid == 1945) then
if(os.time(t) >= (getGlobalStorageValue(9000) + 3600)) 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(getPlayerStorageValue(player[i].uid, 9000) < 1) then
if(getPlayerLevel(player[i].uid) >= 100 or getPlayerAccess(player[i].uid) >= 3) then
failed = FALSE
count = count + 1
end
end
end
end
if(failed == TRUE) then
doTransformItem(item.uid, 1946)
return TRUE
end
end
if(count == 4) then
for i = 1, 6 do
doSummonCreature("Demon", demonPosition[i])
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)
setPlayerStorageValue(player[i].uid, 9000, 1)
end
setGlobalStorageValue(9000, os.time(t))
end
end
else
item.new = 1945
end
doTransformItem(item.uid, item.new)
return TRUE
end
local config = {
daily = "no",
level = 100,
storage = 30015
}
local playerPosition =
{
{x = 247, y = 659, z = 13},
{x = 247, y = 660, z = 13},
{x = 247, y = 661, z = 13},
{x = 247, y = 662, z = 13}
}
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 players = {}
local failed = true
config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 1946) then
if(config.daily) then
doPlayerSendCancel(cid, "Sorry, not possible.")
else
doTransformItem(item.uid, item.itemid - 1)
end
return true
end
if(item.itemid ~= 1945) then
return true
end
for i, pos in ipairs(playerPosition) do
pos.stackpos = STACKPOS_TOP_CREATURE
players[i] = getThingFromPos(playerPosition[i]).uid
if(players[i] > 0 and
isPlayer(players[i]) and
getPlayerStorageValue(players[i].uid, config.storage) == -1 and
getPlayerLevel(players[i].uid) >= config.level)
then
failed = false
end
if(failed) then
doPlayerSendCancel(cid, "Sorry, not possible.")
return true
end
failed = true
end
for i, pid in ipairs(players) do
doSendMagicEffect(playerPosition[i], CONST_ME_POFF)
doTeleportThing(pid, newPosition[i], false)
doSendMagicEffect(newPosition[i], CONST_ME_ENERGYAREA)
end
doTransformItem(item.uid, item.itemid + 1)
return true
end