Small improvement for Link buypass.
This commit is contained in:
parent
8d396c902e
commit
f3249daaca
@ -5,5 +5,5 @@ You can remove an armor seal and re-seal it here. What is it that you wish done?
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 311262506">Remove seals from A-grade armor</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 311262507">Remove seals from A-grade accessories</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_exc_multisell 311262508">Put seals back on A-grade armor</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="link blacksmith_rupio001.htm">Back</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Back</button>
|
||||
</body></html>
|
||||
|
@ -3,7 +3,7 @@ Welcome! Your timing is impeccable, I just finished up a three-day job repairing
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link common/crafting_03.htm">R-grade set option</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link common/duals_03.htm">Craft a dual weapon</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link common/weapon_sa_01.htm">Bestow a Soul Crystal effect on a weapon</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="link blacksmith_recipe.htm">Craft an item</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link common/crafting_01.htm">Craft an item</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">Seal armor and accessories</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link cursed_to_unidentified.htm">Change a Bound Item to an Unidentified Item</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 5">Augment an item</Button>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<html><body>Captain Lucas:<br>
|
||||
Welcome, young friend. Welcome to Dion! I am Lucas, I handle security for Dion. Is this your first visit? Well, this here is a quiet and law-abiding town. I don't tolerate anyone disturbing the peace!<br>
|
||||
When you decide to move on, be warned that there's a passel of dangerous areas outside the town. You'd be well advised not to venture out alone. Now, you have a nice stay, ya hear!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Kamaloka">"I want to enter Kamaloka."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Can you tell me about the local lord and tax rate?"</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
|
@ -3,8 +3,8 @@ Young traveler, welcome to Oren! I am Mouen, responsible to the lord for the sec
|
||||
As you know, we are close to Aden's enemy, the land of Elmore, so security is tighter here than in most towns. Let me apologize now for any inconvenience this may cause you.<br>
|
||||
Please understand, the residents here are not very different in either appearance or customs, from our neighbors to the north. In fact, to those who make their living cutting down trees, national boundaries mean little. Off the top of my head, I can name at least 10 residents who have relatives or friends in Elmore!<br>
|
||||
That imposing castle on the northern hill, that's Oren Castle. Whenever I look at it, I pray that Elmore recognizes its power so our residents will not have to suffer the calamity of war ever again.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Kamaloka">"I want to enter Kamaloka."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Can you tell me about the local lord and tax rate?"</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<html><body>Captain Bathis:<br>
|
||||
Welcome, young traveler! I am Captain Bathis, the commander of the guard that provides security to both this village and the surrounding area. May I offer you a word of advice? What kind of outfit are you wearing? I understand the desire to be fashionable, particularly among the young...but armor is not for looks. Choose a set capable of protecting you in battle, regardless of what it looks like. Tsk tsk! Young people these days...<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Kamaloka">"I want to enter Kamaloka."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Tell me about the local lord and tax rate."</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<html><body>Captain Gosta:<br>
|
||||
Welcome to Heine, the jewel of Aden! I am Gosta, charged with maintaining the security of this city. Not only is Heine the capital of Innadril, it is also an important trading hub with Gludio and Giran.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Kamaloka">"I want to enter Kamaloka."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Tell me about the local lord and tax rate."</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<html><body>Captain Mathias:<br>
|
||||
Welcome to the capital of Elmore. You must be weary from your long travels; rest and be well in our city. But...do you feel the dark energy spreading these days? The king is worried, and has given me a secret mission regarding this.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Kamaloka">"I want to enter Kamaloka."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 4">"I've been hearing some ominous rumors. Anything that you would know?"</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Tell me about the local lord and tax rate."</Button>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<html><body>Captain Vishotsky:<br>
|
||||
If a village is peaceful, security must be tight, right? While we're on the subject, let me tell you that a neutral village like this one actually means more work for us guards. If we are vigilant, the inhabitants complain that we are being repressive. If we ease off, they complain that we are lazy. It's very difficult to maintain a happy medium, let me tell you!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_help.htm">"So, about Kamaloka..."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link guard/kamaloka_level.htm">"I want to view the Kamaloka list."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest Kamaloka">"I want to enter Kamaloka."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Tell me about the local lord and tax rate."</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
|
@ -3,6 +3,6 @@ Look, look here. Doesn't it look cramped in here? Right outside is the blue, ope
|
||||
I would escape this coop if I could, but then I can't with customers like you coming along... not that I'm saying you shouldn't come along! How would I get all my news otherwise?<br>
|
||||
Ah well... lucky you. Wandering around like that...<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Buy 3287800">"I want to buy a recipe."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h action="link common/crafting_02.htm">"I want to buy a recipe and main ingredients of S-grade or below."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Link common/crafting_02.htm">"I want to buy a recipe and main ingredients of S-grade or below."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_TerritoryStatus">"Can you tell me about the local lord and tax rate?"</Button>
|
||||
</body></html>
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.bypasshandlers;
|
||||
|
||||
import com.l2jmobius.gameserver.cache.HtmCache;
|
||||
import com.l2jmobius.gameserver.handler.IBypassHandler;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
@ -44,10 +45,9 @@ public class Link implements IBypassHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
final String filename = "data/html/" + htmlPath;
|
||||
final String content = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/" + htmlPath);
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(target != null ? target.getObjectId() : 0);
|
||||
html.setFile(activeChar.getHtmlPrefix(), filename);
|
||||
html.replace("%objectId%", String.valueOf(target != null ? target.getObjectId() : 0));
|
||||
html.setHtml(content.replace("%objectId%", String.valueOf(target != null ? target.getObjectId() : 0)));
|
||||
activeChar.sendPacket(html);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user