Mammon changes.

Contributed by Vinter.
This commit is contained in:
MobiusDevelopment
2020-12-08 04:46:35 +00:00
parent 88497f4303
commit 3544f9961a
11 changed files with 8 additions and 2140 deletions

View File

@@ -5,7 +5,6 @@ Do you have any ancient adena that you don't know what to do with? Or do you hap
Also, if your weapon has a special ability that you do not want, I can take remove it, too. I dont't know why you would want to take off a special ability that's been bestowed on your weapon, but we'll do anything for adena.<br> Also, if your weapon has a special ability that you do not want, I can take remove it, too. I dont't know why you would want to take off a special ability that's been bestowed on your weapon, but we'll do anything for adena.<br>
I have also obtained some rare goods, so stop by some time. These items aren't easy to obtain.<br> I have also obtained some rare goods, so stop by some time. These items aren't easy to obtain.<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_2.htm">Exchange ancient adena for adena</a><br> <a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_2.htm">Exchange ancient adena for adena</a><br>
<a action="bypass -h npc_%objectId%_Quest BlackMarketeerOfMammon">Exchange adena for ancient adena</a><br>
<a action="bypass -h npc_%objectId%_multisell 310922002">Trade black market goods</a><br> <a action="bypass -h npc_%objectId%_multisell 310922002">Trade black market goods</a><br>
<a action="bypass -h npc_%objectId%_exc_multisell 310922001">Remove weapon's special ability</a><br> <a action="bypass -h npc_%objectId%_exc_multisell 310922001">Remove weapon's special ability</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a> <a action="bypass -h npc_%objectId%_Quest">Quest</a>

View File

@@ -1,13 +1,12 @@
<html><body>Blacksmith of Mammon:<br> <html><body>Blacksmith of Mammon:<br>
May Mammon's blessing be upon you! I have come down to this deep underground world in order to offer you the highest quality weapons.<br> May Mammon's blessing be upon you, you who controls the Seal of Gnosis! I, the Blacksmith of Mammon, have ventured deep underground in order to offer you the highest quality weapons.<br>
I will take care of your weapons and armor with skill that cannot be matched by inexperienced blacksmiths.<br> My skill is unmatched!<br>
I just have one request: we dwarves of Mammon do not accept money from the outside world, so if you want to trade with us, you must prepare <font color="LEVEL">ancient adena</font>.<br> I just have only one request. We Dwarves of Mammon do not accept money from the outside world. If you wish to trade, you must use <font color="LEVEL">ancient Adena</font>.<br><br>
Also, be aware that from now on, the seal removal of A-grade items can only be done by the <font color="LEVEL">blacksmiths</font> of each town.<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_2a.htm">S-Grade</a><br> <a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_2a.htm">S-Grade</a><br>
<a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_2b.htm">A-Grade</a><br> <a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_2b.htm">A-Grade</a><br>
<a action="bypass -h npc_%objectId%_exc_multisell 311262509">Remove a weapon's special capability</a><br> <a action="bypass -h npc_%objectId%_exc_multisell 311262509">Remove a weapon's special capability</a><br>
<a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_1a.htm">Exchange a weapon for a stronger weapon</a><br> <a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_1a.htm">Upgrade a weapon</a><br>
<a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_1b.htm">Exchange a weapon for a different weapon of the same grade</a><br> <a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_1b.htm">Exchange a weapon</a><br>
<a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_1c.htm">Finish the work on a chaotic rare grade item</a><br> <a action="bypass -h npc_%objectId%_Link seven_signs/mammblack_1c.htm">Finish work on a Foundation Item</a><br>
<a action="bypass -h npc_%objectId%_exc_multisell 311262516">Exchange a rare upper armor for a regular upper armor</a> <a action="bypass -h npc_%objectId%_exc_multisell 311262516">Exchange rare armor for superior armor</a>
</body></html> </body></html>

View File

@@ -2,7 +2,6 @@
I will exchange the weapon for another type of the same grade. For example, you can exchange a mithril dagger for a two-handed claymore of the same grade. But, I have to warn you.<br> I will exchange the weapon for another type of the same grade. For example, you can exchange a mithril dagger for a two-handed claymore of the same grade. But, I have to warn you.<br>
First, weapons with <font color="LEVEL">special abilities</font> cannot be exchanged.<br> First, weapons with <font color="LEVEL">special abilities</font> cannot be exchanged.<br>
Second, when exchanging a weapon that has been <font color="LEVEL">enchanted</font> the exchanged weapon will have the same enchantment.<br> Second, when exchanging a weapon that has been <font color="LEVEL">enchanted</font> the exchanged weapon will have the same enchantment.<br>
<a action="bypass -h npc_%objectId%_exc_multisell 311262512">Exchange a D~B-grade weapon for a different type</a><br> <a action="bypass -h npc_%objectId%_exc_multisell 311262512">Make an even exchange of weapons</a><br>
<a action="bypass -h npc_%objectId%_exc_multisell 311262519">Exchange an A-grade weapon for a different type</a><br>
<a action="bypass -h npc_%objectId%_Chat 0">Back</a> <a action="bypass -h npc_%objectId%_Chat 0">Back</a>
</body></html> </body></html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
<html><body>Black Marketeer of Mammon:<br>
The cost is high if you wish to keep the <font color="LEVEL">ancient Adena</font> from corroding. I'm sure you won't like it, but you must pay 4 times the normal cost. Also, we only see in bundles of 500,000 ancient Adena.<br>
To make sure the ancient currency is spread widely, we have limited the amount that an individual can buy per day.<br>
Have you decided to buy?<br>
<a action="bypass -h Quest BlackMarketeerOfMammon exchange">Exchange 2,000,000 Adena for 500,000 ancient Adena</a><br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_1.htm">Back</a>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Black Marketeer of Mammon:<br>
Ancient Adena is not for sale right now. Please come back later.<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_1.htm">Back</a>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Black Marketeer of Mammon:<br>
Haven't you already purchased Ancient Adena today? We have limited sales to once per day in order to stop people buying too much. You will be able to buy again tomorrow. Hahaha.<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_1.htm">Back</a>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>Black Marketeer of Mammon:<br>
<font color="LEVEL">[Exchange success]</font><br>
Thank you! Please use it well. Come back tomorrow!<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_1.htm">Back</a>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Black Marketeer of Mammon:<br>
You must bring more Adena in order to buy my ancient Adena. As I have already said, we do not sell it piece by piece.<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_1.htm">Back</a>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Black Marketeer of Mammon:<br>
I only sell to worthy adventurers above level 60. You might need it right away, but you're still going to have to come back after traveling some more.<br>
<a action="bypass -h npc_%objectId%_Link seven_signs/blkmrkt_1.htm">Back</a>
</body></html>

View File

@@ -1,115 +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.BlackMarketeerOfMammon;
import java.util.Calendar;
import org.l2jmobius.gameserver.enums.QuestType;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.quest.State;
import ai.AbstractNpcAI;
/**
* Black Marketeer of Mammon - Exchange Adena for AA.
* @author Adry_85
*/
public class BlackMarketeerOfMammon extends AbstractNpcAI
{
// NPC
private static final int BLACK_MARKETEER = 31092;
// Misc
private static final int MIN_LEVEL = 60;
private BlackMarketeerOfMammon()
{
addStartNpc(BLACK_MARKETEER);
addTalkId(BLACK_MARKETEER);
}
@Override
public String onTalk(Npc npc, PlayerInstance talker)
{
return exchangeAvailable() ? "31092-01.html" : "31092-02.html";
}
@Override
public String onAdvEvent(String event, Npc npc, PlayerInstance player)
{
String htmltext = event;
if ("exchange".equals(event))
{
if (exchangeAvailable())
{
if (player.getLevel() >= MIN_LEVEL)
{
final QuestState qs = getQuestState(player, true);
if ((qs.get("restartTime") != null) && !qs.isNowAvailable())
{
htmltext = "31092-03.html";
}
else
{
if (player.getAdena() >= 2000000)
{
qs.setState(State.STARTED);
takeItems(player, Inventory.ADENA_ID, 2000000);
giveItems(player, Inventory.ANCIENT_ADENA_ID, 500000);
htmltext = "31092-04.html";
qs.exitQuest(QuestType.DAILY, false);
}
else
{
htmltext = "31092-05.html";
}
}
}
else
{
htmltext = "31092-06.html";
}
}
else
{
htmltext = "31092-02.html";
}
}
return htmltext;
}
private boolean exchangeAvailable()
{
final Calendar currentTime = Calendar.getInstance();
final Calendar minTime = Calendar.getInstance();
minTime.set(Calendar.HOUR_OF_DAY, 20);
minTime.set(Calendar.MINUTE, 0);
minTime.set(Calendar.SECOND, 0);
final Calendar maxtTime = Calendar.getInstance();
maxtTime.set(Calendar.HOUR_OF_DAY, 23);
maxtTime.set(Calendar.MINUTE, 59);
maxtTime.set(Calendar.SECOND, 59);
return (currentTime.compareTo(minTime) >= 0) && (currentTime.compareTo(maxtTime) <= 0);
}
public static void main(String[] args)
{
new BlackMarketeerOfMammon();
}
}