Mentee system adaptations.

Thanks to nasseka.
This commit is contained in:
MobiusDevelopment
2021-10-25 14:40:27 +00:00
parent 55d49fc9d6
commit bd51582cac
71 changed files with 75 additions and 85 deletions

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Milia:<br>
You have not started a quest yet. If you teleport to another place, you can't preceed with a mission properly.<br>
Even so, I need to confirm you really wish to go somewhere else. Can you check again, please?<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30006-Q561-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Milia:<br>
Welcome. I'm Gatekeeper Milia from Ivory Tower.<br>
Are you here on a mission from the Adeventure Guild? Then please start by clicking the <font color="LEVEL">[Quest]</font> button. I'll explain the mission and send you to your desired location.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_Link teleporter/30006-Q561-1.htm">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30006-Q561-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,6 +1,6 @@
<html><body>Gatekeeper Milia:<br>
Greetings! I'm Milia, the Ivory Tower Gatekeeper. Previously I worked in Oren, but recently I've been redeployed here. Nice to meet you! What can I do for you?<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> canteleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleportList">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">Go to the Keucereus Alliance Base</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">Ask about the wharf</Button>

View File

@@ -1,7 +1,7 @@
<html><body>Teleport Device:<br>
You have not started a quest yet. If you teleport to another place, you can't preceed with a mission properly.<br>
If you still want to teleport to another place, I'll send you.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30134-Q562-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,6 +1,6 @@
<html><body>Teleport Device:<br>
The Dark Elf Village is currently under quarantine due to an epidemic. Survivors from the village who are not carrying the disease have been relocated to the Talking Island. We recommend that visitors avoid the Dark Elf village until further notice.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleportList">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 002">"I want to exchange some Dimensional Diamonds."</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Link teleporter/30134-Q562.htm">Quest</Button>

View File

@@ -1,6 +1,6 @@
<html><body>Teleport Device:<br>
If you to carry out a mission from the Adeventure Guild, click the <font color="LEVEL">[Quest]</font> button to start the mission and press the Teleport Menu button to go your selected location.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_Link teleporter/30134-Q562-1.htm">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30134-Q562-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Bella:<br>
You have not started a quest yet. If you teleport to another place, you can't preceed with a mission properly.<br>
If you still want to teleport to another place, I'll send you.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30256-Q562-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Bella:<br>
I'm sorry for not being able to explain the other things I could do for you. Your mission from the Adventure Guild comes first.<br>
You can check the full menu after completing this mission.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleportList">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"I want to teleport to the Keucereus Alliance Base"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 002">"I want to trade Dimensional Diamonds."</Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Bella:<br>
Welcome! Beautiful weather, isn't it? Perfect for teleporting!<br>
Oh my, are you here on a mission from the Adeventure Guild? Then can you click the <font color="LEVEL">[Quest]</font> button to proceed with the mission? I will give you a short explanation and send you to your desired location.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_Link teleporter/30256-Q562-1.htm">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30256-Q562-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Elisa:<br>
You have not started a quest yet. If you teleport to another place, you can't preceed with a mission properly.<br>
If you still want to teleport to another place, I'll send you.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30848-Q561-Q562-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Elisa:<br>
I'm sorry for not being able to explain the other things I could do for you. Your mission from the Adventure Guild comes first.<br>
You can check the full menu after completing this mission.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleportList">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 002">"I want to exchange some Dimensional Diamonds."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest TeleportToRaceTrack" msg="811;Monster Race Track">"I want to go to the Arena and Monster Race Track for free."</Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Elisa:<br>
I'm Gatekeeper Elisa, one of the many sent from the Ivory Tower to watch over the Gates of Time and Space<br>
Are you here on a mission from the Adeventure Guild? Then please start by clicking the <font color="LEVEL">[Quest]</font> button. I'll explain the mission and send you to your desired location.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_Link teleporter/30848-Q561-Q562-1.htm">Teleport</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link teleporter/30848-Q561-Q562-2.htm">Check other menus</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">Quest</font></Button>

View File

@@ -1,7 +1,7 @@
<html><body>Gatekeeper Arisha:<br>
The Town of Rune isn't like any other Elmore town! Its sheer scale is so huge that town itself is comprised of two different levels. People can use dimensional gates to move about the city!<br>
So, where would you like to go? The library?<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleportList">Teleport</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">Go to the Library.</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>

View File

@@ -2,7 +2,7 @@
Oh, hi! I'm a gatekeeper like Arisha -- we've both been dispatched to help with teleportation within Rune in case of emergency, since it's such a big town.<br>
Did you see Arisha out there? I'm nice and cozy in here, but she ends up having to endure all kinds of weather. Poor Arisha. <br>
Oh, anyway. Did you need to go somewhere? Front of the temple?<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleportList">Teleport</Button>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">Teleport to the front of the Temple.</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>

View File

@@ -2,7 +2,7 @@
This is the pier for Gludio Airships. Airships headed for the continent of Gracia also arrive and depart from here.<br>
We tap into a strong aura of power and depend on favorable winds to allow the Airships to travel such a far distance.<br>
If you're not ready to leave for Gracia yet, you'd best go back.<br>
(If your <font color="LEVEL">Main Class</font> is Lv. 99 or below, you can teleport for free.)<br>
(Characters whose <font color="LEVEL">main class level is 1-99</font> can teleport for free.)<br>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h npc_%objectId%_showTeleports">"I want to teleport."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_teleport OTHER 0">"I want to go to Talking Island for free."</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h talk_select">Quest</Button>

View File

@@ -101,7 +101,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
private static final String LEVEL_UP_TITLE = "Mentee coin from Mentee leveling";
private static final String LEVEL_UP_BODY = "Your mentee %s has reached level %d, so you are receiving some Mentee Coin. After Mentee Coin has successfully been removed and placed into your inventory please be sure to delete this letter. If your mailbox is full when any future letters are sent to you cannot be delivered and you will not receive these items.";
private static final String MENTEE_ADDED_TITLE = "Congratulations on becoming a mentee.";
private static final String MENTEE_ADDED_BODY = "Greetings. This is the Mentor Guide.\n\nYou will experience a world of unlimited adventures with your mentor, Exciting, isn't it?\n\nWhen you graduate from mentee status (at level 105), you will receive a Mentee Certificate. If you bring it to me, I will give you a Diploma that you can exchange for R-grade equipment.";
private static final String MENTEE_ADDED_BODY = "Greetings. This is the Mentor Guide.\n\nYou will experience a world of unlimited adventures with your mentor, Exciting, isn't it?\n\nWhen you graduate from mentee status (at level 105), you will receive a graduation box.";
private static final String MENTEE_GRADUATE_TITLE = "Congratulations on your graduation";
private static final String MENTEE_GRADUATE_BODY = "Greetings! This is the Mentor Guide.\nCongratulations! Did you enjoy the time with a mentor? Here is a Mentee Certificate for graduating.\n\nFind me in town, and I'll give you a Diploma if you show me your Mentee Certificatee. You'll also get a small graduation gift!\n\nNow, on to your next Adventure!";
private static final String MENTEE_REWARD_LV_VAR = "MENTEE_REWARD_LV";
@@ -362,11 +362,6 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
}
handleMenteeSkills(player);
if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))
{
handleGraduateMentee(player);
}
}
@RegisterEvent(EventType.ON_PLAYER_LEVEL_CHANGED)
@@ -382,7 +377,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
}
checkLevelForReward(player); // Checking level to send a mail if is necessary
if ((player.getLevel() >= MAX_LEVEL) && player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))
if (player.getLevel() >= MAX_LEVEL)
{
handleGraduateMentee(player);
}
@@ -510,7 +505,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
}
final int amount = MENTEE_COINS.get(player.getLevel());
if ((amount > 0) && (player.getVariables().getInt(MENTEE_REWARD_LV_VAR, 0) < player.getLevel()) && player.isInCategory(CategoryType.SIXTH_CLASS_GROUP))
if ((amount > 0) && (player.getVariables().getInt(MENTEE_REWARD_LV_VAR, 0) < player.getLevel()))
{
player.getVariables().set(MENTEE_REWARD_LV_VAR, player.getLevel());
sendMail(mentor.getObjectId(), LEVEL_UP_TITLE, String.format(LEVEL_UP_BODY, player.getName(), player.getLevel()), MENTEE_MARK, amount);