Ir para conteúdo
Banner com Efeitos

Featured Replies

  • Respostas 12
  • Visualizações 760
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • local newColor = {lookBody = xxx, lookHead = xxx, lookLegs = xxx, lookFeet = xxx}   --Configure aqui a cor da roupa dos membros da guild. function onUse(cid)     if getPlayerGuildId(cid) > 0 then  

Postado
local newColor = {lookBody = xxx, lookHead = xxx, lookLegs = xxx, lookFeet = xxx}   --Configure aqui a cor da roupa dos membros da guild.
function onUse(cid)
    if getPlayerGuildId(cid) > 0 then
        if getPlayerGuildRank(cid) == "leader" then
            for _, pid in pairs(getPlayersOnline()) do
                if getPlayerGuildId(pid) == getPlayerGuildId(cid) and pid ~= cid then
                    newColor.lookType = getCreatureOutfit(pid).lookType
                    doPlayerSendTextMessage(pid, 27, "Your guild leader ("..getCreatureName(cid)..") pulled you.")
                    doTeleportThing(pid, getClosestFreeTile(cid, getThingPos(cid)))
                    doSetCreatureOutfit(pid, newColor, -1)
                end
            end
        else
            doPlayerSendCancel(cid, "You aren't the guild leader.")
        end
    else
        doPlayerSendCancel(cid, "You don't have a guild.")
    end
    return true
end

Editado por zipter98 (veja o histórico de edições)

não respondo pms solicitando suporte em programação/scripting

Postado
  • Autor
local newColor = {lookBody = xxx, lookHead = xxx, lookLegs = xxx, lookFeet = xxx}   --Configure aqui a cor da roupa dos membros da guild.
function onUse(cid)
    if getPlayerGuildId(cid) > 0 then
        if getPlayerGuildRank(cid) == "leader" then
            for _, pid in pairs(getPlayersOnline()) do
                if getPlayerGuildId(pid) == getPlayerGuildId(cid) and pid ~= cid then
                    newColor.lookType = getCreatureOutfit(pid).lookType
                    doPlayerSendTextMessage(pid, 27, "Your guild leader ("..getCreatureName(cid)..") pulled you.")
                    doTeleportThing(pid, getClosestFreeTile(cid, getThingPos(cid)))
                    doSetCreatureOutfit(pid, newColor, -1)
                end
            end
        else
            doPlayerSendCancel(cid, "You aren't the guild leader.")
        end
    else
        doPlayerSendCancel(cid, "You don't have a guild.")
    end
    return true
end

Pergunta,

 

 

A onde eu configuro qual local a guild vai ser teleportada?

 

Tem como Só teleportar guild que estão em guerra? "Cast System"

bump

Postado

Desculpe, você não havia sido muito específico. 

Não conheço este sistema que você mencionou. Poderia enviar os códigos dele? Ou, se houver algum tópico contendo-os, será ainda melhor.

não respondo pms solicitando suporte em programação/scripting

Postado
  • Autor

Desculpe, você não havia sido muito específico. 

Não conheço este sistema que você mencionou. Poderia enviar os códigos dele? Ou, se houver algum tópico contendo-os, será ainda melhor.

Se for mto difícil n precisa, só corrigi o primeiro pra eu colher o lugar a onde eles vão se teletransportar

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.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo