O erro abaixo, se não me engano, é porque o Launcher não encontrou o Arquivo em suas respectivas pastas.
[22/04/2011 22:41:13] cannot open data/actions/scripts/super.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/super.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/super.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/super.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/super2.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/super2.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/super2.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/great.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/great.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/great2.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/great2.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/great2.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/penegret.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/penegret.lua)
1º passo
Confira se os nomes estão corretos e nas pastas corretas (arquivo.lua)
2º passo
Crie uma pasta só para por esses Scripts.
Ex: pasta "Surf"
Coloque os arquivos dentro, e no Actions ficará assim
Ex:
<action actionid="XXXX" event="script" value="Surf/super.lua"/>
<action actionid="XXXX" event="script" value="Surf/super2.lua"/>
sucessivamente...
----------------------------------------------------------------------------------
Já no erro abaixo, apesar de que não vi nenhum e não mecher com OTServ Pokemon, me parece que aqui onde vou citar vermelho parece está errado.
(não sei mais nada sobre)
tente por "Local file" no lugar de "local flie"
local poke = {'Poliwag', 'Poliwhirl', 'Seaking', 'Dewgong', 'Blastoise', 'Tentacruel', 'Lapras', 'Gyarados', 'Omastar', 'Kabutops', 'Vaporeon', 'Staryu', 'Starmie', 'Goldeen', 'Seadra', 'Golduck', 'Squirtle', 'Wartortle', 'Tentacool', 'Snorlax', 'Poliwrath'}
local flie = {'4820', '4821', '4822', '4823', '4824', '4825', '4608','4609', '4610', '4611', '4612', '4613', '4614', '4615', '4616', '4617', '4618', '4619', '4620', '4621', '4622', '4623', '4624', '4625', '4664', '4665', '4666'}
--- Editar no TIBIA.spr e tornar as aguas walkable apartir de 4608
local surf = {
["Poliwag"] = {lookType=278, speed = 320},
["Poliwhirl"] = {lookType=137, speed = 480},
["Seaking"] = {lookType=269, speed = 520},
["Dewgong"] = {lookType=183, speed = 700},
["Blastoise"] = {lookType=184, speed = 850},
["Tentacruel"] = {lookType=185, speed = 750},
["Lapras"] = {lookType=186, speed = 960},
["Gyarados"] = {lookType=187, speed = 1050},
["Omastar"] = {lookType=188, speed = 680},
["Kabutops"] = {lookType=189, speed = 840},
["Poliwrath"] = {lookType=190, speed = 680},
["Vaporeon"] = {lookType=191, speed = 800},
["Staryu"] = {lookType=266, speed = 385},
["Starmie"] = {lookType=267, speed = 685},
["Goldeen"] = {lookType=268, speed = 355},
["Seadra"] = {lookType=270, speed = 655},
["Golduck"] = {lookType=271, speed = 760},
["Squirtle"] = {lookType=273, speed = 365},
["Wartortle"] = {lookType=275, speed = 605},
["Tentacool"] = {lookType=277, speed = 340},
["Snorlax"] = {lookType=300, speed = 500},
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) and not isPremium(cid) then -- tire o primeiro not, atras do isPlayer para ativar o premium
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Only premium members are allowed to surf.")
return true
end
if getCreatureOutfit(cid).lookType == 316 then
doSendMagicEffect(fromPosition, 136)
end
if not isPlayer(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
if getPlayerStorageValue(cid, 63215) ~= 1 and getPlayerStorageValue(cid, 17000) <= 0 then
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to surf.")
doTeleportThing(cid, fromPosition, false)
else
if (not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1]))) then
doPlayerSendCancel(cid, "This pokemon cannot surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
end
end
if #getCreatureSummons(cid) >= 1 and isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) and getPlayerStorageValue(cid, 63215) ~= 1 and getPlayerStorageValue(cid, 17000) <= 0 then
doSetCreatureOutfit(cid, surf[getCreatureName(getCreatureSummons(cid)[1])], -1)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", lets surf!", 1)
doChangeSpeed(cid, -(getCreatureSpeed(cid)))
doChangeSpeed(cid, surf[getCreatureName(getCreatureSummons(cid)[1])].speed)
setPlayerStorageValue(cid, 61209, getCreatureMaxHealth(getCreatureSummons(cid)[1]))
setPlayerStorageValue(cid, 61210, getCreatureHealth(getCreatureSummons(cid)[1]))
doRemoveCreature(getCreatureSummons(cid)[1])
addEvent(setPlayerStorageValue, 100, cid, 63215, 1)
end
if getPlayerStorageValue(cid, 63215) == 1 then
if getCreatureLookDir(cid) == 0 then
doSendMagicEffect(fromPosition, 33)
elseif getCreatureLookDir(cid) == 1 then
doSendMagicEffect(fromPosition, 49)
elseif getCreatureLookDir(cid) == 2 then
doSendMagicEffect(fromPosition, 30)
elseif getCreatureLookDir(cid) == 3 then
doSendMagicEffect(fromPosition, 51)
end
end
if getPlayerStorageValue(cid, 17000) >= 1 then
if not isInArray(flie, getTileInfo(fromPosition).itemid) then
return true
end
if getCreatureLookDir(cid) == 0 then
doSendMagicEffect(fromPosition, 33)
elseif getCreatureLookDir(cid) == 1 then
doSendMagicEffect(fromPosition, 49)
elseif getCreatureLookDir(cid) == 2 then
doSendMagicEffect(fromPosition, 30)
elseif getCreatureLookDir(cid) == 3 then
doSendMagicEffect(fromPosition, 51)
end
end
return true
end
function onStepOut(cid, item, position, fromPosition)
if not isInArray({4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos(getThingPos(cid)).itemid) then
setPlayerGroupId(cid, 1)
end
return true
end
Sem mais.
Abraços... e Boa Sorte


info
Grupo: Campones
Registrado: 21/04/11
Posts: 4
Reputação: 0
Pessoal eu vim aqui pedir ajuda para vocês meu surf system está dando varios erros quando eu abro o the forgotten se alguem puder ajudar irei postar o script : [22/04/2011 22:41:13] cannot open data/actions/scripts/super.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/super.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/super.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/super.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/super2.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/super2.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/super2.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/great.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/great.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/great.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/great2.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/great2.lua)
[22/04/2011 22:41:13] cannot open data/actions/scripts/great2.lua: No such file or directory
[22/04/2011 22:41:13] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/penegret.lua: No such file or directory
[22/04/2011 22:41:13] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/penegret.lua)
aqui está meu script de surf que esta dando problema : local poke = {'Poliwag', 'Poliwhirl', 'Seaking', 'Dewgong', 'Blastoise', 'Tentacruel', 'Lapras', 'Gyarados', 'Omastar', 'Kabutops', 'Vaporeon', 'Staryu', 'Starmie', 'Goldeen', 'Seadra', 'Golduck', 'Squirtle', 'Wartortle', 'Tentacool', 'Snorlax', 'Poliwrath'}
local flie = {'4820', '4821', '4822', '4823', '4824', '4825', '4608','4609', '4610', '4611', '4612', '4613', '4614', '4615', '4616', '4617', '4618', '4619', '4620', '4621', '4622', '4623', '4624', '4625', '4664', '4665', '4666'}
--- Editar no TIBIA.spr e tornar as aguas walkable apartir de 4608
local surf = {
["Poliwag"] = {lookType=278, speed = 320},
["Poliwhirl"] = {lookType=137, speed = 480},
["Seaking"] = {lookType=269, speed = 520},
["Dewgong"] = {lookType=183, speed = 700},
["Blastoise"] = {lookType=184, speed = 850},
["Tentacruel"] = {lookType=185, speed = 750},
["Lapras"] = {lookType=186, speed = 960},
["Gyarados"] = {lookType=187, speed = 1050},
["Omastar"] = {lookType=188, speed = 680},
["Kabutops"] = {lookType=189, speed = 840},
["Poliwrath"] = {lookType=190, speed = 680},
["Vaporeon"] = {lookType=191, speed = 800},
["Staryu"] = {lookType=266, speed = 385},
["Starmie"] = {lookType=267, speed = 685},
["Goldeen"] = {lookType=268, speed = 355},
["Seadra"] = {lookType=270, speed = 655},
["Golduck"] = {lookType=271, speed = 760},
["Squirtle"] = {lookType=273, speed = 365},
["Wartortle"] = {lookType=275, speed = 605},
["Tentacool"] = {lookType=277, speed = 340},
["Snorlax"] = {lookType=300, speed = 500},
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) and not isPremium(cid) then -- tire o primeiro not, atras do isPlayer para ativar o premium
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Only premium members are allowed to surf.")
return true
end
if getCreatureOutfit(cid).lookType == 316 then
doSendMagicEffect(fromPosition, 136)
end
if not isPlayer(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
if getPlayerStorageValue(cid, 63215) ~= 1 and getPlayerStorageValue(cid, 17000) <= 0 then
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to surf.")
doTeleportThing(cid, fromPosition, false)
else
if (not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1]))) then
doPlayerSendCancel(cid, "This pokemon cannot surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
end
end
if #getCreatureSummons(cid) >= 1 and isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) and getPlayerStorageValue(cid, 63215) ~= 1 and getPlayerStorageValue(cid, 17000) <= 0 then
doSetCreatureOutfit(cid, surf[getCreatureName(getCreatureSummons(cid)[1])], -1)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", lets surf!", 1)
doChangeSpeed(cid, -(getCreatureSpeed(cid)))
doChangeSpeed(cid, surf[getCreatureName(getCreatureSummons(cid)[1])].speed)
setPlayerStorageValue(cid, 61209, getCreatureMaxHealth(getCreatureSummons(cid)[1]))
setPlayerStorageValue(cid, 61210, getCreatureHealth(getCreatureSummons(cid)[1]))
doRemoveCreature(getCreatureSummons(cid)[1])
addEvent(setPlayerStorageValue, 100, cid, 63215, 1)
end
if getPlayerStorageValue(cid, 63215) == 1 then
if getCreatureLookDir(cid) == 0 then
doSendMagicEffect(fromPosition, 33)
elseif getCreatureLookDir(cid) == 1 then
doSendMagicEffect(fromPosition, 49)
elseif getCreatureLookDir(cid) == 2 then
doSendMagicEffect(fromPosition, 30)
elseif getCreatureLookDir(cid) == 3 then
doSendMagicEffect(fromPosition, 51)
end
end
if getPlayerStorageValue(cid, 17000) >= 1 then
if not isInArray(flie, getTileInfo(fromPosition).itemid) then
return true
end
if getCreatureLookDir(cid) == 0 then
doSendMagicEffect(fromPosition, 33)
elseif getCreatureLookDir(cid) == 1 then
doSendMagicEffect(fromPosition, 49)
elseif getCreatureLookDir(cid) == 2 then
doSendMagicEffect(fromPosition, 30)
elseif getCreatureLookDir(cid) == 3 then
doSendMagicEffect(fromPosition, 51)
end
end
return true
end
function onStepOut(cid, item, position, fromPosition)
if not isInArray({4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos(getThingPos(cid)).itemid) then
setPlayerGroupId(cid, 1)
end
return true
end