Systema de megulhador automatico igaul pxg

raulcdj
em Scripts

raulcdj

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 18/01/17Posts: 125Gênero: Masculino

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

JG6

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 09/01/12Posts: 325Gênero: Masculino
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

raulcdj

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 18/01/17Posts: 125Gênero: Masculino
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 Liima

Scripter,Programador,WebMaster.
avatar
Diretor
Diretor

INFOS

Grupo: DiretorRegistrado: 12/05/12Posts: 818Gênero: MasculinoChar no Tibia: [ADM] Night

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

 

 

════ҳ̸Ҳ̸ҳஜ۩۞۩ஜҳ̸Ҳ̸ҳ═══╗

ALGUNS DOS MEUS TRABALHOS:

Spoiler

WODBOHS[DOWNLOAD]

Newstory dbo+nto+bleach[DOWNLOAD]

 

>> Mais infos <<

- Projetos lançados também feitos por mim {

DBO SKY

POKE SKY

WODBOWARS

Tic-tac-War

Dbo Universe(em desenvolvimento)

}

universe.thumb.png.6840320998d0fc1a4652b3db81a585c0.png

Separador.PNG

Te Ajudei? Rep + e ficamos Quits

imageproxy.png.84dce08dd18d31663a72aa1ce37b858a.png

Precisando de ajuda?

discord.png.1ecd188791d0141f74d99db371a2e0a4.pngDiscord: Yan Liima #3702

Programador Júnior de LUA, PHP e JavaScript

Juntos somos lendas, separados somos Mitos!

╚══════════════════════════ҳ̸Ҳ̸ҳஜ۩۞۩ஜҳ̸Ҳ̸ҳ═════════════════════════════╝

rorix

avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 05/01/16Posts: 207
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,

 

raulcdj

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 18/01/17Posts: 125Gênero: Masculino
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 Start

cleber.16mb.com
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 25/04/12Posts: 752Gênero: Masculino
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...

rorix

avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 05/01/16Posts: 207
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

 

raulcdj

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 18/01/17Posts: 125Gênero: Masculino
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