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

Help problem with anihi script TFS 0.3.4

alramo

New Member
Joined
May 25, 2009
Messages
197
Reaction score
0
Help error anihi script

i got last version of xamp , TFS 0.3.4 and this script

my swittch is uniqueid 30015
and this is the error

[06/06/2009 21:57:52] Lua Script Error: [Action Interface]
[06/06/2009 21:57:52] data/actions/scripts/quests/annihilator.lua:eek:nUse

[06/06/2009 21:57:52] luaGetPlayerStorageValue(). Player not found



-- annihilator lever

local config = {
monster = "Demon",
positions = {
{x=854, y=1242, z=10}, {x=856, y=1242, z=10}, {x=857, y=1246, z=10},
{x=855, y=1246, z=10}, {x=858, y=1244, z=10}, {x=859, y=1244, z=10}
}
}
function onUse(cid, item, frompos, item2, topos)
local dzwignia = os.clock()
if item.uid == 30015 and item.itemid == 1945 then
local player1pos = {x=857, y=1256, z=10, stackpos=253}
local player1 = getThingfromPos(player1pos)
local player2pos = {x=858, y=1256, z=10, stackpos=253}
local player2 = getThingfromPos(player2pos)
local player3pos = {x=859, y=1256, z=10, stackpos=253}
local player3 = getThingfromPos(player3pos)
local player4pos = {x=80, y=1256, z=10, stackpos=253}
local player4 = getThingfromPos(player4pos)
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
local queststatus1 = getPlayerStorageValue(player1.uid,30015)
local queststatus2 = getPlayerStorageValue(player2.uid,30015)
local queststatus3 = getPlayerStorageValue(player3.uid,30015)
local queststatus4 = getPlayerStorageValue(player4.uid,30015)
if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
local nplayer1pos = {x=854, y=1244, z=10}
local nplayer2pos = {x=855, y=1244, z=10}
local nplayer3pos = {x=856, y=1244, z=10}
local nplayer4pos = {x=857, y=1244, z=10}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doSendMagicEffect(player4pos,2)
for i = 1, table.maxn(config.positions) do
doSummonCreature(config.monster, config.positions)
end
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,"Alguem no seu time jah fez a quest.")
end
else
doPlayerSendCancel(cid,"You need 4 players to do Annihilator.")
end

elseif item.uid ==30015 and item.itemid == 1946 then
if (dzwignia - os.clock()) > 60 then
doTransformItem(item.uid,item.itemid-1)
end
if getPlayerAccess(cid) > 0 then
doTransformItem(item.uid,item.itemid-1)
end
end
return TRUE
 
Back
Top Bottom