Ir para conteúdo

ajuda com esse error


jhonatan11

Posts Recomendados

30mty6d.jpg

Scripts

function onStepIn(cid, item, position, fromPosition)
local underwater = {1006}
local checkpos = fromPosition
      checkpos.stackpos = 0
if isInArray(underwater, getTileInfo(checkpos).itemid) then
if not isPlayer(cid) then
return true
end
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
if getPlayerStorageValue(cid, 15) >= 1 then
setPlayerStorageValue(cid,18,1)
if getPlayerSex(cid) == 0 then
doSetCreatureOutfit(cid, {lookType = 1034, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1)
elseif getPlayerSex(cid) == 1 then
doSetCreatureOutfit(cid, {lookType = 1035, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1)
end
end
if getPlayerStorageValue(cid, 15) < 1 then
local speed = getCreatureSpeed(cid)
doChangeSpeed(cid, -speed)
doChangeSpeed(cid, 90)
elseif getPlayerStorageValue(cid, 15) > 1 then
local speed = getCreatureSpeed(cid)
doChangeSpeed(cid, -speed)
doChangeSpeed(cid, 300)
end
end
end

function onStepOut(cid, item, position, fromPosition)
local underwater = {1006}
local checkpos = fromPosition
      checkpos.stackpos = 0
if isInArray(underwater, getTileInfo(checkpos).itemid) then
if not isPlayer(cid) then
return false
end
if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end
doRegainSpeed(cid)
if getPlayerStorageValue(cid, 18) >= 1 then
setPlayerStorageValue(cid,18,0)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
end
end

No .XML

<movevent type="StepIn" itemid="1006" event="script" value="lentitud.lua"/>
<movevent type="StepOut" itemid="1006" event="script" value="lentitud.lua">

e tenho esse outro error no globalevents

[26/06/2013 21:02:34] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/broadcast.lua:1: unexpected symbol near 'ï'
[26/06/2013 21:02:34] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/broadcast.lua)
[26/06/2013 21:02:34] data/globalevents/scripts/broadcast.lua:1: unexpected symbol near'i'

Scripts

function onThink(interval, lastExecution)
  -- Configurações
    local cor = 12 -- Defina a cor da mensagem (22 = branco)
    local mensagens = 
{
"Grupo del ot es: https://www.facebook.com/groups/204278166393372/",


}   
  -- Fim de Configurações

  doBroadcastMessage(mensagens[math.random(1,table.maxn(mensagens))])
return TRUE
end

@bumb


@bumb

Link para o comentário
Compartilhar em outros sites

Globalevents !


function onThink(interval, lastExecution)
-- Configurações
local cor = 12 -- Defina a cor da mensagem (22 = branco)
local mensagens = {"Grupo del ot es: https://www.facebook.com/groups/204278166393372/"} -- Defina as mensagens de propaganda
-- Fim de Configurações

doBroadcastMessage(mensagens[math.random(1,table.maxn(mensagens))], cor)
return TRUE
end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...