Ir para conteúdo

Featured Replies

Postado

Gostaria Que Alguém Me Ajudasse a Instalar Esses Dois Scripts No Meu OTServer Eu Sei As Funções De Cada Um + Não Consigo Instalar Eles ! Rep+

1° Script: 
 A Função Dele é Que Quando o Player Tiver a Storage "13340" o Player Fica Piscando o Outfit.
 

local events = {}

 
 
 
function newColor(n)
 
 
 
local n = tonumber(n) or 0
 
local n = n - 19
 
 
 
return tonumber(n) or 0
 
 
 
end
 
 
 
 
 
-- comentario: se a cor for preta o addon vai para branco sendo que o certo é diminuir 19..
 
 
 
function changeOutfit(cid)
 
 
 
 
local sec = 0.5
if (isPlayer(cid) == FALSE) then
   return false
end
 
 
 
 
local temp = getCreatureOutfit(cid)
 
 
 
if type(temp) == "number" then
 
return true
 
end
 
 
 
local outfit = {
 
lookType=temp.lookType,
 
lookHead=newColor(temp.lookHead),
 
lookBody=newColor(temp.lookBody),
 
lookLegs=newColor(temp.lookLegs),
 
lookFeet=newColor(temp.lookFeet),
 
lookAddons = getCreatureOutfit(cid).lookAddons
 
}
 
doSetCreatureOutfit(cid, outfit, sec)
 
local event = addEvent(changeOutfit, 3.0*sec*450, cid)
 
events[cid] = event
 
 
 
return true
 
end
 
 
 
 
function onLogin(cid)
 
 
 
local storage = getGlobalStorageValue(13340)
if storage == getPlayerGuildId(cid) then
 
local event = addEvent(changeOutfit, 0, cid)
 
events[cid] = event
 
end
 
 
 
return TRUE
 
end
 
 
 
function onLogout(cid)
 
 
 
if events[cid] then
 
stopEvent(events[cid])
 
end
 
 
 
return TRUE
 
end

2° Script:  A Função Dele é Ficar Girando Shurikens Em Volta Do Player Após Dar o Ultimo Hit Em "x" Monster !
 

function loopEffect(uid, effect, tempo)
local pos = getPlayerPosition(uid)
        local effectPositions = {
        [1] = {= pos.+ 1, y = pos.y, z = pos.z, stackpos = 0},
        [2] = {= pos.+ 1, y = pos.- 1, z = pos.z, stackpos = 0}
        }
        doSendDistanceShoot(effectPositions[math.random(#effectPositions)], effectPositions[math.random(#effectPositions)], effect)
        addEvent(function()
         if (isPlayer(cid) == FALSE) then
             loopEffect(uid, effect, tempo)
         end
        end, 1000 * tempo)
return true
end

  • 6 months later...

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo