Ir para conteúdo

[Creaturescripts] Experiencia para Guild (por nº de Jogadores Online)

Featured Replies

  • Respostas 37
  • Visualizações 4.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Cara você é lindooo!! >.< Parabéns ficou muito bom!

  • Você deve ter copiado errado/alterado na hora de copiar, apenas recopie o arquivo "logout". E assim que chegar em casa postarei uma versão atualizada desta script. Pois notei que ela tem um erro. Abra

  • Script ta com um erro, troque o exp_guild_out.lua por

Postado

perguntei pois veja meu login.lua

Spoiler

-- ordered as in creaturescripts.xml
local events = {
    'pythiusDead',
    'bossesGrayIsland',
    'ElementalSpheres',
    'ElementalSpheresKill',
    'ElementalSpheresLogin',
    'WarzoneThree',
    'WarzoneTwo',
    'bossesWarzone',
    'SvargrondArenaKill',
    'PharaoKillPortal',
    'inServiceOfYalaharQuestsDiseased',
    'inServiceOfYalaharQuestsMorik',
    'inServiceOfYalaharQuestsQuara',
    'inquisitionQuestBosses',
    'inquisitionQuestUngreez',
    'killingInTheNameOfQuestKills',
    'TaskCustom',
    'Yielothax',
    'Energized',
    'Raging',
    'MastersVoiceServants',
    'wrathBoss',
    'wrathZalamon',
    'PlayerDeath',
    'ThievesGuildNomad',
    'AdvanceSave',
    'SpikeDrillworm',
    'SecretServiceBlackKnight'
}

function onLogin(cid)
    local player = Player(cid)
    local freeBlessMaxLevel = 150
    
    
    if getPlayerStorageValue(cid, 33499) == -1 then
        doCreatureSay(cid, 'Voce acabou de receber um SET completo, abra sua yellow bag.', TALKTYPE_ORANGE_1)
        doPlayerAddItem(cid, 1992, 1)
        doPlayerAddItem(cid, 2398, 1)
        doPlayerAddItem(cid, 2643, 1)
        doPlayerAddItem(cid, 2467, 1)
        doPlayerAddItem(cid, 2649, 1)
        doPlayerAddItem(cid, 2461, 1)
        doPlayerAddItem(cid, 2526, 1)
        setPlayerStorageValue(cid, 33499, 1)
    end
    
    if(getPlayerLevel(cid) <= freeBlessMaxLevel and not getPlayerBlessing(cid,1)) then
        for b=1, 5 do
            doPlayerAddBlessing(cid, b)
        end
        doCreatureSay(cid, 'You got free bless, because your level lower than 80', TALKTYPE_ORANGE_1)
        elseif(getPlayerBlessing(cid,1)) then
        doCreatureSay(cid, 'You are bleesed!', TALKTYPE_ORANGE_1)
        else
        doCreatureSay(cid, 'You are not bleesed. type !bless', TALKTYPE_ORANGE_1)
    end

    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()))
        db.query("UPDATE `players` SET `cast` = 0 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
    end
    player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)

    for i = 1, #events do
        player:registerEvent(events)
    end
    return true
end
 

Nao parece bater as tags com o codigo q ele epde pra inserir aqui

 

veja meu creaturescripts.xml

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>

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

    <!-- Spike Task: Drillworm -->
    <event type="kill" name="SpikeDrillworm" script="spike task/drillworm.lua"/>

    <!-- Thieves Guild Quest -->
    <event type="kill" name="ThievesGuildNomad" script="others/nomad.lua"/>
    
    <!-- Pythius The Rotten -->
    <event type="kill" name="pythiusDead" script="pythius the rotten/pythiusDead.lua" />

    <!-- Gray Island -->
    <event type="kill" name="bossesGrayIsland" script="gray island/bossesgrayisland.lua"/> 

    <!-- The Elemental Spheres -->
    <event type="death" name="ElementalSpheres" script="elemental spheres quest/the_elemental_spheres.lua"/>
    <event type="kill" name="ElementalSpheresKill" script="elemental spheres quest/the_elemental_spheres.lua"/>
    <event type="login" name="ElementalSpheresLogin" script="elemental spheres quest/the_elemental_spheres.lua"/>
    
    <!-- Gnomebase -->
    <event type="kill" name="WarzoneTwo" script="gnomebase/warzone2.lua"/>
    <event type="kill" name="WarzoneThree" script="gnomebase/warzone3.lua"/>
    <event type="kill" name="bossesWarzone" script="gnomebase/bossesWarzone.lua"/> 

    <!-- Svargrond Arena: Killing a boss -->
    <event type="kill" name="SvargrondArenaKill" script="svargrond arena quest/arena_kill.lua"/>
    
    <!-- Pharaos: Portal to reward room -->
    <event type="kill" name="PharaoKillPortal" script="others/pharaoPortal.lua"/>
    
    <!-- In Service Of Yalahar Quest -->
    <event type="kill" name="inServiceOfYalaharQuestsDiseased" script="in service of yalahar quest/inServiceOfYalaharQuestsDiseased.lua"/>
    <event type="kill" name="inServiceOfYalaharQuestsMorik" script="in service of yalahar quest/inServiceOfYalaharQuestsMorik.lua"/>
    <event type="kill" name="inServiceOfYalaharQuestsQuara" script="in service of yalahar quest/inServiceOfYalaharQuestsQuara.lua"/>
    
    <!-- Inquisition Quest -->
    <event type="kill" name="inquisitionQuestBosses" script="inquisition quest/inquisitionQuestBosses.lua"/>
    <event type="kill" name="inquisitionQuestUngreez" script="inquisition quest/inquisitionQuestUngreez.lua"/>
    
    <!-- Killing In The Name Of Quest -->
    <event type="kill" name="killingInTheNameOfQuestKills" script="killing in the name of quest/killingInTheNameOfQuestKills.lua"/>
    <event type="kill" name="TaskCustom" script="killing in the name of quest/taskcustom.lua"/>

    <!-- Raging Mage Tower -->
    <event type="kill" name="Yielothax" script="raging mage tower/yielothax.lua"/>
    <event type="kill" name="Energized" script="raging mage tower/energized.lua"/>
    <event type="kill" name="Raging" script="raging mage tower/raging.lua"/>
    
    <!-- The Masters Voice Quest -->
    <event type="kill" name="MastersVoiceServants" script="their master's voice quest/ServantsKill.lua"/>

    <!-- Wrath of Emperor -->
    <event type="kill" name="wrathBoss" script="wrath of the emperor quest/wrathOfTheEmperorQuestBoss.lua"/>
    <event type="kill" name="wrathZalamon" script="wrath of the emperor quest/wrathOfTheEmperorQuestZalamon.lua"/>

    <!-- Others -->
    <event type="logout" name="Cast" script="others/cast.lua"/>
    <event type="login" name="PlayerLogin" script="others/login.lua"/>
    <event type="death" name="PlayerDeath" script="others/playerdeath.lua"/>
    <event type="advance" name="AdvanceSave" script="others/advance_save.lua"/>
    <event type="advance" name="AdvanceRook" script="others/advance_rook.lua"/>
    <event type="advance" name="Recompense" script="others/recompense.lua"/>
    <event type="login" name="AddonsMounts" script="others/addons-montarias.lua"/>
    
</creaturescripts>
 

a nomenclatura nao bate no caso onde o codfigo dele ta value o meu ta scripts..

Editado por luckhard (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.7k

Informação Importante

Confirmação de Termo