Ir para conteúdo

Erro Do Surf Alguem Me Ajuda?


pok302010

Posts Recomendados

ei gaelera eu to com um problema no meu server tem veses que ele da um erro no surf.lua e fica dando direto...

quando ele esta dando fica muito lag no server e não da pra jogar!ajuda ae galera.

 

ta ae o erro:

[01/03/2011 22:18:40] [Error - MoveEvents Interface] 
[01/03/2011 22:18:40] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:18:40] Description: 
[01/03/2011 22:18:40] (luaDoPlayerSendCancel) Player not found
[01/03/2011 22:19:35] > Broadcasted message: "Full server salvando dentro de 120 segundos, por favor tente ficar parado!".
[01/03/2011 22:19:46] > Broadcasted message: "Full server salvando dentro de 30 segundos, por favor tente ficar parado!".
[01/03/2011 22:19:50] > Saving server...
[01/03/2011 22:19:50] > SAVE: Complete in 0.234 seconds using relational house storage.

[01/03/2011 22:20:05] [Error - MoveEvents Interface] 
[01/03/2011 22:20:05] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:20:05] Description: 
[01/03/2011 22:20:05] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:20:06] [Error - MoveEvents Interface] 
[01/03/2011 22:20:06] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:20:06] Description: 
[01/03/2011 22:20:06] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:20:07] [Error - MoveEvents Interface] 
[01/03/2011 22:20:07] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:20:07] Description: 
[01/03/2011 22:20:07] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:20:08] [Error - MoveEvents Interface] 
[01/03/2011 22:20:08] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:20:08] Description: 
[01/03/2011 22:20:08] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:20:09] [Error - MoveEvents Interface] 
[01/03/2011 22:20:09] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:20:09] Description: 
[01/03/2011 22:20:09] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:21:50] [Error - MoveEvents Interface] 
[01/03/2011 22:21:50] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:21:50] Description: 
[01/03/2011 22:21:50] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:02] [Error - MoveEvents Interface] 
[01/03/2011 22:22:02] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:02] Description: 
[01/03/2011 22:22:02] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:03] [Error - MoveEvents Interface] 
[01/03/2011 22:22:03] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:03] Description: 
[01/03/2011 22:22:03] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:05] [Error - MoveEvents Interface] 
[01/03/2011 22:22:05] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:05] Description: 
[01/03/2011 22:22:05] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:06] [Error - MoveEvents Interface] 
[01/03/2011 22:22:06] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:06] Description: 
[01/03/2011 22:22:06] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:06] [Error - MoveEvents Interface] 
[01/03/2011 22:22:06] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:06] Description: 
[01/03/2011 22:22:06] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:07] [Error - MoveEvents Interface] 
[01/03/2011 22:22:07] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:07] Description: 
[01/03/2011 22:22:07] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:07] [Error - MoveEvents Interface] 
[01/03/2011 22:22:07] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:07] Description: 
[01/03/2011 22:22:07] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:08] [Error - MoveEvents Interface] 
[01/03/2011 22:22:08] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:08] Description: 
[01/03/2011 22:22:08] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:11] [Error - MoveEvents Interface] 
[01/03/2011 22:22:11] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:11] Description: 
[01/03/2011 22:22:11] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:14] [Error - MoveEvents Interface] 
[01/03/2011 22:22:14] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:14] Description: 
[01/03/2011 22:22:14] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:17] [Error - MoveEvents Interface] 
[01/03/2011 22:22:17] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:17] Description: 
[01/03/2011 22:22:17] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:20] [Error - MoveEvents Interface] 
[01/03/2011 22:22:20] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:20] Description: 
[01/03/2011 22:22:20] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:30] [Error - MoveEvents Interface] 
[01/03/2011 22:22:30] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:30] Description: 
[01/03/2011 22:22:30] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:31] [Error - MoveEvents Interface] 
[01/03/2011 22:22:31] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:31] Description: 
[01/03/2011 22:22:31] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:32] [Error - MoveEvents Interface] 
[01/03/2011 22:22:32] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:32] Description: 
[01/03/2011 22:22:32] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:33] [Error - MoveEvents Interface] 
[01/03/2011 22:22:33] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:33] Description: 
[01/03/2011 22:22:33] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:52] [Error - MoveEvents Interface] 
[01/03/2011 22:22:52] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:52] Description: 
[01/03/2011 22:22:52] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:52] [Error - MoveEvents Interface] 
[01/03/2011 22:22:52] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:52] Description: 
[01/03/2011 22:22:52] (luaDoPlayerSendCancel) Player not found

[01/03/2011 22:22:53] [Error - MoveEvents Interface] 
[01/03/2011 22:22:53] data/movements/scripts/surf.lua:onStepIn
[01/03/2011 22:22:53] Description: 
[01/03/2011 22:22:53] (luaDoPlayerSendCancel) Player not found

Link para o comentário
Compartilhar em outros sites

quando eu faço isso os playes podem andar livremente no mar como se estivese na terra mesmo sem o pokemon o.O

 

ajuda aee kra :D

 

 

surf.lua sem o EDIT:

 

 

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'}

 

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

 

 

 

 

surf.lua com o EDiT:

 

 

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'}

 

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},

}

 

f not isPlayer(cid) then

doTeleportThing(cid, fromPosition, false)

return true

elseif 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

elseif 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

 

 

Editado por pok302010
Link para o comentário
Compartilhar em outros sites

 

 

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'}

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) then
doTeleportThing(cid, fromPosition, false)
return true
elseif 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)
return true
else
if (not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1]))) then
doPlayerSendCancel(cid, "This pokemon cannot surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
end
elseif 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
elseif getCreatureOutfit(cid).lookType == 316 then
doSendMagicEffect(fromPosition, 136)
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

 

 

Editado por Vodkart
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...