Ir para conteúdo

Ajuda, Script Nova Anihi


knightmage

Posts Recomendados

Eu fiz uma nova anihilator, coloquei o unique id, tudo certo, e ta dando esse erro :

[22/07/2011 01:17:18] [Error - Action Interface] 
[22/07/2011 01:17:18] data/actions/scripts/quests/newquest.lua:onUse
[22/07/2011 01:17:18] Description: 
[22/07/2011 01:17:18] (luaGetThingFromPos) Tile not found

[22/07/2011 01:17:18] [Error - Action Interface] 
[22/07/2011 01:17:18] data/actions/scripts/quests/newquest.lua:onUse
[22/07/2011 01:17:18] Description: 
[22/07/2011 01:17:18] (luaDoTeleportThing) Thing not found

aqui o script :

function onUse(cid, item, frompos, item2, topos)
if item.uid == 8025 then
if item.itemid == 1946 then

player1pos = {x=278, y=569, z=14, stackpos=253}
player1 = getThingfromPos(player1pos)

player2pos = {x=279, y=569, z=14, stackpos=253}
player2 = getThingfromPos(player2pos)

player3pos = {x=280, y=569, z=14, stackpos=253}
player3 = getThingfromPos(player3pos)

player4pos = {x=278, y=570, z=14, stackpos=253}
player4 = getThingfromPos(player4pos)

player5pos = {x=279, y=570, z=14, stackpos=253}
player5 = getThingfromPos(player6pos)

player6pos = {x=280, y=570, z=14, stackpos=253}
player6 = getThingfromPos(player6pos)


if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 and player5.itemid > 0 and player6.itemid > 0 then

player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
player3level = getPlayerLevel(player3.uid)
player4level = getPlayerLevel(player4.uid)
player5level = getPlayerLevel(player5.uid)
player6level = getPlayerLevel(player6.uid)

questlevel = 120

if player1level >= questlevel and player2level >= questlevel and player3level >= questlevel and player4level >= questlevel and player5level >= questlevel and player6level >= questlevel then

snakeweaver1pos = {x=215, y=598, z=14}
snakeweaver2pos = {x=216, y=598, z=14}
snakeweaver3pos = {x=217, y=598, z=14}
snakeweaver4pos = {x=215, y=604, z=14}
snakeweaver5pos = {x=216, y=604, z=14}
snakeweaver6pos = {x=217, y=604, z=14}
snakeweaver7pos = {x=212, y=602, z=14}
snakeweaver8pos = {x=212, y=601, z=14}
eliteweaver1pos = {x=218, y=599, z=14}
eliteweaver2pos = {x=219, y=599, z=14}
eliteweaver3pos = {x=212, y=605, z=14}
eliteweaver4pos = {x=213, y=605, z=14}
eliteweaver5pos = {x=217, y=605, z=14}
elitetraper1pos = {x=219, y=601, z=14}
elitetraper2pos = {x=219, y=602, z=14}
elitetraper3pos = {x=220, y=601, z=14}
elitetraper4pos = {x=220, y=602, z=14}
elitetraper5pos = {x=218, y=601, z=14}
elitetraper6pos = {x=218, y=602, z=14}

doSummonCreature("Snake Weaver", snakeweaver1pos)
doSummonCreature("Snake Weaver", snakeweaver2pos)
doSummonCreature("Snake Weaver", snakeweaver3pos)
doSummonCreature("Snake Weaver", snakeweaver4pos)
doSummonCreature("Snake Weaver", snakeweaver5pos)
doSummonCreature("Snake Weaver", snakeweaver6pos)
doSummonCreature("Snake Weaver", snakeweaver7pos)
doSummonCreature("Snake Weaver", snakeweaver8pos)
doSummonCreature("Elite Weaver", eliteweaver1pos)
doSummonCreature("Elite Weaver", eliteweaver2pos)
doSummonCreature("Elite Weaver", eliteweaver3pos)
doSummonCreature("Elite Weaver", eliteweaver4pos)
doSummonCreature("Elite Weaver", eliteweaver5pos)
doSummonCreature("Elite Traper", elitetraper1pos)
doSummonCreature("Elite Traper", elitetraper2pos)
doSummonCreature("Elite Traper", elitetraper3pos)
doSummonCreature("Elite Traper", elitetraper4pos)
doSummonCreature("Elite Traper", elitetraper5pos)
doSummonCreature("Elite Traper", elitetraper6pos)

nplayer1pos = {x=215, y=601, z=14}
nplayer2pos = {x=216, y=601, z=14}
nplayer3pos = {x=217, y=601, z=14}
nplayer4pos = {x=215, y=602, z=14}
nplayer5pos = {x=216, y=602, z=14}
nplayer6pos = {x=217, y=602, z=14}

doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doSendMagicEffect(player4pos,2)
doSendMagicEffect(player5pos,2)
doSendMagicEffect(player6pos,2)

doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doTeleportThing(player4.uid,nplayer4pos)
doTeleportThing(player5.uid,nplayer3pos)
doTeleportThing(player6.uid,nplayer4pos)

doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doSendMagicEffect(nplayer4pos,10)
doSendMagicEffect(nplayer5pos,10)
doSendMagicEffect(nplayer6pos,10)

doTransformItem(item.uid,1945)

else
doPlayerSendCancel(cid,"All players must have level 120 to enter.")
end
else
doPlayerSendCancel(cid,"You need 6 players in your team.")
end
end
if item.itemid == 1945 then

starting={x=209, y=592, z=14, stackpos=253}
checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos}
ending={x=238, y=608, z=14, stackpos=253}
players=0
totalmonsters=0
monster = {}
repeat
creature= getThingfromPos(checking)
if creature.itemid > 0 then
if getPlayerAccess(creature.uid) == 0 then
players=players+1
end
if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then
totalmonsters=totalmonsters+1
monster[totalmonsters]=creature.uid
end
end
checking.x=checking.x+1
if checking.x>ending.x then
checking.x=starting.x
checking.y=checking.y+1
end
until checking.y>ending.y
if players==0 then
trash= {x=247, y=618, z=14}
current=0
repeat
current=current+1
doTeleportThing(monster[current],trash)
until current>=totalmonsters
doTransformItem(item.uid,1946)
end


end
end
if item.uid == 10075 then
queststatus = getPlayerStorageValue(cid,100)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Golden Boots.")
doPlayerAddItem(cid,2646,1)
setPlayerStorageValue(cid,100,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
if item.uid == 10076 then
queststatus = getPlayerStorageValue(cid,100)
if queststatus ~= 1 then
doPlayerSendTextMessage(cid,22,"You have found a Horned Helmet.")
doPlayerAddItem(cid,2496,1)
setPlayerStorageValue(cid,100,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
if item.uid == 10077 then
queststatus = getPlayerStorageValue(cid,100)
if queststatus ~= 1 then
doPlayerSendTextMessage(cid,22,"You have found a Spellscroll of Prophecies.")
doPlayerAddItem(cid,8904,1)
setPlayerStorageValue(cid,100,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
if item.uid == 10078 then
queststatus = getPlayerStorageValue(cid,100)
if queststatus ~= 1 then
doPlayerSendTextMessage(cid,22,"You have found a 100 Crystal Coin.")
doPlayerAddItem(cid,2160,100)
setPlayerStorageValue(cid,100,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
return 1
end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...