Postado Janeiro 18, 2013 12 anos [18/01/2013 21:42:59] [Error - MoveEvents Interface] [18/01/2013 21:42:59] data/movements/scripts/surf.lua:onStepOut [18/01/2013 21:42:59] Description: [18/01/2013 21:42:59] data/movements/scripts/surf.lua:153: attempt to index a boolean value [18/01/2013 21:42:59] stack traceback: [18/01/2013 21:42:59] data/movements/scripts/surf.lua:153: in function <data/movements/scripts/surf.lua:146> Alguem pode Ajudar?
Postado Janeiro 19, 2013 12 anos Autor COMO REINSTALAR O SERVIDOR KKKKKKKKK É SERVIDOR, NÃO TEM COMO REINSTALAR.
Postado Janeiro 19, 2013 12 anos [18/01/2013 21:42:59] [Error - MoveEvents Interface] [18/01/2013 21:42:59] data/movements/scripts/surf.lua:onStepOut [18/01/2013 21:42:59] Description: [18/01/2013 21:42:59] data/movements/scripts/surf.lua:153: attempt to index a boolean value [18/01/2013 21:42:59] stack traceback: [18/01/2013 21:42:59] data/movements/scripts/surf.lua:153: in function <data/movements/scripts/surf.lua:146> Alguem pode Ajudar? Já penso em postar o script q tá dando erro junto ? '-'
Postado Janeiro 20, 2013 12 anos Não falei do server, LOOOL, falei do script, as vezes copiou aglo errado, por causa de uma "?" o script bugga completamente, então verifique se não cometeu algum erro. Caso Continue Use esses scripts " Do meu OT " Pasta do ot/data/Movements/script, crie uma pasta com o nome swimming em seguida os seguintes arquivos: east.lua dofile(getDataDir() .. 'movements/scripts/swimming/swimlib.lua') function onStepIn(cid, item, pos) return checkSwim(cid, EAST, WEST) end north.lua dofile(getDataDir() .. 'movements/scripts/swimming/swimlib.lua') function onStepIn(cid, item, pos) return checkSwim(cid, NORTH, SOUTH) end south.lua dofile(getDataDir() .. 'movements/scripts/swimming/swimlib.lua') function onStepIn(cid, item, pos) return checkSwim(cid, SOUTH, NORTH) end swimlib.lua local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0} local conditions = { CONDITION_POISON, CONDITION_FIRE, CONDITION_ENERGY, CONDITION_PARALYZE, CONDITION_DRUNK, CONDITION_DROWN, CONDITION_FREEZING, CONDITION_DAZZLED, CONDITION_CURSED } function checkSwim(cid, swimDir, backDir) local posNow = getThingPos(cid) if(hasCondition(cid, CONDITION_OUTFIT) == TRUE and getCreatureOutfit(cid).lookType == outfit.lookType) then doMoveCreature(cid, backDir) doRemoveCondition(cid, CONDITION_OUTFIT) elseif(doTileQueryAdd(cid, getPosByDir(posNow, swimDir), 4) ~= RETURNVALUE_NOERROR) then return FALSE else -- Remove all bad conditions before swimming for i, v in ipairs(conditions) do if(hasCondition(cid, v) == TRUE) then doRemoveCondition(cid, v) end end doMoveCreature(cid, swimDir) doSetCreatureOutfit(cid, outfit, -1) doSendMagicEffect(getThingPos(cid), CONST_ME_WATERSPLASH) end return TRUE end west.lua dofile(getDataDir() .. 'movements/scripts/swimming/swimlib.lua') function onStepIn(cid, item, pos) return checkSwim(cid, WEST, EAST) end Pronto, agora vá em pasta do ot/data/movements/script e crei o seguinte arquivo: swimming.lua local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0} local BORDERS = { [7943] = {x = 0, y = -2, back = SOUTH}, [7944] = {x = -2, y = 0, back = EAST}, [7945] = {x = 0, y = 2, back = NORTH}, [7946] = {x = 2, y = 0, back = WEST}, [7947] = {x = 2, y = 1, back = WEST}, [7948] = {x = -2, y = 1, back = NORTH}, [7949] = {x = 2, y = -1, back = WEST}, [7950] = {x = -2, y = -1, back = EAST}, [7951] = {x = 2, y = 2, back = WEST}, [7952] = {x = -2, y = 2, back = NORTH}, [7953] = {x = 2, y = -2, back = WEST}, [7954] = {x = -2, y = -2, back = SOUTH} } BORDERS[4828] = BORDERS[7943] BORDERS[4829] = BORDERS[7946] BORDERS[4830] = BORDERS[7945] BORDERS[4831] = BORDERS[7944] function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if(not isPlayer(cid)) then return true end local border = BORDERS[item.itemid] if(not border) then return false end local pos, newPos = getCreaturePosition(cid), {} newPos = pos newPos.x = pos.x + border.x newPos.y = pos.y + border.y if(hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == outfit.lookType) then doMoveCreature(cid, border.back) doRemoveCondition(cid, CONDITION_OUTFIT) else if(doTileQueryAdd(cid, pos, 4) ~= RETURNVALUE_NOERROR) then return false end local tmp = getCreaturePosition(cid) doTeleportThing(cid, newPos) if(not isPlayerGhost(cid)) then doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(newPos, CONST_ME_WATERSPLASH) end doRemoveConditions(cid, true) doSetCreatureOutfit(cid, outfit, -1) end return true end Editado Janeiro 20, 2013 12 anos por PaulinhoAraujo (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.