Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/ai/others/FameManager/36479-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/others/FameManager/36479-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
You have not yet met the qualifications. (Requires completion of second class transfer and Clan Fame level above 40.)<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager 36479-07.html">Ask how to obtain Clan Fame points.</Button>
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/ai/others/FameManager/36479-02.html
vendored
Normal file
7
trunk/dist/game/data/scripts/ai/others/FameManager/36479-02.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
Tell me what you want, and if you are worthy I will help you.<br>
|
||||
If you have already <font color="LEVEL">bestowed them with a special ability</font>, <font color="LEVEL">top-grade weapons and armor</font> can be enhanced <font color="LEVEL">beyond A-Grade</font> especially for PvP combat. Once a multi-user item is specialized, you will still be able to enchant the item. However, you cannot augment, crystallize, convert or add an attribute to it.</font> Think carefully before making a decision...<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 364790001">Enhance weapons and armor for PvP.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 364790002">Cancel enhancement.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 364790003">Obtain consumable item.</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
If you are not part of a clan, or if your clan status is too low, your victory cannot be recognized.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
Your clan will be proud of you.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
You have no sins for which you need to atone.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36479-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
No matter what excuses you make, there is no justifying murder. From now on, make every effort to obey the law. Do not fail!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/ai/others/FameManager/36479-07.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/others/FameManager/36479-07.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
Fame comes naturally when one takes an active part in battles with others. If you have clan members with the same goal, consider participating in Castle Sieges, Fortress Battles and Clan Hall Battles. If you have party members who work extremely well together, try your luck in the Underground Coliseum Game or the Festival of Darkness. If you are alone, demonstrate your prowess by participating in the Olympiad.<br>
|
||||
You can use Clan Reputation Points earned in any of the above games to help increase your clan's fame or improve your own PVP capabilities.
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/ai/others/FameManager/36479.html
vendored
Normal file
7
trunk/dist/game/data/scripts/ai/others/FameManager/36479.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Reputation Manager Rapidus:<br>
|
||||
O victorious one, have you set your next goal? I have prepared something for you. You will be awarded according to your distinguished service. What is it that you seek?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager 36479-02.html">Examine PVP exclusive items.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager decreasePk">Decrease PK count by 1 (5,000 Fame Points).</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager clanRep">Increase Clan Fame (1,000 Fame Points).</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h Quest FameManager clanRep">Quest.</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/ai/others/FameManager/36480-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/ai/others/FameManager/36480-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
Diplomacy is sometimes wiser than fighting. Nevertheless, Warriors need power if they are to protect those who depend on them. (Requires completion of second class transfer and Clan Fame level above 40.)<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager 36480-07.html">Ask how to obtain Clan Fame points.</Button>
|
||||
</body></html>
|
8
trunk/dist/game/data/scripts/ai/others/FameManager/36480-02.html
vendored
Normal file
8
trunk/dist/game/data/scripts/ai/others/FameManager/36480-02.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
If you need something, please let me know.<br>
|
||||
Weapons and armor can be enhanced <font color="LEVEL">beyond Grade A</font> for <font color="LEVEL">top-grade items</font> and specialized for PvP. Weapons must have <font color="LEVEL">bestowed special abilities</font>... Once it is enhanced, an item <font color="LEVEL">can only be used by its owner</font>.<br>
|
||||
And once a multi-user item is specialized, <font color="LEVEL">you can use enhanced Spellbooks, but you cannot augment, soul crystalize or convert it</font>. Be careful so that you don't have to cancel the effect.<br><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 364790001">Enhance weapons and armor for PvP.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 364790002">Cancel enhancement.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 364790003">Obtain consumable item.</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-03.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-03.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
Whether or not you are a member of a clan, your victory cannot be acknowledged unless you possess Clan Reputation Points. Work harder for the benefit of your clan and fame will follow.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
You are the pride of your clan!
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
You do not need to ask for forgiveness by lowering your Clan Fame if you did not commit an offense.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/ai/others/FameManager/36480-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
You have committed a serious crime! No matter the circumstances, murder is inexcusable. I will forgive you this once, but do not do this again or the consequences will be dire...
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/ai/others/FameManager/36480-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/ai/others/FameManager/36480-07.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
Fame comes naturally when one takes an active part in battles with others. If you have clan members with the same goal, consider jointly participating in Castle Sieges, Fortress Battles and Clan Hall Battles. If you have party members who work extremely well together, try your luck in the Underground Coliseum Game or at the Festival of Darkness. If you are alone, demonstrate your prowess by participating in the Olympiad.<br>
|
||||
You can use Clan Reputation Points earned in any of the above games to help increase your clan's fame or improve your own PvP capabilities.
|
||||
</body></html>
|
||||
|
7
trunk/dist/game/data/scripts/ai/others/FameManager/36480.html
vendored
Normal file
7
trunk/dist/game/data/scripts/ai/others/FameManager/36480.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Reputation Manager Scipio:<br>
|
||||
Warrior, are you confident that your actions are undertaken for the sake of peace rather than to serve your own greed? If so, your reward shall be as great as your accomplishment. What do you seek?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager 36479-02.html">Examine PVP exclusive items.</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager decreasePk">Decrease PK count by 1 (5,000 Fame Points).</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest FameManager clanRep">Increase Clan Fame (1,000 Fame Points).</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest.</Button>
|
||||
</body></html>
|
127
trunk/dist/game/data/scripts/ai/others/FameManager/FameManager.java
vendored
Normal file
127
trunk/dist/game/data/scripts/ai/others/FameManager/FameManager.java
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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.FameManager;
|
||||
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.UserInfo;
|
||||
|
||||
import ai.AbstractNpcAI;
|
||||
|
||||
/**
|
||||
* Fame Manager AI.
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class FameManager extends AbstractNpcAI
|
||||
{
|
||||
// Npc
|
||||
private static final int[] FAME_MANAGER =
|
||||
{
|
||||
36479, // Rapidus
|
||||
36480, // Scipio
|
||||
};
|
||||
// Misc
|
||||
private static final int MIN_LVL = 40;
|
||||
private static final int DECREASE_COST = 5000;
|
||||
private static final int REPUTATION_COST = 1000;
|
||||
private static final int MIN_CLAN_LVL = 5;
|
||||
private static final int CLASS_LVL = 2;
|
||||
|
||||
private FameManager()
|
||||
{
|
||||
addStartNpc(FAME_MANAGER);
|
||||
addTalkId(FAME_MANAGER);
|
||||
addFirstTalkId(FAME_MANAGER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "36479.html":
|
||||
case "36479-02.html":
|
||||
case "36479-07.html":
|
||||
case "36480.html":
|
||||
case "36480-02.html":
|
||||
case "36480-07.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "decreasePk":
|
||||
{
|
||||
if (player.getPkKills() > 0)
|
||||
{
|
||||
if ((player.getFame() >= DECREASE_COST) && (player.getLevel() >= MIN_LVL) && (player.getClassId().level() >= CLASS_LVL))
|
||||
{
|
||||
player.setFame(player.getFame() - DECREASE_COST);
|
||||
player.setPkKills(player.getPkKills() - 1);
|
||||
player.sendPacket(new UserInfo(player));
|
||||
htmltext = npc.getId() + "-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = npc.getId() + "-01.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = npc.getId() + "-05.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "clanRep":
|
||||
{
|
||||
if ((player.getClan() != null) && (player.getClan().getLevel() >= MIN_CLAN_LVL))
|
||||
{
|
||||
if ((player.getFame() >= REPUTATION_COST) && (player.getLevel() >= MIN_LVL) && (player.getClassId().level() >= CLASS_LVL))
|
||||
{
|
||||
player.setFame(player.getFame() - REPUTATION_COST);
|
||||
player.getClan().addReputationScore(50, true);
|
||||
player.sendPacket(new UserInfo(player));
|
||||
player.sendPacket(SystemMessageId.YOU_HAVE_ACQUIRED_50_CLAN_REPUTATION);
|
||||
htmltext = npc.getId() + "-04.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = npc.getId() + "-01.html";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = npc.getId() + "-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
return ((player.getFame() > 0) && (player.getLevel() >= MIN_LVL) && (player.getClassId().level() >= CLASS_LVL)) ? npc.getId() + ".html" : npc.getId() + "-01.html";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new FameManager();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user