-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 870 visualizações
-
- 3 respostas
- 3847 visualizações
-
- 0 respostas
- 1891 visualizações
-
- 2 respostas
- 1713 visualizações
-
- 1 resposta
- 1505 visualizações
-
Pergunta
GodalonexD 4
ola eu to com uns erros no distro sendo que os scripts estao funcionando perfeitamente, mais eu gostaria de tirar os erros pois as vezes o server cai de tanto da o erro sabe?
ja postei alguns erros aqui e ja foram arrumados agora esses erros que estou postando é outros...
Decidir posta todos de uma vez, quem puder ajudar nao é preciso ajudar em todos, mais em 1 ou 2 ja ta de bom tamanho
postei os erros que mais aparecem no distro.
REP+
[9/11/2012 11:10:21] [Error - MoveEvents Interface]
[9/11/2012 11:10:21] data/movements/scripts/azerus.lua:onStepIn
[9/11/2012 11:10:21] Description:
[9/11/2012 11:10:21] (luaGetThingFromPosition) Tile not found
function onStepIn(cid, item, position, fromPosition)
--Config-->
local queststatus = getPlayerStorageValue(cid, 50001)
local player_pos_entrada = {x = 32784, y = 31177, z = 9} --coloque a pos pra onde o player q pisou no piso vai ser teleportado!
local starting={x = 32775, y = 31156, z = 10}
local ending={x = 32790, y = 31175, z = 10}
local trash= {x=33193, y=31689, z=15}
local players = 0
local total = 0
local monster = {}
--EndConfig-->
if item.actionid == 1974 and queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")
setPlayerStorageValue(cid, 4765, 1)
return TRUE
end
if item.actionid == 1973 and queststatus == -1 then
for x = starting.x, ending.x do
for y = starting.y, ending.y do
local creature = getThingfromPos({x = x, y = y, z = starting.z, stackpos = 253}).uid
if isPlayer(creature) then players = players+1 end
if isMonster(creature) then monster[total+1] = creature total = total+1 end
end
end
if #monster > 0 and players == 0 then
for i = 1, #monster do
doTeleportThing(monster, trash)
end
end
doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!')
end
return true
end
[9/11/2012 17:44:17] [Error - Action Interface]
[9/11/2012 17:44:17] data/actions/scripts/quests/annihilator.lua:onUse
[9/11/2012 17:44:17] Description:
[9/11/2012 17:44:17] (internalGetPlayerInfo) Player not found when requesting player info #3
[9/11/2012 17:44:17] [Error - Action Interface]
[9/11/2012 17:44:17] data/actions/scripts/quests/annihilator.lua:onUse
[9/11/2012 17:44:17] Description:
[9/11/2012 17:44:17] data/actions/scripts/quests/annihilator.lua:30: attempt to compare number with boolean
[9/11/2012 17:44:17] stack traceback:
[9/11/2012 17:44:17] data/actions/scripts/quests/annihilator.lua:30: in function <data/actions/scripts/quests/annihilator.lua:4>
[9/11/2012 23:12:9] [Error - Action Interface]
[9/11/2012 23:12:9] data/actions/scripts/quests/annihilator.lua:onUse
[9/11/2012 23:12:9] Description:
[9/11/2012 23:12:9] data/actions/scripts/quests/annihilator.lua:85: attempt to call global 'cleanArea' (a nil value)
[9/11/2012 23:12:9] stack traceback:
[9/11/2012 23:12:9] data/actions/scripts/quests/annihilator.lua:85: in function <data/actions/scripts/quests/annihilator.lua:4>
local starting= {x = 33218, y = 31656, z = 13} -- edit this to the top left sqm of ur annhilator room
local ending= {x = 33225, y = 31661, z = 13} -- edit this to the bottom right sqm of ur annhilator room
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5000 then
if item.itemid == 1945 then
player1pos = {x=33222, y=31671, z=13, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=33223, y=31671, z=13, stackpos=253}
player2 = getThingfromPos(player2pos)
player3pos = {x=33224, y=31671, z=13, stackpos=253}
player3 = getThingfromPos(player3pos)
player4pos = {x=33225, y=31671, z=13, stackpos=253}
player4 = getThingfromPos(player4pos)
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
player3level = getPlayerLevel(player3.uid)
player4level = getPlayerLevel(player4.uid)
questlevel = 100
if player1level >= questlevel and player2level >= questlevel and player3level >= questlevel and player4level >= questlevel then
queststatus1 = getPlayerStorageValue(player1.uid,5000)
queststatus2 = getPlayerStorageValue(player2.uid,5000)
queststatus3 = getPlayerStorageValue(player3.uid,5000)
queststatus4 = getPlayerStorageValue(player4.uid,5000)
if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 and queststatus4 == -1 then
demon1pos = {x=33219, y=31657, z=13}
demon2pos = {x=33221, y=31657, z=13}
demon3pos = {x=33220, y=31661, z=13}
demon4pos = {x=33222, y=31661, z=13}
demon5pos = {x=33223, y=31659, z=13}
demon6pos = {x=33224, y=31659, z=13}
doSummonCreature("Demon", demon1pos)
doSummonCreature("Demon", demon2pos)
doSummonCreature("Demon", demon3pos)
doSummonCreature("Demon", demon4pos)
doSummonCreature("Demon", demon5pos)
doSummonCreature("Demon", demon6pos)
nplayer1pos = {x =33219, y =31659, z =13}
nplayer2pos = {x =33220, y =31659, z =13}
nplayer3pos = {x =33221, y =31659, z =13}
nplayer4pos = {x =33222, y =31659, z =13}
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,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
elseif item.itemid == 1946 then
if(cleanArea()) then
doTransformItem(item.uid, 1945)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
end
elseif item.uid == 49111 then
queststatus = getPlayerStorageValue(cid,5000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a demon armor.")
doPlayerAddItem(cid,2494,1)
setPlayerStorageValue(cid,5000,1)
doPlayerSendTextMessage(cid,18,"Congratulations! You earned the achievement \"Annihilator\".")
doCreatureSetStorage(cid, 20072, 5)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
end
elseif item.uid == 49112 then
queststatus = getPlayerStorageValue(cid,5000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a magic sword.")
doPlayerAddItem(cid,2400,1)
setPlayerStorageValue(cid,5000,1)
doPlayerSendTextMessage(cid,18,"Congratulations! You earned the achievement \"Annihilator\".")
doCreatureSetStorage(cid, 20072, 5)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
end
elseif item.uid == 49113 then
queststatus = getPlayerStorageValue(cid,5000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a stonecutter axe.")
doPlayerAddItem(cid,2431,1)
setPlayerStorageValue(cid,5000,1)
doPlayerSendTextMessage(cid,18,"Congratulations! You earned the achievement \"Annihilator\".")
doCreatureSetStorage(cid, 20072, 5)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
end
elseif item.uid == 49114 then
queststatus = getPlayerStorageValue(cid,5000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a present box.")
box = doPlayerAddItem(cid,1990,1)
doAddContainerItem(box, 2326, 1)
doPlayerSendTextMessage(cid,18,"Congratulations! You earned the achievement \"Annihilator\".")
doCreatureSetStorage(cid, 20072, 5)
setPlayerStorageValue(cid,5000,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
end
end
function cleanArea()
local checking= {x = starting.x, y = starting.y, z = starting.z, stackpos = 253}
local monster = {}
while(checking.y <= ending.y) do
local creature = getTopCreature(checking).uid or getTopCreature(checking)
if(isCreature(creature) == TRUE) then
if(isPlayer(creature) == TRUE) then
return false
else
table.insert(monster, creature)
end
end
if(checking.x == ending.x) then
checking.x = starting.x
checking.y = checking.y + 1
end
checking.x = checking.x + 1
end
for i, c in ipairs(monster) do
doRemoveCreature©
end
return true
end
return 1
end
[10/11/2012 2:53:23] [Error - MoveEvents Interface]
[10/11/2012 2:53:23] data/movements/scripts/dcq/carrot.lua:onStepIn
[10/11/2012 2:53:23] Description:
[10/11/2012 2:53:23] (luaGetPlayerItemCount) Player not found
[10/11/2012 2:53:23] [Error - MoveEvents Interface]
[10/11/2012 2:53:23] data/movements/scripts/dcq/carrot.lua:onStepIn
[10/11/2012 2:53:23] Description:
[10/11/2012 2:53:23] data/movements/scripts/dcq/carrot.lua:5: attempt to compare number with boolean
[10/11/2012 2:53:23] stack traceback:
[10/11/2012 2:53:23] data/movements/scripts/dcq/carrot.lua:5: in function <data/movements/scripts/dcq/carrot.lua:1>
function onStepIn(cid, item, pos)
local zabierz = 200
local zycie = getCreatureHealth(cid)
if getPlayerStorageValue(cid,6464) == -1 then
if getPlayerItemCount(cid,2684) > 0 then
doPlayerRemoveItem(cid,2684, 1)
doTeleportThing(cid,{x=pos.x, y=pos.y-4, z=pos.z})
doSendMagicEffect(pos, 2)
doSendMagicEffect({x=pos.x-1, y=pos.y-1, z=pos.z}, 2)
doSendMagicEffect({x=pos.x-1, y=pos.y-2, z=pos.z}, 2)
doSendMagicEffect({x=pos.x, y=pos.y-3, z=pos.z}, 2)
doSendMagicEffect({x=pos.x, y=pos.y-4, z=pos.z}, 2)
else
doCreateItem(1493, 1, {x=pos.x, y=pos.y, z=pos.z})
doCreatureAddHealth(cid, -zabierz)
doTeleportThing(cid,{x=pos.x, y=pos.y+3, z=pos.z})
doSendMagicEffect({x=pos.x-4, y=pos.y-1, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-5, y=pos.y-1, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-4, y=pos.y-2, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-4, y=pos.y, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-3, y=pos.y-1, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-2, y=pos.y-1, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-1, y=pos.y-1, z=pos.z}, 6)
doSendMagicEffect({x=pos.x, y=pos.y-1, z=pos.z}, 6)
doSendMagicEffect({x=pos.x, y=pos.y, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-1, y=pos.y-2, z=pos.z}, 6)
doSendMagicEffect({x=pos.x, y=pos.y-2, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-2, y=pos.y-2, z=pos.z}, 6)
doSendMagicEffect({x=pos.x-3, y=pos.y-2, z=pos.z}, 6)
end
end
return 1
end
[10/11/2012 3:15:42] [Error - Action Interface]
[10/11/2012 3:15:42] data/actions/scripts/tools/rope.lua:onUse
[10/11/2012 3:15:42] Description:
[10/11/2012 3:15:42] (luaGetThingFromPosition) Tile not found
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(toPosition.x == CONTAINER_POSITION) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
return true
end
toPosition.stackpos = STACKPOS_GROUND
local itemGround = getThingFromPos(toPosition)
if(isInArray(SPOTS, itemGround.itemid)) then
doTeleportThing(cid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, false)
return true
elseif(isInArray(ROPABLE, itemEx.itemid)) then
local hole = getThingFromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE})
if(hole.itemid > 0) then
doTeleportThing(hole.uid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z}, false)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
end
return true
end
return false
end
[10/11/2012 4:58:50] [Error - Action Interface]
[10/11/2012 4:58:50] data/actions/scripts/quests/vocation_quest.lua:onUse
[10/11/2012 4:58:50] Description:
[10/11/2012 4:58:50] (internalGetPlayerInfo) Player not found when requesting player info #6
[10/11/2012 4:58:50] [Error - Action Interface]
[10/11/2012 4:58:50] data/actions/scripts/quests/vocation_quest.lua:onUse
[10/11/2012 4:58:50] Description:
[10/11/2012 4:58:50] (internalGetPlayerInfo) Player not found when requesting player info #3
function onUse(cid, item, frompos, item2, topos)
-- Item ID and Uniqueid --
switchUniqueID = 1912
switchID = 1945
switch2ID = 1946
swordID = 2376
crossbowID = 2455
appleID = 2674
spellbookID = 2175
-- Level to do the quest --
questlevel = 20
piece1pos = {x=32673, y=32094, z=8, stackpos=1} -- Where the first piece will be placed
getpiece1 = getThingfromPos(piece1pos)
piece2pos = {x=32673, y=32083, z=8, stackpos=1} -- Where the second piece will be placed
getpiece2 = getThingfromPos(piece2pos)
piece3pos = {x=32667, y=32089, z=8, stackpos=1} -- Where the third piece will be placed
getpiece3 = getThingfromPos(piece3pos)
piece4pos = {x=32679, y=32089, z=8, stackpos=1} -- Where the fourth piece will be placed
getpiece4 = getThingfromPos(piece4pos)
player1pos = {x=32673, y=32093, z=8, stackpos=253} -- Where player1 will stand before pressing lever
player1 = getThingfromPos(player1pos)
player2pos = {x=32673, y=32085, z=8, stackpos=253} -- Where player2 will stand before pressing lever
player2 = getThingfromPos(player2pos)
player3pos = {x=32669, y=32089, z=8, stackpos=253} -- Where player3 will stand before pressing lever
player3 = getThingfromPos(player3pos)
player4pos = {x=32677, y=32089, z=8, stackpos=253} -- Where player4 will stand before pressing lever
player4 = getThingfromPos(player4pos)
knightvoc = getPlayerVocation(player1.uid) -- The vocation of player1
paladinvoc = getPlayerVocation(player2.uid) -- The vocation of player2
druidvoc = getPlayerVocation(player3.uid) -- The vocation of player3
sorcerervoc = getPlayerVocation(player4.uid) -- The vocation of player4
nplayer1pos = {x=32671, y=32069, z=8} -- The new position of player1
nplayer2pos = {x=32672, y=32069, z=8} -- The new position of player2
nplayer3pos = {x=32671, y=32070, z=8} -- The new position of player3
nplayer4pos = {x=32672, y=32070, z=8} -- The new position of player4
player1level = getPlayerLevel(player1.uid) -- Checking the level of player1
player2level = getPlayerLevel(player2.uid) -- Checking the level of player2
player3level = getPlayerLevel(player3.uid) -- Checking the level of player3
player4level = getPlayerLevel(player4.uid) -- Checking the level of player4
-- Check if all players has the correct vocation
if knightvoc == 4 or knightvoc == 8 and
paladinvoc == 3 or paladinvoc == 7 and
druidvoc == 2 or druidvoc == 6 and
sorcerervoc == 1 or sorcerervoc == 5 then
-- Check if all players are standing on the correct positions
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
if player1level >= questlevel and player2level >= questlevel and player3level >= questlevel and player4level >= questlevel then
if item.uid == switchUniqueID and item.itemid == switchID and getpiece1.itemid == swordID and getpiece2.itemid == crossbowID and getpiece3.itemid == appleID and getpiece4.itemid == spellbookID then
doSendMagicEffect(player1pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doSendMagicEffect(nplayer1pos,10)
doRemoveItem(getpiece1.uid,1)
doSendMagicEffect(player2pos,2)
doTeleportThing(player2.uid,nplayer2pos)
doSendMagicEffect(nplayer2pos,10)
doRemoveItem(getpiece2.uid,1)
doSendMagicEffect(player3pos,2)
doTeleportThing(player3.uid,nplayer3pos)
doSendMagicEffect(nplayer3pos,10)
doRemoveItem(getpiece3.uid,1)
doSendMagicEffect(player4pos,2)
doTeleportThing(player4.uid,nplayer4pos)
doSendMagicEffect(nplayer4pos,10)
doRemoveItem(getpiece4.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, you need to put the correct stuffs at the correct basins.")
end
else
return 0
end
else
doPlayerSendCancel(cid,"Sorry, all players in your team must to be level " .. questlevel .. ".")
end
else
doPlayerSendCancel(cid,"Sorry, all 4 players must be on right positions.")
end
return 1
end
[10/11/2012 11:32:24] [Error - NpcScript Interface]
[10/11/2012 11:32:24] data/npc/scripts/Lizard Tunnel Guard.lua:onCreatureSay
[10/11/2012 11:32:24] Description:
[10/11/2012 11:32:24] (luaDoPlayerRemoveItem) Player not found
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
npcHandler:addModule(FocusModule:new())
function onCreatureSay(cid, type, msg)
local jail = {x=33362, y=31208, z=8}
doSendMagicEffect(getCreaturePosition(cid),CONST_ME_TELEPORT)
doTeleportThing(cid, jail, TRUE)
doCreatureSay(cid, 'The guards have spotted you. You were forcibly dragged into a small cell. It looks like you need to build another disguise.', TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid),CONST_ME_TELEPORT)
doPlayerRemoveItem(cid, 12245, 1)
end
[10/11/2012 19:47:46] [Error - Action Interface]
[10/11/2012 19:47:46] data/actions/scripts/tools/shovel.lua:onUse
[10/11/2012 19:47:46] Description:
[10/11/2012 19:47:46] (luaGetThingFromPosition) Tile not found
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(isInArray(HOLES, itemEx.itemid)) then
if(itemEx.itemid ~= 8579) then
itemEx.itemid = itemEx.itemid + 1
else
itemEx.itemid = 8585
end
doTransformItem(itemEx.uid, itemEx.itemid)
doDecayItem(itemEx.uid)
return true
elseif(SAND_HOLES[itemEx.itemid] ~= nil and getThingFromPos({x=toPosition.x,y=toPosition.y,z=toPosition.z+1}).itemid == 418) then
doSendMagicEffect(toPosition, CONST_ME_POFF)
doTransformItem(itemEx.uid, SAND_HOLES[itemEx.itemid])
doDecayItem(itemEx.uid)
return true
elseif(itemEx.itemid == SAND and not isRookie(cid)) then
local rand = math.random(1, 100)
if(rand >= 1 and rand <= 5) then
doCreateItem(ITEM_SCARAB_COIN, 1, toPosition)
elseif(rand > 85) then
doCreateMonster("Scarab", toPosition, false)
end
doSendMagicEffect(toPosition, CONST_ME_POFF)
return true
end
return false
end
Link para o comentário
https://xtibia.com/forum/topic/198663-erros-distro-scrips-funcionando/Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados