Ir para conteúdo
  • Cadastre-se
  • 0

l2jfrozen como adaptar um mod


brunodarkq

Pergunta

3 respostass a esta questão

Posts recomendados

  • 0

Se alguém quiser me chamar privado para ajudar agradeço quero aprender adaptar esses mods acis etc,

alguém me ajuda ai também adicionei um java mod do aio item (2Clicks) quando uso o item

o char não fica com a cor do nome e o sistema de aio ja vem na frozen 1.5 so adicionei o aio item

e quando do //setaio do adm para o player funciona o name color normal

Citar

# -----------------------------------------
#  Aio System                             -
# -----------------------------------------
# By default AIO players can not bypass to Village Master, Class Master or Trainer (NPC to learn skills)
# Enable / Disable Aion System
EnableAioSystem = True
# Enable / Disable Name Color
AllowAioNameColor = True
AioNameColor = 88AA88
# Enable / Disable Title Color
AllowAioTitleColor = True
AioTitleColor = 88AA88
# List of Aio Skills
# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln
AioSkills = 1085,3;1304,3;1087,3;1354,1;1062,2;1005,3;1243,6;1045,6;1048,6;\
1311,6;168,3;213,8;1007,3;1309,3;1552,3;1006,3;1229,15;1308,3;1253,3;1284,3;\
1009,3;1310,4;1363,1;1362,1;1397,3;1292,6;1078,6;307,1;276,1;309,1;274,1;275,1;\
272,1;277,1;273,1;311,1;366,1;365,1;310,1;271,1;1242,3;1257,3;1353,3;1391,3;\
1352,1;229,7;228,3;1077,3;1218,33;1059,3;1219,33;1217,33;1388,3;1389,3;1240,3;\
1086,2;1032,3;1073,2;1036,2;1035,4;1068,3;1003,3;1282,2;1356,1;1355,1;1357,33;\
1044,3;1182,3;1191,3;1033,3;1189,3;1259,4;1306,6;234,23;1040,3;364,1;264,1;306,1;\
269,1;270,1;265,1;363,1;349,1;308,1;305,1;304,1;267,1;266,1;268,1;1390,3;1303,2;\
1204,2;1268,4;1413,1;4699,8;4700,8;4703,8
# Aio Buffers can use GK?
AllowAioUseGk = False
# Allow AIO in events?
AllowAioInEvents = False

+# ID do item que voce irar colocar para o player virar AIO! <<<< ADD ESSE MOD APENAS O RESTO JA VEIO ORIGINAL
AioItem = 19996  <<<< ADD ESSE MOD APENAS O RESTO JA VEIO ORIGINAL

+# Quantidades de dias que o player ficarar AIO! <<<< ADD ESSE MOD APENAS O RESTO JA VEIO ORIGINAL
AioDias = 30 <<<< ADD ESSE MOD APENAS O RESTO JA VEIO ORIGINAL

CODE:

Citar

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.handler.itemhandlers;

import com.l2jfrozen.Config;
import com.l2jfrozen.gameserver.handler.IItemHandler;
import com.l2jfrozen.gameserver.model.L2Character;
import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;

/**
 * @author Paulinho Souza
 * @author KhayrusS
 **/
public class AioItem  implements IItemHandler
{
    private static final int ITEM_IDS[] = { Config.AIO_ITEM };
    @Override
    public synchronized  void useItem(L2PlayableInstance playable,
                L2ItemInstance item) {
        if(!(playable instanceof L2PcInstance))
                return;

        L2PcInstance player = (L2PcInstance)playable;
        if (!player.isInsideZone(L2Character.ZONE_PEACE)){
                player.sendMessage("Voce so pode usar este item em zona de paz.");
                return;
        }
                
        else if (player.isInOlympiadMode()) {
                player.sendMessage("Voce nao pode usar este item em olympiadas.");
                return;
        }
      
        else if (player.isAio()) {
         player.sendMessage("Voce ainda esta no periodo de AIO, espere ele terminar para poder usar denovo.");
         return;
        }
      
        else {
                if(player.destroyItem("Consume", item.getObjectId(), 1, null,
                                false)) {
                        player.setAio(true);
                        int daysleft = player.getAioEndTime() <= 0 ? 0 :(int)
                          ((player.getAioEndTime()-System.currentTimeMillis())/86400000);
                        player.setEndTime("aio", daysleft + Config.AIO_DIAS);
                        player.getStat().addExp(player.getStat().getExpForLevel(81)); 
                        player.giveAioSkills();
                        player.sendSkillList();
                        player.sendMessage("Voce se tornou um Aiox voce tera todas as skills de um buffer, Seu Aio tera a duracao de " +Config.AIO_DIAS + (Config.AIO_DIAS > 1 ? " Dias." : "Dia.") );
                        player.broadcastUserInfo();
                }
        }
    }

    @Override
    public int[] getItemIds() {
        return ITEM_IDS;
    }
}

Pronto se alguém poder ajudar agradeço pode até chamar privado to on todos dias .

Link para o comentário
Compartilhar em outros sites


  • 0
Em 18/10/2019 at 07:06, brunodarkq disse:

Se alguém quiser me chamar privado para ajudar agradeço quero aprender adaptar esses mods acis etc,

alguém me ajuda ai também adicionei um java mod do aio item (2Clicks) quando uso o item

o char não fica com a cor do nome e o sistema de aio ja vem na frozen 1.5 so adicionei o aio item

e quando do //setaio do adm para o player funciona o name color normal

CODE:

Pronto se alguém poder ajudar agradeço pode até chamar privado to on todos dias .

me manda seus codigos, eu adiciono e te mando diff corretamente, ou eu adiciono para voce, via teamviewer

Editado por ChristianSDM2019
Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...



×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.