20-04-2011, 03:45 PM
|
#2 (permalink)
|
|
Membro - Veterano
Registrado em: Dec 2009
Posts: 1,335
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Rate
Designer:
Meu Estado:
|
Tem um mod ja existente na L2JTeon para restricao de Item
Obs: GameServer/config/altsettings.properties
# 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
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);
|
|
|