Ir para conteúdo
  • 0

Systema de megulhador automatico igaul pxg


Pergunta

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

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/
Compartilhar em outros sites

8 respostass a esta questão

Posts Recomendados

  • 0
  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

Expand  

Tenta assim

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1747923
Compartilhar em outros sites

  • 0
  Em 14/02/2019 em 11:47, joaopera disse:

Tenta assim

Expand  

[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

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1747925
Compartilhar em outros sites

  • 0
  • Diretor

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

 

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1747930
Compartilhar em outros sites

  • 0
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,

 

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1748070
Compartilhar em outros sites

  • 0
  Em 17/02/2019 em 20:51, 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 '='

Expand  

 

  Em 14/02/2019 em 15: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

 

Expand  

ja fiz isso

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1748071
Compartilhar em outros sites

  • 0
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...

Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1748074
Compartilhar em outros sites

  • 0
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 por rorix
Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1748077
Compartilhar em outros sites

  • 0
  Em 17/02/2019 em 23:37, 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...

Expand  

nao deu erro de nono

  Em 18/02/2019 em 01:58, 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

 

Expand  

[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 por raulcdj
consegui arruma um erro mais o outro apareceu
Link para o comentário
https://xtibia.com/forum/topic/249127-systema-de-megulhador-automatico-igaul-pxg/#findComment-1748091
Compartilhar em outros sites

×
×
  • Criar Novo...