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




info
Grupo: Campones
Registrado: 09/06/13
Posts: 9
Reputação: 0
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 endNo .XML
e tenho esse outro error no globalevents
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