Ver um Único Post
Antigo 20-04-2011, 03:45 PM   #2 (permalink)
Mazokista
Membro - Veterano
 
Avatar de Mazokista
 
Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Rate Designer: Iniciante
Meu Estado:
Enviar mensagem via Windows Live Messenger para Mazokista
Nome Real: Roberto

Inventório de Mazokista

Padrão

Tem um mod ja existente na L2JTeon para restricao de Item
Obs: GameServer/config/altsettings.properties

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
# Restrict same item in olympiad. ItemID's need to be separated whit coma (ex. 1,200,350)
AltOlyRestrictedItems = 0
e Tem esse mod aqui qui blokia Grade S In-Oly Basta ADicionar no Java =x

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: I:/workspace/L2_GameServer/java/com/l2jstep/gameserver/network/clientpackets/UseItem.java
===================================================================
--- I:/workspace/L2_GameServer/java/com/l2jstep/gameserver/network/clientpackets/UseItem.java   (revision 4167)
+++ I:/workspace/L2_GameServer/java/com/l2jstep/gameserver/network/clientpackets/UseItem.java   (working copy)
@@ -97,6 +97,14 @@
 
       if (activeChar.getActiveTradeList() != null)
          activeChar.cancelActiveTrade();
+      
+      int weaponGrade = activeChar.getActiveWeaponItem().getCrystalType();
+      int armorGrade = activeChar.getActiveChestArmorItem().getCrystalType();
+      if (activeChar.isInOlympiadMode() && (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S))
+      {
+         activeChar.sendMessage("You cannot use S grade equipment at the Grand Olympiad games.");
+         return;
+      }
 
       // NOTE: disabled due to deadlocks
       // synchronized (activeChar.getInventory())
Index: I:/workspace/L2_GameServer/java/com/l2jstep/gameserver/model/olympiad/Olympiad.java
===================================================================
--- I:/workspace/L2_GameServer/java/com/l2jstep/gameserver/model/olympiad/Olympiad.java   (revision 4167)
+++ I:/workspace/L2_GameServer/java/com/l2jstep/gameserver/model/olympiad/Olympiad.java   (working copy)
@@ -50,6 +50,7 @@
 import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
 import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
 import com.l2jserver.gameserver.templates.StatsSet;
+import com.l2jserver.gameserver.templates.L2Item;
 import com.l2jserver.util.L2FastList;
 
 import javolution.util.FastMap;
@@ -482,6 +483,14 @@
        * return false; }
        */
 
+      int weaponGrade = noble.getActiveWeaponItem().getCrystalType();
+      int armorGrade = noble.getActiveChestArmorItem().getCrystalType();
+      if (weaponGrade == L2Item.CRYSTAL_S || armorGrade == L2Item.CRYSTAL_S)
+      {
+         noble.sendMessage("You cannot join the grand olympiad games using S grade equipment.");
+         return false;
+      }
+      
       if (!_inCompPeriod)
       {
          sm = new SystemMessage(SystemMessageId.THE_OLYMPIAD_GAME_IS_NOT_CURRENTLY_IN_PROGRESS);

Mazokista está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : Mazokista por gostar deste Post :
Genilson (20-04-2011)
 

Search Engine Optimization by vBSEO 3.3.0