O bug não é no sistemas. Para solucionar é fácil. Vai em lib e em main functions adiciona isto:
playerSpeed = 250
info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata

O bug não é no sistemas. Para solucionar é fácil. Vai em lib e em main functions adiciona isto:
playerSpeed = 250
Em que lugar eu adiciono isso?
Não estou conseguindo coloca meu main function aqui, aparece erro cloud fairy
info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata

posta seu main tables.
main tables
info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata

lol.. No seu main tables ja tem adicionado.. você mexeu em algo no script do surf?
tenta este surf.lua:
local function doSendMagicEffecte(pos, effect) addEvent(doSendMagicEffect, 50, pos, effect)end-- 4664-4647;4608-4613;local waters = {11756, 4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} local flie = {'4820', '4821', '4822', '4823', '4824', '4825'} --alterado v1.6 tabelas agora em configuration.lua!local premium = false function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) or isInArray({5, 6}, getPlayerGroupId(cid)) then --alterado v1.9return trueendif getPlayerStorageValue(cid, 75846) >= 1 then return true end --alterado v1.9 if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TVarrow-10x10.png if isPlayer(cid) and not isPremium(cid) and premium == true then doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "Only premium members are allowed to surf.") return trueend if getCreatureOutfit(cid).lookType == 316 or getCreatureOutfit(cid).lookType == 648 then doSendMagicEffect(fromPosition, 136)end if (getPlayerStorageValue(cid, 63215) >= 1 or isFly(cid)) thenreturn trueend if isInDuel(cid) then doTeleportThing(cid, fromPosition, false) return trueend if #getCreatureSummons(cid) == 0 then doPlayerSendCancel(cid, "You need a pokemon to surf.") doTeleportThing(cid, fromPosition, false) return trueend if isMega(getCreatureSummons(cid)[1]) then doPlayerSendCancel(cid, "Pokemons megas não tem habilidade surf.") doTeleportThing(cid, fromPosition, false) return trueend local pokeName = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") local ditto = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "copyName") if ditto and ditto ~= "" then pokeName = ditto endif (not isInArray(specialabilities["surf"], pokeName)) then doPlayerSendCancel(cid, "This pokemon cannot surf.") doTeleportThing(cid, fromPosition, false) return trueend if getPlayerStorageValue(cid, 5700) == 1 then doPlayerSendCancel(cid, "You can't do that while is mount in a bikearrow-10x10.png!") doTeleportThing(cid, fromPosition, false) return trueend if getPlayerStorageValue(cid, 212124) >= 1 then --alterado v1.6 doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!") doTeleportThing(cid, fromPosition, false) return trueend if isInDuel(cid) then doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v1.6 doTeleportThing(cid, fromPosition, false) return trueend if getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v1.7 doTeleportThing(cid, fromPosition, false) return trueend --alterado v1.6doSetCreatureOutfit(cid, {lookType = surfs[pokeName].lookType + 351}, -1) setPokemonGhost(cid) doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", TALKTYPE_ORANGE_1)doChangeSpeed(cid, -(getCreatureSpeed(cid))) local playerSpeed = 250local speed = 75 + PlayerSpeed + getSpeed(getCreatureSummons(cid)[1]) * 8 * speedRatesetPlayerStorageValue(cid, 54844, speed)doChangeSpeed(cid, speed) local pct = getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", pct) doRemoveCreature(getCreatureSummons(cid)[1]) addEvent(setPlayerStorageValue, 100, cid, 63215, 1) local item = getPlayerSlotItem(cid, 8)if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) <= 0 then addEvent(sendAuraEffect, 120, cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v1.8end if useOTClient then doPlayerSendCancel(cid, '12//,hide') --alterado v1.8end return trueend localarrow-10x10.pngdireffects = {30, 49, 9, 51} function onStepOut(cid, item, position, fromPosition) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 thenarrow-10x10.png return false end local checkpos = fromPosition checkpos.stackpos = 0 if isInArray(waters, getTileInfo(checkpos).itemid) then if getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 17000) >= 1 then doSendMagicEffecte(fromPosition, direffects[getCreatureLookDir(cid) + 1]) end end if not isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then if getPlayerStorageValue(cid, 17000) >= 1 then return true end if getPlayerStorageValue(cid, 63215) <= 0 then return true end doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, 63215, -1) doGoPokemonInOrder(cid, getPlayerSlotItem(cid, 8), false) doChangeSpeed(cid, -getCreatureSpeed(cid)) doRegainSpeed(cid) end return trueend
[Error - LuaScriptInterface::loadFile] data/movements/scripts/surf.lua:115: '=' expected near '-'[27/01/2017 18:50:55] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/surf.lua)[27/01/2017 18:50:55] data/movements/scripts/surf.lua:115: '=' expected near '-'[27/01/2017 18:50:55] [Error - LuaScriptInterface::loadFile] data/movements/scripts/surf.lua:115: '=' expected near '-'[27/01/2017 18:50:55] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/surf.lua)[27/01/2017 18:50:55] data/movements/scripts/surf.lua:115: '=' expected near '-'
Vlw pela intenção Deadpool, mas o Drakopoulos ja corrigiu pra mim.
info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata

O xTibia bugou o code.. tudo bem, posso fechar e mover?
Vlw manow, pode sim, obrigado.
info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata

Caro membro, seu tópico foi movido de Otserv > Suporte Otserv para Suporte Otserv > Otserv > Pedidos e Dúvidas Resolvidos.
info
Grupo: Marquês
Registrado: 02/07/07
Posts: 1.1k
Reputação: +287
Gênero: Masculino
Boa tarde amigos, estava mexendo no DxP e me deparei com este bug no surf.
Msg de erro no console:
O estranho que na atualização V3 que eu disponibilizei no tópico do DxP não tinha este bug, e agora mexendo na V1 apareceu ele.
surf.lua
local function doSendMagicEffecte(pos, effect)
addEvent(doSendMagicEffect, 50, pos, effect)
end
-- 4664-4647;4608-4613;
local waters = {11756, 4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}
local flie = {'4820', '4821', '4822', '4823', '4824', '4825'}
--alterado v1.6 tabelas agora em configuration.lua!
local premium = false
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) or isInArray({5, 6}, getPlayerGroupId(cid)) then --alterado v1.9
return true
end
if getPlayerStorageValue(cid, 75846) >= 1 then return true end --alterado v1.9
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV
if isPlayer(cid) and not isPremium(cid) and premium == true then
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Only premium members are allowed to surf.")
return true
end
if getCreatureOutfit(cid).lookType == 316 or getCreatureOutfit(cid).lookType == 648 then
doSendMagicEffect(fromPosition, 136)
end
if (getPlayerStorageValue(cid, 63215) >= 1 or isFly(cid)) then
return true
end
if isInDuel(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
if isMega(getCreatureSummons(cid)[1]) then
doPlayerSendCancel(cid, "Pokemons megas não tem habilidade surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
local pokeName = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")
local ditto = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "copyName")
if ditto and ditto ~= "" then
pokeName = ditto
end
if (not isInArray(specialabilities["surf"], pokeName)) then
doPlayerSendCancel(cid, "This pokemon cannot surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
if getPlayerStorageValue(cid, 5700) == 1 then
doPlayerSendCancel(cid, "You can't do that while is mount in a bike
doTeleportThing(cid, fromPosition, false)
return true
end
if getPlayerStorageValue(cid, 212124) >= 1 then --alterado v1.6
doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!")
doTeleportThing(cid, fromPosition, false)
return true
end
if isInDuel(cid) then
doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v1.6
doTeleportThing(cid, fromPosition, false)
return true
end
if getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then
doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v1.7
doTeleportThing(cid, fromPosition, false)
return true
end
--alterado v1.6
doSetCreatureOutfit(cid, {lookType = surfs[pokeName].lookType + 351}, -1)
setPokemonGhost(cid)
doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", TALKTYPE_ORANGE_1)
doChangeSpeed(cid, -(getCreatureSpeed(cid)))
local speed = 75 + PlayerSpeed + getSpeed(getCreatureSummons(cid)[1]) * 8 * speedRate
setPlayerStorageValue(cid, 54844, speed)
doChangeSpeed(cid, speed)
local pct = getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", pct)
doRemoveCreature(getCreatureSummons(cid)[1])
addEvent(setPlayerStorageValue, 100, cid, 63215, 1)
local item = getPlayerSlotItem(cid,
if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) <= 0 then
addEvent(sendAuraEffect, 120, cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v1.8
end
if useOTClient then
doPlayerSendCancel(cid, '12//,hide') --alterado v1.8
end
return true
end
local
function onStepOut(cid, item, position, fromPosition)
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then
local checkpos = fromPosition
checkpos.stackpos = 0
if isInArray(waters, getTileInfo(checkpos).itemid) then
if getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 17000) >= 1 then
doSendMagicEffecte(fromPosition, direffects[getCreatureLookDir(cid) + 1])
end
end
if not isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then
if getPlayerStorageValue(cid, 17000) >= 1 then return true end
if getPlayerStorageValue(cid, 63215) <= 0 then return true end
doRemoveCondition(cid, CONDITION_OUTFIT)
setPlayerStorageValue(cid, 63215, -1)
doGoPokemonInOrder(cid, getPlayerSlotItem(cid, 8), false)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doRegainSpeed(cid)
end
return true
end
Desde ja agradeço.