Ir para conteúdo

Featured Replies

Postado

alguém deixa esse script para free account?

 

local statue = {
    [9306] = SKILL_SWORD,
    [8836] = SKILL_AXE,
    [8626] = SKILL_CLUB,
    [3739] = SKILL_DISTANCE,
    [8834] = SKILL__MAGLEVEL
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isPlayerPzLocked(cid) then
        return false
    end

    if item.actionid == 1000 and getPlayerPremiumDays(cid) > 0 then
        doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
        doRemoveCreature(cid)
    else
        doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
    end

    return true
end
 

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

Top Posters In This Topic

Most Popular Posts

  • @Emanueldk   Uso TFS 0.4 8.6   qual Quer vocação pode usa estatuas    Em Data\lib 103-offline-training.lua   -- config, in percent of normal training with 2

Posted Images

Postado

@Emanueldk 

local statue = {
    [9306] = SKILL_SWORD,
    [8836] = SKILL_AXE,
    [8626] = SKILL_CLUB,
    [3739] = SKILL_DISTANCE,
    [8834] = SKILL__MAGLEVEL
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isPlayerPzLocked(cid) then
        return false
    end
 
    doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
    doRemoveCreature(cid)
 
    return true
end

 

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

Postado
  • Autor
4 minutos atrás, KotZletY disse:

@Emanueldk 


local statue = {
    [9306] = SKILL_SWORD,
    [8836] = SKILL_AXE,
    [8626] = SKILL_CLUB,
    [3739] = SKILL_DISTANCE,
    [8834] = SKILL__MAGLEVEL
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isPlayerPzLocked(cid) then
        return false
    end

    if item.actionid == 1000 then
        doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
        doRemoveCreature(cid)
    end

    return true
end

 

 

certo, deixa eu te perguntar uma coisa em Actions.Xml está registrado assim <action itemid="8836;9306;8626;3739;8834" event="script" value="other/offlinetraining.lua"/>

esses id, são os item que vai estar no mapa para a pessoa dar use né? e no script está esse que você me mandou, o que eu tenho que colocar em ActiondId ou UniqueId?

por que o script não esta funcionando :(

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

Informação Importante

Confirmação de Termo