PC Cafe Items moved to Einhasad Store.

Contributed by Fakee.
This commit is contained in:
MobiusDevelopment
2022-11-02 23:53:03 +00:00
parent 80c3ce7678
commit e89b02392a
5 changed files with 170 additions and 156 deletions

View File

@@ -1,6 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/LimitShop.xsd">
<!-- Cat 0 Equipment -->
<product id="173" category="0" maxLevel="999">
<ingredient id="57" count="50000000" /> <!-- Adena -->
<production id="48491" /> <!-- Dragon Skin Shirt -->
</product>
<product id="118" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28585" /> <!-- Elmoreden Cloak -->
</product>
<product id="117" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28586" /> <!-- Aden Cloak -->
</product>
<product id="116" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28587" /> <!-- Elmore Cloak -->
</product>
<product id="115" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28588" /> <!-- Ferios Cloak -->
</product>
<product id="4" category="0" maxLevel="999">
<ingredient id="48472" count="180" /> <!-- Einhasad's Golden Coin -->
<production id="80964" /> <!-- Energy of Protection -->
@@ -17,21 +37,25 @@
<ingredient id="48472" count="110" /> <!-- Einhasad's Golden Coin -->
<production id="47817" /> <!-- Sayha's Talisman Pack -->
</product>
<product id="115" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28588" accountDailyLimit="2" /> <!-- Ferios Cloak -->
<product id="24" category="0" maxLevel="999">
<ingredient id="48472" count="30" /> <!-- Einhasad's Golden Coin -->
<production id="28470" /> <!-- Ultimate Jewelry Box -->
</product>
<product id="116" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28587" accountDailyLimit="2" /> <!-- Elmore Cloak -->
<product id="141" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> <!-- PC Cafe Coint -->
<production id="80749" /> <!-- PA Artifact - P. Atk. (Balance) -->
</product>
<product id="117" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28586" accountDailyLimit="2" /> <!-- Elmoreden Cloak -->
<product id="140" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> <!-- PC Cafe Coint -->
<production id="80750" /> <!-- PA Artifact - M. Atk. (Balance) -->
</product>
<product id="118" category="0" maxLevel="999">
<ingredient id="48472" count="800" /> <!-- Einhasad's Golden Coin -->
<production id="28585" accountDailyLimit="2" /> <!-- Sayha's Talisman Pack -->
<product id="139" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> <!-- PC Cafe Coint -->
<production id="80751" /> <!-- PA Artifact - P. Def. (Balance) -->
</product>
<product id="138" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> <!-- PC Cafe Coint -->
<production id="80752" /> <!-- PA Artifact - M. Def. (Balance) -->
</product>
<!-- Cat 1 Enhancement -->
@@ -69,20 +93,36 @@
</product>
<!-- Cat 2 Scrolls -->
<product id="16" category="2" maxLevel="999">
<ingredient id="48472" count="480" /> <!-- Einhasad's Golden Coin -->
<production id="81898" /> <!-- Scroll: Enchant Blessed Exalted Armor -->
</product>
<product id="17" category="2" maxLevel="999">
<ingredient id="48472" count="160" /> <!-- Einhasad's Golden Coin -->
<production id="82074" /> <!-- Blessed Scroll: Enchant Exalted Weapon -->
</product>
<product id="114" category="2" maxLevel="999">
<ingredient id="48472" count="400" /> <!-- Einhasad's Golden Coin -->
<production id="28593" accountDailyLimit="2" /> <!-- Scroll: Enchant Cloak -->
</product>
<product id="16" category="2" maxLevel="999">
<ingredient id="48472" count="160" /> <!-- Einhasad's Golden Coin -->
<production id="81898" /> <!-- Scroll: Enchant Blessed Exalted Armor -->
</product>
<product id="17" category="2" maxLevel="999">
<ingredient id="48472" count="480" /> <!-- Einhasad's Golden Coin -->
<production id="82074" /> <!-- Blessed Scroll: Enchant Exalted Weapon -->
</product>
<!-- Cat 3 Supplies -->
<product id="113" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="81358" /> <!-- Abandoned Coal Mines' Time Stone -->
</product>
<product id="112" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="80998" /> <!-- Pantheon's Museum's Time Stone -->
</product>
<product id="111" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="80996" /> <!-- Fioren's Crystal Prison's Time Stone -->
</product>
<product id="110" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="80997" /> <!-- Jamoa's Camp's Time Stone -->
</product>
<product id="22" category="3" maxLevel="999">
<ingredient id="48472" count="425" /> <!-- Einhasad's Golden Coin -->
<production id="82141" /> <!-- Emperor's Special Cocktail 5-unit Pack -->
@@ -91,10 +131,6 @@
<ingredient id="48472" count="40" /> <!-- Einhasad's Golden Coin -->
<production id="82142" /> <!-- Honey Dark Beer 2-unit Pack -->
</product>
<product id="24" category="3" maxLevel="999">
<ingredient id="48472" count="80" /> <!-- Einhasad's Golden Coin -->
<production id="37560" /> <!-- Emperor's Vitality Tonic -->
</product>
<product id="25" category="3" maxLevel="999">
<ingredient id="48472" count="300" /> <!-- Einhasad's Golden Coin -->
<production id="48642" /> <!-- Shining Nevit's Gold Hourglass -->
@@ -115,36 +151,60 @@
<ingredient id="48472" count="40" /> <!-- Einhasad's Golden Coin -->
<production id="13015" accountBuyLimit="6" /> <!-- My Teleport Book Lv. 1 -->
</product>
<product id="31" category="3" maxLevel="999">
<ingredient id="48472" count="10" /> <!-- Einhasad's Golden Coin -->
<production id="13016" /> <!-- My Teleport Scroll -->
</product>
<product id="91" category="3" maxLevel="999">
<ingredient id="48472" count="80" /> <!-- Einhasad's Golden Coin -->
<production id="80999" accountBuyLimit="6" /> <!-- My Teleport Book Lv. 2 -->
</product>
<product id="31" category="3" maxLevel="999">
<ingredient id="48472" count="10" /> <!-- Einhasad's Golden Coin -->
<production id="13016" /> <!-- My Teleport Scroll -->
</product>
<product id="106" category="3" maxLevel="999">
<ingredient id="48472" count="40" /> <!-- Einhasad's Golden Coin -->
<production id="47428" /> <!-- Freya's Scroll of Storm -->
</product>
<product id="110" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="80997" /> <!-- Primeval Isle's Time Stone -->
<product id="149" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="1" /> <!-- PC Cafe Coint -->
<production id="81053" accountDailyLimit="30" /> <!-- Vitality -->
</product>
<product id="111" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="80996" /> <!-- Storm Isle's Time Stone -->
<product id="148" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="800" /> <!-- PC Cafe Coint -->
<production id="80745" accountDailyLimit="18" /> <!-- PA Ice Rose -->
</product>
<product id="112" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="80998" /> <!-- Isle of Souls' Time Stone -->
<product id="147" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="650" /> <!-- PC Cafe Coint -->
<production id="80746" accountDailyLimit="28" /> <!-- PA Scroll of Storm -->
</product>
<product id="113" category="3" maxLevel="999">
<ingredient id="48472" count="200" /> <!-- Einhasad's Golden Coin -->
<production id="81358" /> <!-- Abandoned Coal Mines' Time Stone -->
<product id="146" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="1200" /> <!-- PC Cafe Coint -->
<production id="80852" accountDailyLimit="9" /> <!-- PA Shining Nevit's Gold Hourglass -->
</product>
<product id="145" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="850" /> <!-- PC Cafe Coint -->
<production id="80820" accountDailyLimit="9" /> <!-- PA Emperor's Special Cocktail -->
</product>
<product id="144" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="400" /> <!-- PC Cafe Coint -->
<production id="80748" accountDailyLimit="18" /> <!-- PA Glowing Dragon's Attribute Potion XP -->
</product>
<product id="143" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="400" /> <!-- PC Cafe Coint -->
<production id="80747" accountDailyLimit="18" /> <!-- PA Honey Dark Beer -->
</product>
<product id="142" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="3000" /> <!-- PC Cafe Coint -->
<production id="13300" accountDailyLimit="1" /> <!-- Feather of Blessing - Event -->
</product>
<!-- Cat 4 Others -->
<product id="120" category="4" maxLevel="999">
<ingredient id="48472" count="4000" /> <!-- Einhasad's Golden Coin -->
<production id="60016" /> <!-- Spellbook: Create Mysterious Spiritshots -->
</product>
<product id="119" category="4" maxLevel="999">
<ingredient id="48472" count="4000" /> <!-- Einhasad's Golden Coin -->
<production id="60015" /> <!-- Spellbook: Create Mysterious Soulshots -->
</product>
<product id="33" category="4" maxLevel="999">
<ingredient id="48472" count="150" /> <!-- Einhasad's Golden Coin -->
<production id="81815" accountDailyLimit="3" /> <!-- Homunculus' Hourglass -->
@@ -161,128 +221,49 @@
<ingredient id="48472" count="120" /> <!-- Einhasad's Golden Coin -->
<production id="36308" /> <!-- Beauty Shop Ticket -->
</product>
<product id="119" category="4" maxLevel="999">
<ingredient id="48472" count="4000" /> <!-- Einhasad's Golden Coin -->
<production id="60015" accountDailyLimit="2" /> <!-- Spellbook: Create Mysterious Soulshots -->
</product>
<product id="120" category="4" maxLevel="999">
<ingredient id="48472" count="4000" /> <!-- Einhasad's Golden Coin -->
<production id="60016" accountDailyLimit="2" /> <!-- Spellbook: Create Mysterious Spiritshots -->
</product>
<!-- Cat 5 Events -->
<product id="121" category="5" maxLevel="999">
<ingredient id="48472" count="150" /> <!-- Einhasad's Golden Coin -->
<production id="81811" accountDailyLimit="2" /> <!-- Homunculus' Hourglass -->
</product>
<product id="122" category="5" maxLevel="999">
<ingredient id="48472" count="20" /> <!-- Einhasad's Golden Coin -->
<production id="82171" /> <!-- Swift Growth Cookie -->
</product>
<!-- <product id="123" category="5" maxLevel="999">
<ingredient id="48472" count="20" /> Einhasad's Golden Coin
<production id="60169" /> Chest of New Destiny
</product> -->
<product id="124" category="5" maxLevel="999">
<ingredient id="48472" count="150" /> <!-- Einhasad's Golden Coin -->
<production id="82070" accountBuyLimit="1" /> <!-- Conquest Expedition Rune -->
</product>
<product id="125" category="5" maxLevel="999">
<ingredient id="48472" count="1000" /> <!-- Einhasad's Golden Coin -->
<production id="82068" accountBuyLimit="1" /> <!-- Death Knight's Ring -->
</product>
<!-- PA SHOP
<product id="149" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="1" /> PA Points
<production id="81053" accountBuyLimit="1" /> Vitality
</product>
<product id="148" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="800" /> PA Points
<production id="80745" accountBuyLimit="1" /> PA Ice Rose
</product>
<product id="147" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="650" /> PA Points
<production id="80746" accountBuyLimit="1" /> PA Scroll of Storm
</product>
<product id="146" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="1200" /> PA Points
<production id="80852" accountBuyLimit="1" /> PA Shining Nevit's Gold Hourglass
</product>
<product id="145" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="850" /> PA Points
<production id="80820" accountBuyLimit="1" /> PA Emperor's Special Cocktail
</product>
<product id="144" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="400" /> PA Points
<production id="80748" accountBuyLimit="1" /> PA Glowing Dragon's Attribute Potion
</product>
<product id="143" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="400" /> PA Points
<production id="80747" accountBuyLimit="1" /> PA Honey Dark Beer
</product>
<product id="142" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="3000" /> PA Points
<production id="13300" accountBuyLimit="1" /> Feather of Blessing - Event
</product>
<product id="141" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> PA Points
<production id="80749" accountBuyLimit="1" /> PA Artifact - P. Atk. (Balance)
</product>
<product id="140" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> PA Points
<production id="80750" accountBuyLimit="1" /> PA Artifact - M. Atk. (Balance)
</product>
<product id="139" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> PA Points
<production id="80751" accountBuyLimit="1" /> PA Artifact - P. Def. (Balance)
</product>
<product id="138" category="0" minLevel="1" maxLevel="999">
<ingredient id="-100" count="2160" /> PA Points
<production id="80752" accountBuyLimit="1" /> PA Artifact - M. Def. (Balance)
</product>
<product id="137" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48431" accountBuyLimit="1" /> PA Talisman - STR/P. Atk.
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48431" /> <!-- PA Talisman - STR/P. Atk. 4-hour -->
</product>
<product id="136" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48432" accountBuyLimit="1" /> PA Talisman - INT/M. Atk.
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48432" /> <!-- PA Talisman - INT/M. Atk. 4-hour -->
</product>
<product id="135" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48433" accountBuyLimit="1" /> PA Talisman - DEX/Atk. Spd.
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48433" /> <!-- PA Talisman - DEX/Atk. Spd. 4-hour -->
</product>
<product id="134" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48434" accountBuyLimit="1" /> PA Talisman - WIT/Casting Spd.
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48434" /> <!-- PA Talisman - WIT/Casting Spd. 4-hour -->
</product>
<product id="133" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48435" accountBuyLimit="1" /> PA Talisman - CON/HP
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48435" /> <!-- PA Talisman - CON/HP 4-hour -->
</product>
<product id="132" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48436" accountBuyLimit="1" /> PA Talisman - MEN/MP
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48436" /> <!-- PA Talisman - MEN/MP 4-hour -->
</product>
<product id="131" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48437" accountBuyLimit="1" /> PA Talisman - Attribute Attack
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48437" /> <!-- PA Talisman - Attribute Attack 4-hour -->
</product>
<product id="130" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="500" /> PA Points
<production id="48438" accountBuyLimit="1" /> PA Talisman - Attribute Resistance
<ingredient id="-100" count="500" /> <!-- PC Cafe Coint -->
<production id="48438" /> <!-- PA Talisman - Attribute Resistance 4-hour -->
</product>
<product id="129" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="30" /> PA Points
<production id="6406" accountBuyLimit="1" /> Firecracker
<ingredient id="-100" count="30" /> <!-- PC Cafe Coint -->
<production id="6406" /> <!-- Firecracker -->
</product>
<product id="128" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="60" /> PA Points
<production id="6407" accountBuyLimit="1" /> Large Firecracker
<ingredient id="-100" count="60" /> <!-- PC Cafe Coint -->
<production id="6407" /> <!-- Large Firecracker -->
</product>
<product id="127" category="4" minLevel="1" maxLevel="999">
<ingredient id="-100" count="1800" /> <!-- PC Cafe Coint -->
<production id="81815" accountDailyLimit="1" /> <!-- Homunculus' Hourglass -->
</product>
<product id="127" category="3" minLevel="1" maxLevel="999">
<ingredient id="-100" count="1800" /> PA Points
<production id="81815" accountBuyLimit="1" /> Homunculus' Hourglass
</product> -->
</list>

View File

@@ -878,7 +878,15 @@
<production id="82270" chance="100" count="2" /> <!-- Tersi's Soul Crystal Lv. 6 -->
</product>
<product id="1297" category="4">
<ingredient id="81835" count="4" /> <!-- High Priest's Holy Water -->
<production id="82305" chance="100" /> <!-- Beora's Ancient Energy -->
<ingredient id="81835" count="6" /> <!-- High Priest's Holy Water -->
<production id="82305" chance="100" count="2" accountDailyLimit="50" /> <!-- Beora's Ancient Energy -->
</product>
<product id="1341" category="4">
<ingredient id="81217" count="264" /> <!-- Oriharukon Ore -->
<ingredient id="81218" count="264" /> <!-- Dragon Scale -->
<ingredient id="81219" count="264" /> <!-- Angel's Feather -->
<ingredient id="81215" count="120" /> <!-- Destructive Energy -->
<ingredient id="35563" count="264" /> <!-- Giant's Energy -->
<production id="82344" chance="100" count="1" /> <!-- Сказание Измерений -->
</product>
</list>

View File

@@ -1,10 +1,3 @@
<html><title>Player Commendation System</title><body>Player Commendation Points:<br>
You can use PC points to buy items.<br>
It is possible to buy several <font color="LEVEL">General Items</font>, like hair accessories or even time-limited <font color="LEVEL">Commendation Weapons</font>.<br>
Take a look on the current rewards.<br>
<br>
<font color="LEVEL">
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h pccafe_buy 900001">Buy General Items</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h pccafe_buy 900002">Buy Commendation Weapons</Button>
</font>
<html><title>Chat</title><body>Guild of Travelers Member:<br>
The PA Shop assortment is now available in the Einhasad Shop.
</body></html>

View File

@@ -36,6 +36,7 @@ import org.l2jmobius.gameserver.model.variables.AccountVariables;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
import org.l2jmobius.gameserver.network.serverpackets.ExPCCafePointInfo;
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExPurchaseLimitShopItemResult;
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRBuyProduct;
@@ -166,6 +167,15 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
return;
}
}
else if (_product.getIngredientIds()[i] == SpecialItemType.PC_CAFE_POINTS.getClientId())
{
if (player.getPcCafePoints() < (_product.getIngredientQuantities()[i] * _amount))
{
player.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
player.removeRequest(PrimeShopRequest.class);
return;
}
}
else if (player.getInventory().getInventoryItemCount(_product.getIngredientIds()[i], _product.getIngredientEnchants()[i] == 0 ? -1 : _product.getIngredientEnchants()[i], true) < (_product.getIngredientQuantities()[i] * _amount))
{
player.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
@@ -189,6 +199,12 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
{
player.setHonorCoins(player.getHonorCoins() - (_product.getIngredientQuantities()[i] * _amount));
}
else if (_product.getIngredientIds()[i] == SpecialItemType.PC_CAFE_POINTS.getClientId())
{
final int newPoints = (int) (player.getPcCafePoints() - (_product.getIngredientQuantities()[i] * _amount));
player.setPcCafePoints(newPoints);
player.sendPacket(new ExPCCafePointInfo(player.getPcCafePoints(), (int) (-(_product.getIngredientQuantities()[i] * _amount)), 1));
}
else
{
if (_product.getIngredientEnchants()[i] > 0)

View File

@@ -38,6 +38,7 @@ import org.l2jmobius.gameserver.model.variables.AccountVariables;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
import org.l2jmobius.gameserver.network.serverpackets.ExPCCafePointInfo;
import org.l2jmobius.gameserver.network.serverpackets.limitshop.ExPurchaseLimitShopItemResult;
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRBuyProduct;
@@ -173,6 +174,15 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
return;
}
}
else if (_product.getIngredientIds()[i] == SpecialItemType.PC_CAFE_POINTS.getClientId())
{
if (player.getPcCafePoints() < (_product.getIngredientQuantities()[i] * _amount))
{
player.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
player.removeRequest(PrimeShopRequest.class);
return;
}
}
else if (player.getInventory().getInventoryItemCount(_product.getIngredientIds()[i], _product.getIngredientEnchants()[i] == 0 ? -1 : _product.getIngredientEnchants()[i], true) < (_product.getIngredientQuantities()[i] * _amount))
{
player.sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
@@ -196,6 +206,12 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
{
player.setHonorCoins(player.getHonorCoins() - (_product.getIngredientQuantities()[i] * _amount));
}
else if (_product.getIngredientIds()[i] == SpecialItemType.PC_CAFE_POINTS.getClientId())
{
final int newPoints = (int) (player.getPcCafePoints() - (_product.getIngredientQuantities()[i] * _amount));
player.setPcCafePoints(newPoints);
player.sendPacket(new ExPCCafePointInfo(player.getPcCafePoints(), (int) (-(_product.getIngredientQuantities()[i] * _amount)), 1));
}
else
{
if (_product.getIngredientEnchants()[i] > 0)