Dimensional Merchant updates
This commit is contained in:
6
L2J_Mobius_Classic/dist/game/data/html/merchant/32478.htm
vendored
Normal file
6
L2J_Mobius_Classic/dist/game/data/html/merchant/32478.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
Hi! You can deal with <font color="LEVEL">Dimensional items</font> here. Dimensional items can be obtained in the item catalogue. However, if the inventory is full you can't put any Dimensional items in it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_package_deposit" msg="1040"><font color="LEVEL">Move Dimentional items to another character on the account</font></Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_package_withdraw"><font color="LEVEL">Get items</font></Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 32478">Get Attendance reward</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
<font color="LEVEL">You can exchange a Minion Coupon, Superior Minion Coupon, and Rose Spirit Coupon</font> for a Minion Pet. You just need to select the pet that you want.<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-02.html">Exchange a Minion Coupon for a Minion Pet</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-09.html">Exchange Superior Minion Coupon for a Superior Minion Pet</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-13.html">Exchange a Rose Spirit Coupon for a Rose Spirit</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You can obtain a Minion pet with a Minion Coupon. Please select the Minion pet you want.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-03.html">White Weasel Pet Whistle</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-04.html">Fairy Princess Pet Whistle</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-05.html">Wild Beast Fighter Pet Whistle</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-06.html">Fox Shaman Pet Whistle</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a White Weasel Pet Whistle.<br1>
|
||||
A White Weasel will help you in battle with <font color="LEVEL">fighter buffs and healing</font>.<br>
|
||||
Would you like to exchange the coupon for a White Weasel Pet Whistle?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant whiteWeasel">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-02.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a Fairy Princess Pet Whistle.<br1>
|
||||
A Fairy Princess will help you in battle with <font color="LEVEL">wizard buffs and healing</font>.<br>
|
||||
Would you like to exchange the coupon for a Fairy Princess Pet Whistle?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant fairyPrincess">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-02.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a Wild Beast Fighter Pet Whistle.<br1>
|
||||
A Wild Beast Fighter will help you in battle with <font color="LEVEL">fierce attacks</font>.<br>
|
||||
Would you like to exchange the coupon for a Wild Beast Fighter Pet Whistle?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant wildBeast">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-02.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a Fox Shaman Pet Whistle.<br1>
|
||||
A Fox Shaman will help you in battle with <font color="LEVEL">strong magic</font>.<br>
|
||||
Would you like to exchange the coupon for a Fox Shaman Pet Whistle?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant foxShaman">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-02.html">Back</Button>
|
||||
</body></html>
|
@@ -1,4 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
I am sorry, but you do not have sufficient Minion Coupons. Please verify that you selected the correct item.<br>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,4 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
Thank you for your patronage.<br1>
|
||||
I hope you will visit me again soon.
|
||||
</body></html>
|
@@ -1,6 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
Please select a Superior Minion you would like to receive in exchange for the Superior Minion Coupon.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-10.html">Toy Knight Summon Whistle</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-11.html">Spirit Shaman Summon Whistle</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-12.html">Turtle Ascetic Summon Necklace</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a Toy Knight Summon Whistle.<br1>
|
||||
<font color="LEVEL">A Toy Knight will attack your enemies with a sword while using fighter buffs and healing, to help you in battle.</font><br>
|
||||
Would you like to exchange the coupon for a Toy Knight?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant toyKnight">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a Spirit Shaman Summon Whistle.<br1>
|
||||
<font color="LEVEL">A Spirit Shaman will help you in battle with wizard buffs, heals and recharges.</font><br>
|
||||
Would you like to exchange the coupon for a Spirit Shaman Whistle?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant spiritShaman">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You selected a Turtle Ascetic Summon Necklace.<br1>
|
||||
<font color="LEVEL">A Turtle Ascetic will help you in battle with warsmith buffs, heals and recharges.</font><br>
|
||||
Would you like to exchange the coupon for a Turtle Ascetic?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant turtleAscetic">"Yes."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,11 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
Which improved Rose Spirit would you like?<br1>
|
||||
(When the inventory is full, you can't receive the item.)<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-14.html">Male, Warrior Type</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-15.html">Male, Wizard Type</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-16.html">Male, Warsmith Type</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-17.html">Female, Warrior Type</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-18.html">Female, Wizard Type</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-19.html">Female, Warsmith Type</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">Back</Button>
|
||||
</body></html>
|
@@ -1,8 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You have chosen the warrior type Rose Spirit.<br><br>
|
||||
The name of the spirit is Desheloph.<br>
|
||||
<font color="LEVEL">Desheloph is a Rose Spirit that uses various warrior type buffs and healing while attacking enemies with a sword.</font><br><br>
|
||||
Will you exchange to Desheloph?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant desheloph">"Yes. I'll exchange to Desheloph."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">Back</Button>
|
||||
</body></html>
|
@@ -1,8 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You have chosen the wizard type Rose Spirit.<br><br>
|
||||
The name of the spirit is Hyum.<br>
|
||||
<font color="LEVEL">Hyum is a Rose Spirit that uses wizard type buffs, healing, and recharges while attacking enemies with magic.</font><br><br>
|
||||
Will you exchange to Hyum?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant hyum">"Yes. I'll exchange to Hyum."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">Back</Button>
|
||||
</body></html>
|
@@ -1,8 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You have chosen the warsmith type Rose Spirit.<br><br>
|
||||
The name of the spirit is Lekang.<br>
|
||||
<font color="LEVEL">Lekang is a Rose Spirit that uses a weapon or magic to attack enemies as well as healing and recharges while managing (warsmith buff) the owner's weapon and armor.</font><br><br>
|
||||
Will you exchange to Lekang?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant lekang">"Yes. I'll exchange to Lekang."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">Back</Button>
|
||||
</body></html>
|
@@ -1,8 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You have chosen the warrior type Rose Spirit.<br><br>
|
||||
The name of the spirit is Lilias.<br>
|
||||
<font color="LEVEL">Lilias is a Rose Spirit that uses various warrior type buffs and healing while attacking enemies with a sword.</font><br><br>
|
||||
Will you exchange to Lilias?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant lilias">"Yes. I'll exchange to Lilias."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">Back</Button>
|
||||
</body></html>
|
@@ -1,8 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You have chosen the wizard type Rose Spirit.<br><br>
|
||||
The name of the spirit is Lapham.<br>
|
||||
<font color="LEVEL">Lapham is a Rose Spirit that uses wizard type buffs, healing, and recharges while attacking enemies with magic.</font><br><br>
|
||||
Will you exchange to Lapham?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant lapham">"Yes. I'll exchange to Lapham."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">Back</Button>
|
||||
</body></html>
|
@@ -1,8 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
You have chosen the warsmith type Rose Spirit.<br><br>
|
||||
The name of the spirit is Mafum.<br>
|
||||
<font color="LEVEL">Mafum is a Rose Spirit that uses a weapon or magic to attack enemies as well as healing and recharges while managing (warsmith buff) the owner's weapon and armor.</font><br><br>
|
||||
Will you exchange to Mafum?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant mafum">"Yes. I'll exchange to Mafum."</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478-01.html">"No."</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br><br>
|
||||
To exchange Vitality items, <font color="LEVEL">you need to have Vitality-related items in your inventory</font>.<br1>
|
||||
You may exchange: <font color="LEVEL">Birthday Vitality Potion, Freya's Refreshing Breeze, Pa'agrio's Warm Breeze, Sweet Chocolate, Returning Hero's Vitality Replenishing Juice and Pirate Elixir and XP Buff 50%.</font><br>
|
||||
Keep in mind, you cannot cancel any item exchange.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 855">Exchange Vitality Items</Button>
|
||||
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,6 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br><br>
|
||||
In order to seal or unseal the Power Shirt, you must have a <font color="LEVEL">Power Shirt or a Sealed Power Shirt in the character's inventory</font>.<br1>
|
||||
A Sealed Power Shirt can be transferred to another character within the account through the Dimensional Merchant. <font color="LEVEL">But, when the seal is removed on a Sealed Power Shirt, you can no longer use seal/unseal.</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 856">Seal/Unseal a Power Shirt</Button>
|
||||
<Button ALIGN=LEFT ICON="return" action="bypass -h Quest DimensionalMerchant 32478.html">Back</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
Which coupon would you like to use?
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3027">"I want to exchange an Requiem Weapon Coupon for a weapon."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-23.html">"I want to exchange an Immortal Armor Set Coupon for an armor."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3028">"I want to use a Lv. 3 Giant Dye Exchange Coupon."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3029">"I want to use a Lv. 4 Legendary Dye Exchange Coupon."</Button>
|
||||
</body></html>
|
@@ -1,7 +0,0 @@
|
||||
<html><head><body>Dimensional Merchant:<br>
|
||||
What type of armor would you like?<br>
|
||||
You can only choose once, so think carefully.
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-23.html">"I want a Heavy Armor."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-23.html">"I want a Light Armor."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-23.html">"I want a Robe."</Button>
|
||||
</body></head></html>
|
@@ -1,11 +0,0 @@
|
||||
<html><body>Dimensional Merchant:<br>
|
||||
We are the <font color="LEVEL">Dimensional Merchants</font>. Get your Dimensional items from the Product Inventory. You can't get your items if your inventory is full, and any items you get cannot be moved, sold, exchanged, or dropped.<br><br>
|
||||
Oh, we are also upgrading products from the past L2Store, so exchange them as well.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant getDimensonalItem">"I want a Dimensional Item."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-01.html">"I want to exchange a Minion Coupon or Rose Spirit Coupon Pack for a Minion pet."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_package_deposit" msg="1040"><font color="LEVEL">"I want to transfer a Dimensional Item to another character on the same account."</font></Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_package_withdraw"><font color="LEVEL">"I want to withdraw a transferred Dimensional Item."</font></Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-20.html">"I want to exchange a Vitality item or XP Buff."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-21.html">"I want to know about the Power Shirt."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest DimensionalMerchant 32478-22.html">"I have an Exchange Coupon."</Button>
|
||||
</body></html>
|
@@ -1,173 +0,0 @@
|
||||
/*
|
||||
* 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 ai.others.DimensionalMerchant;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.l2jmobius.gameserver.handler.IItemHandler;
|
||||
import com.l2jmobius.gameserver.handler.ItemHandler;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExGetPremiumItemList;
|
||||
|
||||
import ai.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Dimensional Merchant AI.
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class DimensionalMerchant extends AbstractNpcAI
|
||||
{
|
||||
// NPC
|
||||
private static final int MERCHANT = 32478; // Dimensional Merchant
|
||||
// Items
|
||||
private static final int MINION_COUPON = 13273; // Minion Coupon (5-hour)
|
||||
private static final int MINION_COUPON_EV = 13383; // Minion Coupon (5-hour) (Event)
|
||||
private static final int SUP_MINION_COUPON = 14065; // Superior Minion Coupon - 5-hour
|
||||
private static final int SUP_MINION_COUPON_EV = 14074; // Superior Minion Coupon (Event) - 5-hour
|
||||
private static final int ENH_MINION_COUPON = 20914; // Enhanced Rose Spirit Coupon (5-hour)
|
||||
private static final int ENH_MINION_COUPON_EV = 22240; // Enhanced Rose Spirit Coupon (5-hour) - Event
|
||||
// Misc
|
||||
private static final HashMap<String, Integer> MINION_EXCHANGE = new HashMap<>();
|
||||
|
||||
{
|
||||
// Normal
|
||||
MINION_EXCHANGE.put("whiteWeasel", 13017); // White Weasel Minion Necklace
|
||||
MINION_EXCHANGE.put("fairyPrincess", 13018); // Fairy Princess Minion Necklace
|
||||
MINION_EXCHANGE.put("wildBeast", 13019); // Wild Beast Fighter Minion Necklace
|
||||
MINION_EXCHANGE.put("foxShaman", 13020); // Fox Shaman Minion Necklace
|
||||
// Superior
|
||||
MINION_EXCHANGE.put("toyKnight", 14061); // Toy Knight Summon Whistle
|
||||
MINION_EXCHANGE.put("spiritShaman", 14062); // Spirit Shaman Summon Whistle
|
||||
MINION_EXCHANGE.put("turtleAscetic", 14064); // Turtle Ascetic Summon Necklace
|
||||
// Enhanced
|
||||
MINION_EXCHANGE.put("desheloph", 20915); // Enhanced Rose Necklace: Desheloph
|
||||
MINION_EXCHANGE.put("hyum", 20916); // Enhanced Rose Necklace: Hyum
|
||||
MINION_EXCHANGE.put("lekang", 20917); // Enhanced Rose Necklace: Lekang
|
||||
MINION_EXCHANGE.put("lilias", 20918); // Enhanced Rose Necklace: Lilias
|
||||
MINION_EXCHANGE.put("lapham", 20919); // Enhanced Rose Necklace: Lapham
|
||||
MINION_EXCHANGE.put("mafum", 20920); // Enhanced Rose Necklace: Mafum
|
||||
}
|
||||
|
||||
private DimensionalMerchant()
|
||||
{
|
||||
addStartNpc(MERCHANT);
|
||||
addFirstTalkId(MERCHANT);
|
||||
addTalkId(MERCHANT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "32478.html":
|
||||
case "32478-01.html":
|
||||
case "32478-02.html":
|
||||
case "32478-03.html":
|
||||
case "32478-04.html":
|
||||
case "32478-05.html":
|
||||
case "32478-06.html":
|
||||
case "32478-07.html":
|
||||
case "32478-08.html":
|
||||
case "32478-09.html":
|
||||
case "32478-10.html":
|
||||
case "32478-11.html":
|
||||
case "32478-12.html":
|
||||
case "32478-13.html":
|
||||
case "32478-14.html":
|
||||
case "32478-15.html":
|
||||
case "32478-16.html":
|
||||
case "32478-17.html":
|
||||
case "32478-18.html":
|
||||
case "32478-19.html":
|
||||
case "32478-20.html":
|
||||
case "32478-21.html":
|
||||
case "32478-22.html":
|
||||
case "32478-23.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "getDimensonalItem":
|
||||
{
|
||||
if (player.getPremiumItemList().isEmpty())
|
||||
{
|
||||
player.sendPacket(SystemMessageId.THERE_ARE_NO_MORE_DIMENSIONAL_ITEMS_TO_BE_FOUND);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendPacket(new ExGetPremiumItemList(player));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "whiteWeasel":
|
||||
case "fairyPrincess":
|
||||
case "wildBeast":
|
||||
case "foxShaman":
|
||||
{
|
||||
htmltext = giveMinion(player, event, MINION_COUPON, MINION_COUPON_EV);
|
||||
break;
|
||||
}
|
||||
case "toyKnight":
|
||||
case "spiritShaman":
|
||||
case "turtleAscetic":
|
||||
{
|
||||
htmltext = giveMinion(player, event, SUP_MINION_COUPON, SUP_MINION_COUPON_EV);
|
||||
break;
|
||||
}
|
||||
case "desheloph":
|
||||
case "hyum":
|
||||
case "lekang":
|
||||
case "lilias":
|
||||
case "lapham":
|
||||
case "mafum":
|
||||
{
|
||||
htmltext = giveMinion(player, event, ENH_MINION_COUPON, ENH_MINION_COUPON_EV);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private String giveMinion(L2PcInstance player, String event, int couponId, int eventCouponId)
|
||||
{
|
||||
if (hasAtLeastOneQuestItem(player, couponId, eventCouponId))
|
||||
{
|
||||
takeItems(player, (hasQuestItems(player, eventCouponId) ? eventCouponId : couponId), 1);
|
||||
final int minionId = MINION_EXCHANGE.get(event);
|
||||
giveItems(player, minionId, 1);
|
||||
final L2ItemInstance summonItem = player.getInventory().getItemByItemId(minionId);
|
||||
final IItemHandler handler = ItemHandler.getInstance().getHandler(summonItem.getEtcItem());
|
||||
if ((handler != null) && !player.hasPet())
|
||||
{
|
||||
handler.useItem(player, summonItem, true);
|
||||
}
|
||||
return "32478-08.html";
|
||||
}
|
||||
return "32478-07.html";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new DimensionalMerchant();
|
||||
}
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/npcs.xsd">
|
||||
<npc id="32478" level="70" type="L2Npc" name="Dimensional Merchant" title="Energy of Life">
|
||||
<npc id="32478" level="70" type="L2Merchant" name="Dimensional Merchant" title="Energy of Life">
|
||||
<race>HUMAN</race>
|
||||
<sex>FEMALE</sex>
|
||||
<stats str="40" int="21" dex="30" wit="20" con="43" men="10">
|
||||
|
@@ -23,6 +23,7 @@ What is done
|
||||
-Added new class mounts
|
||||
-Fisherman NPC updates
|
||||
-Olympiad NPC updates
|
||||
-Dimensional Merchant updates
|
||||
|
||||
Custom work
|
||||
-Start NPC dialogs until Newbie Helper
|
||||
|
Reference in New Issue
Block a user