Support for blessed items.
Contributed by manax182.
This commit is contained in:
@@ -201,3 +201,11 @@ KarmaRateDropEquipWeapon = 10
|
||||
PetXpRate = 1
|
||||
PetFoodRate = 1
|
||||
SinEaterXpRate = 1
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Blessed items
|
||||
# ---------------------------------------------------------------------------
|
||||
# Chance of blessing weapon.
|
||||
# Default: 15.0
|
||||
BlessingChance = 15.0
|
||||
|
||||
@@ -20,6 +20,14 @@
|
||||
<enchant id="956" targetGrade="D" maxEnchant="16" safeEnchant="4" scrollGroupId="0" /> <!-- Default scroll groups binding. -->
|
||||
<enchant id="93411" targetGrade="D" maxEnchant="16" safeEnchant="4" scrollGroupId="0" /> <!-- Default scroll groups binding. -->
|
||||
|
||||
<enchant id="94184" targetGrade="C" maxEnchant="1" isBlessed="true"/>
|
||||
<enchant id="94184" targetGrade="A" maxEnchant="1" isBlessed="true"/>
|
||||
|
||||
<enchant id="94208" targetGrade="C" maxEnchant="1" isBlessed="true"/>
|
||||
<enchant id="94208" targetGrade="A" maxEnchant="1" isBlessed="true"/>
|
||||
<enchant id="94208" targetGrade="B" maxEnchant="1" isBlessed="true"/>
|
||||
<enchant id="94208" targetGrade="S" maxEnchant="1" isBlessed="true"/>
|
||||
|
||||
<!-- Blessed Scrolls: Enchant Weapon -->
|
||||
<enchant id="6577" targetGrade="S" maxEnchant="16" />
|
||||
<enchant id="6569" targetGrade="A" maxEnchant="16" />
|
||||
@@ -230,22 +238,6 @@
|
||||
<item id="91550" /> <!-- Frintezza's Necklace -->
|
||||
</enchant>
|
||||
|
||||
<!-- Scroll of Blessing -->
|
||||
<enchant id="94184" maxEnchant="5" safeEnchant="1">
|
||||
<item id="6660" /> <!-- Queen Ant's Ring -->
|
||||
<item id="6661" /> <!-- Orfen's Earring -->
|
||||
<item id="6662" /> <!-- Ring of Core -->
|
||||
<item id="90763" /> <!-- Zaken's Earring -->
|
||||
</enchant>
|
||||
|
||||
<!-- Scroll of Blessing (Event) -->
|
||||
<enchant id="94208" maxEnchant="5" safeEnchant="1">
|
||||
<item id="6660" /> <!-- Queen Ant's Ring -->
|
||||
<item id="6661" /> <!-- Orfen's Earring -->
|
||||
<item id="6662" /> <!-- Ring of Core -->
|
||||
<item id="90763" /> <!-- Zaken's Earring -->
|
||||
</enchant>
|
||||
|
||||
<!-- Enchant Spirit - Zodiac Agathion -->
|
||||
<enchant id="48046" maxEnchant="10" safeEnchant="3">
|
||||
<item id="93128" /> <!-- Agathion Ignis -->
|
||||
|
||||
@@ -191,6 +191,7 @@ import handlers.itemhandlers.BeastSoulShot;
|
||||
import handlers.itemhandlers.BeastSpiritShot;
|
||||
import handlers.itemhandlers.BlessedSoulShots;
|
||||
import handlers.itemhandlers.BlessedSpiritShot;
|
||||
import handlers.itemhandlers.BlessingScrolls;
|
||||
import handlers.itemhandlers.Book;
|
||||
import handlers.itemhandlers.Bypass;
|
||||
import handlers.itemhandlers.Calculator;
|
||||
@@ -541,6 +542,7 @@ public class MasterHandler
|
||||
BeastSpiritShot.class,
|
||||
BlessedSoulShots.class,
|
||||
BlessedSpiritShot.class,
|
||||
BlessingScrolls.class,
|
||||
Book.class,
|
||||
Bypass.class,
|
||||
Calculator.class,
|
||||
|
||||
52
L2J_Mobius_Essence_5.0_Sylph/dist/game/data/scripts/handlers/itemhandlers/BlessingScrolls.java
vendored
Normal file
52
L2J_Mobius_Essence_5.0_Sylph/dist/game/data/scripts/handlers/itemhandlers/BlessingScrolls.java
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 handlers.itemhandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.handler.IItemHandler;
|
||||
import org.l2jmobius.gameserver.model.actor.Playable;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.blessing.ExOpenBlessOptionScroll;
|
||||
|
||||
public class BlessingScrolls implements IItemHandler
|
||||
{
|
||||
@Override
|
||||
public boolean useItem(Playable playable, ItemInstance item, boolean forceUse)
|
||||
{
|
||||
if (!playable.isPlayer())
|
||||
{
|
||||
playable.sendPacket(SystemMessageId.YOUR_PET_CANNOT_CARRY_THIS_ITEM);
|
||||
return false;
|
||||
}
|
||||
|
||||
final PlayerInstance player = playable.getActingPlayer();
|
||||
if (player.isCastingNow())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (player.hasItemRequest())
|
||||
{
|
||||
player.sendPacket(SystemMessageId.ANOTHER_ENCHANTMENT_IS_IN_PROGRESS_PLEASE_COMPLETE_THE_PREVIOUS_TASK_THEN_TRY_AGAIN);
|
||||
return false;
|
||||
}
|
||||
|
||||
player.sendPacket(new ExOpenBlessOptionScroll(item.getId()));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1005,7 +1005,7 @@
|
||||
<set name="is_sellable" val="false" />
|
||||
<set name="is_stackable" val="true" />
|
||||
<set name="etcitem_type" val="BLESS_ENCHT_AM" /> <!-- BLESS_ENCHT_AM -->
|
||||
<set name="handler" val="EnchantScrolls" />
|
||||
<set name="handler" val="BlessingScrolls" />
|
||||
<skills>
|
||||
<skill id="40214" level="1" /> <!-- Scroll of Blessing -->
|
||||
</skills>
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="isBlessed" type="xs:boolean" use="optional" />
|
||||
<xs:attribute name="scrollGroupId" type="xs:int" use="optional" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
Reference in New Issue
Block a user