Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Downloads > [Lineage] Java Mods
Registrar Loteria VIPStaff SERegras do fórum Membros Arcade Pesquisar Postados Hoje Marcar Fóruns Como Lidos Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

Resposta
 
Ferramentas do Tópico Modos de Exibição
Antigo 18-07-2013, 10:31 PM   #1
AiramCruZ
Membro - Coronel
 
Avatar de AiramCruZ
 
Registrado em: Feb 2009
Localização: Em Casa
Posts: 191
Agradeceu: 102
Agradecido 193 Vezes em 70 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Pontos: 4,684, Nível: 43
Pontos: 4,684, Nível: 43 Pontos: 4,684, Nível: 43 Pontos: 4,684, Nível: 43
Atividade: 70%
Atividade: 70% Atividade: 70% Atividade: 70%

Nome Real: AiramCruZ

Inventório de AiramCruZ

Padrão Mod AIOx item ( Até o restart )

Eae Galera esse java mod e um item que te da AIOx ate o restart !
Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/Config.java
===================================================================
--- head-src/com/l2jfrozen/Config.java (revision 1003)
+++ head-src/com/l2jfrozen/Config.java (working copy)
@@ -570,6 +570,9 @@
public static int AIO_TCOLOR;
public static boolean ALLOW_AIO_USE_GK;
public static boolean ALLOW_AIO_USE_CM;
+ public static boolean ENABLE_AIO_CUSTOM_ITEM;
+ public static int AIO_CUSTOM_ITEM;
+ public static int AIO_COUNT_ITEM;
public static boolean ANNOUNCE_CASTLE_LORDS;

/** Configuration to allow custom items to be given on character creation */
@@ -674,6 +677,9 @@
AIO_TCOLOR = Integer.decode("0x" + otherSettings.getProperty("AioTitleColor", "88AA88"));
ALLOW_AIO_USE_GK = Boolean.parseBoolean(otherSettings.getProperty("AllowAioUseGk", "False"));
ALLOW_AIO_USE_CM = Boolean.parseBoolean(otherSettings.getProperty("AllowAioUseClassMaster", "False"));
+ ENABLE_AIO_CUSTOM_ITEM = Boolean.parseBoolean(otherSettings.getProperty("EnableCustomItemAio", "false"));
+ AIO_CUSTOM_ITEM = Integer.parseInt(otherSettings.getProperty("CustomItemAioID", ""));
+ AIO_COUNT_ITEM = Integer.parseInt(otherSettings.getProperty("CustomItemAioCount", ""));
ANNOUNCE_CASTLE_LORDS = Boolean.parseBoolean(otherSettings.getProperty("AnnounceCastleLords", "False"));
if(ENABLE_AIO_SYSTEM) //create map if system is enabled
{
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/AioItem.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/AioItem.java (revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/AioItem.java (working copy)
@@ -0,0 +1,50 @@
+package com.l2jfrozen.gameserver.handler.itemhandlers;
+
+import com.l2jfrozen.Config;
+import com.l2jfrozen.gameserver.handler.IItemHandler;
+import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminAio;
+import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
+import com.l2jfrozen.gameserver.model.entity.Announcements;
+import com.l2jfrozen.gameserver.network.serverpackets.SocialAction;
+
+public class AioItem implements IItemHandler
+{
+
+ private static final int[] ITEM_IDS =
+ {
+ Config.AIO_CUSTOM_ITEM
+ };
+ private static String _itemName = "AioItem";
+
+ @Override
+ public void useItem(L2PlayableInstance playable, L2ItemInstance item)
+ {
+ if (!(playable instanceof L2PcInstance))
+ return;
+
+ L2PcInstance activeChar = (L2PcInstance) playable;
+
+ if (Config.ENABLE_AIO_CUSTOM_ITEM && !activeChar.isAio() && activeChar.getPvpFlag() < 1 && !activeChar.isDead() && activeChar.getKarma() < 1 || activeChar.getInventory().getItemByItemId(Config.AIO_CUSTOM_ITEM) != null && activeChar.getInventory().getItemByItemId(Config.AIO_CUSTOM_ITEM).getCount() == Config.AIO_CUSTOM_ITEM)
+ {
+ activeChar.getInventory().destroyItemByItemId("Aio Item", Config.AIO_CUSTOM_ITEM, Config.AIO_CUSTOM_ITEM, activeChar, activeChar.getTarget());
+ activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
+ activeChar.setAio(true);
+ activeChar.rewardAioSkills();
+ activeChar.sendSkillList();
+ activeChar.lostAioSkills();
+ Announcements.getInstance().gameAnnounceToAll("Player Is Aio " + activeChar.getName() + " congratulations for:");
+ Announcements.getInstance().gameAnnounceToAll("Item Name: " + _itemName + "");
+ Announcements.getInstance().gameAnnounceToAll("Item Count: " + Config.AIO_COUNT_ITEM + "");
+ activeChar.sendMessage("You became aio congratulations and gave " + Config.AIO_COUNT_ITEM + "");
+ activeChar.broadcastUserInfo();
+ }
+ else if (!Config.ENABLE_AIO_CUSTOM_ITEM)
+ {
+ activeChar.sendMessage("You are aio our not aio item count this..");
+ }
+ }
+
+ @Override
+ public int[] getItemIds()
+ {
+ return ITEM_IDS;
+ }
+}

Index: head-src/com/l2jfrozen/gameserver/handler/Itemhandler.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/Itemhandler.java (revision 1003)
+++ head-src/com/l2jfrozen/gameserver/handler/Itemhandler.java (working copy)
import com.l2jfrozen.gameserver.GameServer;
+import com.l2jfrozen.gameserver.handler.itemhandlers.AioItem;

@@
registerItemHandler(new ChristmasTree());
registerItemHandler(new Crystals());
+ registerItemHandler(new AioItem());

Index: config/head/other.properties
===================================================================
--- config/head/other.properties (revision 1003)
+++ config/head/other.properties (working copy)
@@ -229,6 +229,12 @@
# Aio Buffers can speak to Class Master?
AllowAioUseClassMaster = False

+# Custom Aio Item System
+# Default: false
+EnableCustomItemAio = false
+CustomItemAioID = 6673
+CustomItemAioCount = 100
+
# Announce castle lords on enter game. default = false
AnnounceCastleLords = False
Creditos : crisfoda123 - l2-vanper - redhot
Codigo base sapoo

AiramCruZ está offline  
Links Patrocinados
Antigo 09-08-2013, 03:27 PM   #2
leonardoalves
Membro - Sargento
 
Avatar de leonardoalves
 
Registrado em: Apr 2009
Posts: 38
Agradeceu: 33
Agradecido 4 Vezes em 2 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Pontos: 3,305, Nível: 35
Pontos: 3,305, Nível: 35 Pontos: 3,305, Nível: 35 Pontos: 3,305, Nível: 35
Atividade: 5%
Atividade: 5% Atividade: 5% Atividade: 5%

Inventório de leonardoalves

Padrão

esse mod tá com bug ele dá as skills e já remove -.-'.

leonardoalves está offline   Responder com Citação
Resposta

Ferramentas do Tópico
Modos de Exibição

Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 12:20 AM.