RA
suporte scripts

Systema de megulhador automatico igaul pxg

Por raulcdj, 14 de fev. de 2019 em Scripts

9
2k
raulcdjR
14 de fevereiro de 2019 às 07:49

pessoal esta dando esse erro no meu servidor queria ajuda para adicionar..Nao estou conseguindo resolver. 

 

Error - LuaScriptInterface::loadFile] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'
[14/02/2019 07:40:47] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/arquivo.lua)
[14/02/2019 07:40:47] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'
[14/02/2019 07:40:47] [Error - LuaScriptInterface::loadFile] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'
[14/02/2019 07:40:47] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/arquivo.lua)
[14/02/2019 07:40:47] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'

 

 

 

 

local configuration = {storage = 41651651},  
look type (male)id_outfit_female = 511 
look type (female)id_mergulhador_male = 1034, 
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,
local random = math.random(1, 150)

function onStepIn(cid)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and 
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

JG6J
14 de fevereiro de 2019 às 09:47
Citar

local configuration = {storage = 41651651},  
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034, 
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,
local random = math.random(1, 150)

function onStepIn(cid)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and 
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

Tenta assim

raulcdjR
14 de fevereiro de 2019 às 11:18
1 hora atrás, joaopera disse:

Tenta assim

[14/02/2019 11:17:30] [Error - LuaScriptInterface::loadFile] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'
[14/02/2019 11:17:30] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/arquivo.lua)
[14/02/2019 11:17:30] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'
[14/02/2019 11:17:30] [Error - LuaScriptInterface::loadFile] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'
[14/02/2019 11:17:30] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/arquivo.lua)
[14/02/2019 11:17:30] data/movements/scripts/arquivo.lua:2: '=' expected near 'ï'

 

DEU ERRO

Yan LiimaY
14 de fevereiro de 2019 às 13:04

Esse erro é problema de caractere, vai até a linha mencionada no erro e tente achar o caractere invalido e apague. Refazer a linha seria mais facil.

 

Spoiler
local configuration = {storage = 41651651}, 
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034,
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,
local random = math.random(1, 150)

function onStepIn(cid)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

 

 

rorixR
17 de fevereiro de 2019 às 17:51
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034,
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,

mude e deixe assim

id_outfit_female = 511,
id_mergulhador_male = 1034,
id_mergulhadora_female = 1035,
more_player_speed = 300,

 

raulcdjR
17 de fevereiro de 2019 às 18:31
40 minutos atrás, rorix disse:
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034,
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,

mude e deixe assim

id_outfit_female = 511,
id_mergulhador_male = 1034,
id_mergulhadora_female = 1035,
more_player_speed = 300,

deu esse erro de novo

 

[17/02/2019 18:30:38] [Error - LuaScriptInterface::loadFile] data/movements/scripts/mergulhador.lua:2: unexpected symbol near '='
[17/02/2019 18:30:38] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/mergulhador.lua)
[17/02/2019 18:30:38] data/movements/scripts/mergulhador.lua:2: unexpected symbol near '='
[17/02/2019 18:30:38] [Error - LuaScriptInterface::loadFile] data/movements/scripts/mergulhador.lua:2: unexpected symbol near '='
[17/02/2019 18:30:38] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/mergulhador.lua)
[17/02/2019 18:30:38] data/movements/scripts/mergulhador.lua:2: unexpected symbol near '='

 

Em 14/02/2019 em 13:04, Yan Liima disse:

Esse erro é problema de caractere, vai até a linha mencionada no erro e tente achar o caractere invalido e apague. Refazer a linha seria mais facil.

 

  Mostrar conteúdo oculto

local configuration = {storage = 41651651}, 
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034,
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,
local random = math.random(1, 150)

function onStepIn(cid)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

 

 

ja fiz isso

Session StartS
17 de fevereiro de 2019 às 20:37
local configuration = {storage = {41651651}}
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034,
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,
local random = math.random(1, 150)

function onStepIn(cid)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

Testa ai mano...

rorixR
17 de fevereiro de 2019 às 22:58
local configuration = {
storage = 41651651,  
id_outfit_female = 511,
id_mergulhador_male = 1034, 
id_mergulhadora_female = 1035,
more_player_speed = 300
}



function onStepIn(cid)
local random = math.random(1, 150)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and 
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

 

Editado Fevereiro 17 por rorix

raulcdjR
18 de fevereiro de 2019 às 16:43
20 horas atrás, Ultron AV disse:
local configuration = {storage = {41651651}}
look type (male)id_outfit_female = 511,
look type (female)id_mergulhador_male = 1034,
look type (male)id_mergulhadora_female = 1035,
look type (female)more_player_speed = 300,
local random = math.random(1, 150)

function onStepIn(cid)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

Testa ai mano...

nao deu erro de nono

17 horas atrás, rorix disse:
local configuration = {
storage = 41651651,  
id_outfit_female = 511,
id_mergulhador_male = 1034, 
id_mergulhadora_female = 1035,
more_player_speed = 300
}



function onStepIn(cid)
local random = math.random(1, 150)

if isRiderOrFlyOrSurf(cid) then
doChangeSpeed(cid,(getCreatureSpeed(cid)-configuration.less_speed))
end
if(isPlayer(cid)) then
if getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_mergulhador_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
else
if getPlayerSex(cid) == 0 and isPlayer(cid) then 
doSetCreatureOutfit(cid,{lookType = configuration.id_mergulhadora_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)
return true
end
if getCreatureOutfit(cid).lookType == configuration.id_mergulhador_male or getCreatureOutfit(cid).lookType == configuration.id_mergulhadora_female then
doChangeSpeed(cid, getCreatureSpeed(cid)+configuration.more_player_speed)
else
doChangeSpeed(cid,(getCreatureSpeed(cid))-configuration.less_speed)
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type poke type 2 = pokes[getCreatureName(cid)].type 2 
if poke type 1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" 
then 
-- coloque aqui os tipos de pokémon que ganham velocidade na agua
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.more_pokemon_speed)
else
doChangeSpeed(cid, -getCreatureSpeed(cid)+configuration.less_speed)
end
end
return true
end
function onStepOut(cid)if(isPlayer(cid)) thenif getPlayerSex(cid) == 1 
and 
isPlayer(cid) then
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_male, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
else
if getPlayerSex(cid) == 0 
and 
isPlayer(cid) then 
doSetCreatureOutfit(cid, {lookType = configuration.id_outfit_female, lookHead = random, lookBody = random, lookLegs = random, lookFeet = random}, -1)doChangeSpeed(cid,(-getCreatureSpeed(cid))+configuration.speed_normal)
return true
end
end
if isWild(cid)or isSummon(cid) thenpoketype1 = pokes[getCreatureName(cid)].type       poketype2 = pokes[getCreatureName(cid)].type 2 velocidade = pokes[getCreatureName(cid)].agilityif poketype1 == "water" or poke type 2 == "water" or poke type 1 == "ice" or poke type 2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na aguado
ChangeSpeed(cid, velocidade-configuration.more_pokemon_speed)
else
doChangeSpeed(cid, velocidade-configuration.less_speed)
end
end
return true
end

 

[18/02/2019 16:53:16] [Error - LuaScriptInterface::loadFile] data/movements/scripts/arquivo.lua:34: '=' expected near 'type'
[18/02/2019 16:53:16] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/arquivo.lua)
[18/02/2019 16:53:16] data/movements/scripts/arquivo.lua:34: '=' expected near 'type'
[18/02/2019 16:53:16] [Error - LuaScriptInterface::loadFile] data/movements/scripts/arquivo.lua:34: '=' expected near 'type'
[18/02/2019 16:53:16] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/arquivo.lua)
[18/02/2019 16:53:16] data/movements/scripts/arquivo.lua:34: '=' expected near 'type'

teria como fazer uma gabiara com o sistema de bike system eu pegaria e colocaria em luga especifico como esse só que só podia clica no item quando estivesse em determinado local por exemplo embaixo da água coloca para bloquear os piso ou colocaria em um piso especifico.

liguem muito pois não sei como fazer correto.mais oque vale e a iniciativa.

id do piso "5410,5411" em baixo da agua

    getTileItem (uid.item) == then
    doRemoveCondition(cid, CONDITION_OUTFIT) e o bloqueia caso não esteja em determinado piso ele naoo posso pega a outificts...

 

 

 

 

 

local strgs = {17000, 17001} -- Coloque a Storage de Controle dos Sistemas Que Deseja Bloquear.
local config = {
    velocidadeDaSuaBike = 350, -- A volocidade da bike (1-9)
    outfitMale = 1034, -- Outfit male
    outfitFemale = 1035, -- Outfit female
    storageValue = 32001, -- Storage Para a bike
    item.uid = (5410,5411)
    
}
 
function onUse(cid, item, itemEx, fromPosition, toPosition)
    getTileItem (uid.item) == then
    doRemoveCondition(cid, CONDITION_OUTFIT)
    
    ctrl = 0
    for x = 1, #strgs do
        if getPlayerStorageValue(cid, strgs[x]) > 0 then
            ctrl = ctrl + 1
        end
    end
    if ctrl < 1 then
        if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then
            return false
        end
        if getPlayerStorageValue(cid, config.storageValue) <= 0 then
            local a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
            local b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}
            setPlayerStorageValue(cid, 32001, ""..getPlayerStamina(cid).."")
            doChangeSpeed(cid, -getCreatureSpeed(cid))
            doChangeSpeed(cid, config.velocidadeDaSuaBike)
            setPlayerStorageValue(cid, config.storageValue, 1)        
            if getPlayerSex(cid) == 0 then
                doSetCreatureOutfit(cid, b, -1)
            else
                doSetCreatureOutfit(cid, a, -1)
            end
        else
            setPlayerStorageValue(cid, config.storageValue, 0)
            doRemoveCondition(cid, CONDITION_OUTFIT)
            doRegainSpeed(cid)
        end
    else
        doPlayerSendCancel(cid, "Você não pode usar bike enquanto está no Fly/Hide.")
    end
return true
end

Editado Fevereiro 18 por raulcdj

consegui arruma um erro mais o outro apareceu