Ir para conteúdo

Featured Replies

  • Respostas 7
  • Visualizações 918
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Este tópico foi movido para a área correta. Esta é uma mensagem automática!
Pedimos que leia as regras do fórum!

Spoiler

This topic has been moved to the correct area. This is an automated message!
Please read the forum rules.

 

@matheusnava provável que seja algo logar, ao logar ele ganha todas as bless, veja seu creaturescript nos callbacks onLogin, algum está entregando as bless!

                                                              ezgif-1-98aab239f3.gif.1a897c9c3225228909e7b356a5cfb8e4.gif

Postado
  • Autor
2 horas atrás, DboExplorer disse:

Poste seu creaturescripts.xml

Spoiler

 

 

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
    <!-- BattleField Event -->
    <event type="login" name="battleflogin" script="others/battlefield.lua"/>
    <event type="preparedeath" name="battledeath" script="others/battlefield.lua"/>

    <!-- Zombie Event -->    
    <event type="preparedeath" name="ZombiePlayerDeath" script="others/zombieEventDeath.lua" />
    <event type="death" name="ZombieOnDeath" script="others/zombieEventDeath.lua" />

    <!-- Rookgaard Cockroach -->
    <event type="kill" name="TutorialCockroach" script="rookgaard/killCockroach.lua" />
    <event type="advance" name="AdvanceRookgaard" script="rookgaard/advance.lua" />

    <!-- Elemental Spheres Quest -->
    <event type="kill" name="ElementalSpheresOverlords" script="quests/elemental spheres/OverlordsKill.lua" />

    <!-- Bigfoot Burden Quest -->
    <event type="kill" name="BigfootBurdenVersperoth" script="quests/bigfoot burden/VersperothKill.lua" />
    <event type="kill" name="BigfootBurdenWarzone" script="quests/bigfoot burden/WarzoneKill.lua" />
    <event type="kill" name="BigfootBurdenWeeper" script="quests/bigfoot burden/WeeperKill.lua" />
    <event type="kill" name="BigfootBurdenWiggler" script="quests/bigfoot burden/WigglerKill.lua" />

    <!-- Svargrond Arena: Killing a boss -->
    <event type="kill" name="SvargrondArenaKill" script="quests/svargrond arena/arena_kill.lua" />

    <!-- The New Frontier Quest -->
    <event type="kill" name="NewFrontierShardOfCorruption" script="quests/the new frontier/ShardOfCorruption.lua" />
    <event type="kill" name="NewFrontierTirecz" script="quests/the new frontier/TireczKill.lua" />

    <!-- Lightbearer Quest -->
    <event type="kill" name="Gloombringer" script="quests/Lightbearer Quest/GloombringerKill1.lua" />

    <!-- In Service Of Yalahar Quest -->
    <event type="kill" name="ServiceOfYalaharAzerus" script="quests/in service of yalahar/AzerusKill.lua" />
    <event type="kill" name="ServiceOfYalaharDiseasedTrio" script="quests/in service of yalahar/DiseasedTrioKill.lua" />
    <event type="kill" name="ServiceOfYalaharQuaraLeaders" script="quests/in service of yalahar/QuaraLeadersKill.lua" />

    <!-- Inquisition Quest -->
    <event type="kill" name="InquisitionBosses" script="quests/inquisition/inquisitionQuestBosses.lua" />
    <event type="kill" name="InquisitionUngreez" script="quests/inquisition/inquisitionQuestUngreez.lua" />

    <!-- Killing In The Name Of Quest -->
    <event type="kill" name="KillingInTheNameOfKills" script="quests/killing in the name of/kills.lua" />

    <!-- The Masters Voice Quest -->
    <event type="kill" name="MastersVoiceServants" script="quests/their master's voice/ServantsKill.lua" />

    <!-- Thieves Guild Quest -->
    <event type="kill" name="ThievesGuildNomad" script="others/nomad.lua" />

    <!-- Secret Service Quest -->
    <event type="kill" name="SecretServiceBlackKnight" script="others/blackKnight.lua" />

    <!-- Wrath of the Emperor Quest -->
    <event type="kill" name="WotELizardMagistratus" script="quests/wrath of the emperor/lizardmagistratus.lua" />
    <event type="kill" name="WotELizardNoble" script="quests/wrath of the emperor/lizardnoble.lua" />
    <event type="kill" name="WotEKeeper" script="quests/wrath of the emperor/keeper.lua" />
    <event type="kill" name="WotEBosses" script="quests/wrath of the emperor/bosses.lua" />
    <event type="kill" name="WotEZalamon" script="quests/wrath of the emperor/zalamon.lua" />

    <!-- Pythius The Rotten (Firewalker Boots Quest) -->
    <event type="kill" name="PythiusTheRotten" script="others/PythiusTheRotten.lua" />
    
    <!-- Ascendent Ferumbras Quest -->
    <event type="kill" name="AscedentFerumbrasQuest" script="quests/Ferumbras.lua" />
    
    <!-- <event type="kill" name="AncedentTarbaz" script="others/Tarbaz.lua" />
    <event type="kill" name="AncedentShulgrax" script="others/Shulgrax.lua" />
    <event type="kill" name="AncedentPlagirath" script="others/Plagirath.lua" />
    <event type="kill" name="AncedentZamulosh" script="others/Zamulosh.lua" />
    <event type="kill" name="AncedentMazoran" script="others/Mazoran.lua" />
    <event type="kill" name="AncedentRazzagorn" script="others/Razzagorn.lua" />
    <event type="kill" name="AncedentRagiaz" script="others/Ragiaz.lua" />
    <event type="kill" name="AncedentFerumbras" script="others/Ferumbras.lua" /> -->

    <!-- Bosses -->
    <event type="death" name="wyda" script="bosses/wyda.lua"/>
       <event type="death" name="white deer" script="bosses/white deer.lua"/>
       <event type="death" name="white deer2" script="bosses/white deer2.lua"/>
    <event type="death" name="northern pike" script="bosses/northern pike.lua"/>
    <event type="think" name="Gaz'haragoth heal" script="bosses/gaz'haragoth heal.lua"/>
    <event type="think" name="omrafir explode" script="bosses/omrafir explode.lua"/>
       <event type="think" name="shlorg tp" script="bosses/shlorg tp.lua"/>
       <event type="think" name="welter egg" script="bosses/welter egg.lua"/>
       <event type="think" name="the pale count tp" script="bosses/the pale count tp.lua"/>
    <event type="think" name="zavarash hide" script="bosses/zavarash hide.lua"/>
    <event type="preparedeath" name="monster heal" script="bosses/monster heal.lua"/>
    <event type="preparedeath" name="monster heal2" script="bosses/monster heal2.lua"/>

    <!-- Others -->
        <event script="others/recompensailha.lua" name="Recompense" type="advance"/>
        <event script="others/recompense.lua" name="Recompensa" type="advance"/>
    <event type="login" name="PlayerLogin" script="others/login.lua" />
   <event type="login" name="ShopMountAddon" script="others/addonmount.lua"/>
        <event value="task_count.lua" event="script" name="task_count" type="kill"/>
    <event type="login" name="FirstItems" script="others/firstitems.lua" />
    <event type="login" name="RegenerateStamina" script="others/regeneratestamina.lua" />
    <event type="login" name="OfflineTraining" script="others/offlinetraining.lua" />
    <event type="death" name="BossDeath" script="others/boss.lua" />
    <event type="healthchange" name="BossParticipation" script="others/boss.lua" />
    <event type="think" name="BossThink" script="others/boss.lua" />
    <event type="advance" name="onadvance_reward" script="others/onadvance_reward.lua"/>
    <event type="login" name="onadv_register" script="others/onadvance_reward.lua"/>
    <event type="logout" name="PlayerLogout" script="others/logout.lua" />
    <event type="death" name="PlayerDeath" script="others/playerdeath.lua" />
    <event type="death" name="DropLoot" script="others/droploot.lua" />
    <event type="advance" name="AdvanceSave" script="others/advance_save.lua" />
    <event type="death" name="WhiteDeerDeath" script="others/whitedeer.lua" />
    <event type="death" name="WhiteDeerScoutsDeath" script="others/whitedeer_scouts.lua" />
    <event type="advance" name="UpAbsolute" event="script" value="uplevelabsolute.lua"/>
</creaturescripts>

2 horas atrás, KotZletY disse:

Este tópico foi movido para a área correta. Esta é uma mensagem automática!
Pedimos que leia as regras do fórum!

  Mostrar conteúdo oculto

This topic has been moved to the correct area. This is an automated message!
Please read the forum rules.

 

@matheusnava provável que seja algo logar, ao logar ele ganha todas as bless, veja seu creaturescript nos callbacks onLogin, algum está entregando as bless!

Sim estava aparecendo uma mensagem BLESSED! quando logava no templo, mas não consegui remover ainda.

segue o loguin.lua 

 

-- ordered as in creaturescripts.xml
local events = {
    'TutorialCockroach',
    'ElementalSpheresOverlords',
    'BigfootBurdenVersperoth',
    'BigfootBurdenWarzone',
    'BigfootBurdenWeeper',
    'BigfootBurdenWiggler',
    'SvargrondArenaKill',
    'NewFrontierShardOfCorruption',
    'NewFrontierTirecz',
    'ServiceOfYalaharDiseasedTrio',
    'ServiceOfYalaharAzerus',
    'ServiceOfYalaharQuaraLeaders',
    'InquisitionBosses',
    'InquisitionUngreez',
    'KillingInTheNameOfKills',
        'KillingInTheNameOf',
    'MastersVoiceServants',
    'SecretServiceBlackKnight',
    'ThievesGuildNomad',
    'WotELizardMagistratus',
    'WotELizardNoble',
    'WotEKeeper',
    'WotEBosses',
    'WotEZalamon',
    'PlayerDeath',
    'AdvanceSave',
    'AdvanceRookgaard',
    'PythiusTheRotten',
    'AncedentTarbaz',
    'AncedentShulgrax',
    'AncedentPlagirath',
    'AncedentZamulosh',
    'AncedentMazoran',
    'AncedentRazzagorn',
    'AncedentRagiaz',
    'AncedentFerumbras',
    'Gloombringer',
    'AscedentFerumbrasQuest',
    'DropLoot'
}

local function onMovementRemoveProtection(cid, oldPosition, time)
    local player = Player(cid)
    if not player then
        return true
    end

    local playerPosition = player:getPosition()
    if (playerPosition.x ~= oldPosition.x or playerPosition.y ~= oldPosition.y or playerPosition.z ~= oldPosition.z) or player:getTarget() then
        player:setStorageValue(Storage.combatProtectionStorage, 0)
        return true
    end

    addEvent(onMovementRemoveProtection, 1000, cid, oldPosition, time - 1)
end

function onLogin(player)
    local loginStr = 'Welcome to ' .. configManager.getString(configKeys.SERVER_NAME) .. '!'
    if player:getLastLoginSaved() <= 0 then
        loginStr = loginStr .. ' Please choose your outfit.'
        player:sendTutorial(1)
    else
        if loginStr ~= '' then
            player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
        end

        loginStr = string.format('Your last visit was on %s.', os.date('%a %b %d %X %Y', player:getLastLoginSaved()))
    end
    player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)

    local playerId = player:getId()

    -- Stamina
    nextUseStaminaTime[playerId] = 0

    -- Promotion
    local vocation = player:getVocation()
    local promotion = vocation:getPromotion()
    if player:isPremium() then
        local value = player:getStorageValue(Storage.Promotion)
        if not promotion and value ~= 1 then
            player:setStorageValue(Storage.Promotion, 1)
        elseif value == 1 then
            player:setVocation(promotion)
        end
    elseif not promotion then
        player:setVocation(vocation:getDemotion())
    end

    -- Events
    for i = 1, #events do
        player:registerEvent(events)
        player:registerEvent("RewardLoot")
        
    end

    if player:getStorageValue(Storage.combatProtectionStorage) <= os.time() then
        player:setStorageValue(Storage.combatProtectionStorage, os.time() + 10)
        onMovementRemoveProtection(playerId, player:getPosition(), 10)
    end
    return true
end
 

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

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.6k

Informação Importante

Confirmação de Termo