Jump to content
  • 0

Question

Posted

Hi Guys,

 

I want to create a AIO Skill Trainer. Is there a way to have one NPC to link and display the content of another NPC?

 

I know that I can create link between HTML to display whatever I want. However, what I need is an ability to open NPC A and through it open NPC B without the server thinking that I'm still taking to NPC A.

 

Thanks

4 answers to this question

Recommended Posts

  • 0
Posted

A Skill Trainer NPC needs to be listed in the SkillLearn.java file. I'm using L2J Server files H5. In that file you list NPCs ID and skill groups they can teach. For Example my Enchanter Skills NPC ID 400100 teaches skills from all Enchanter classes (Prophet, Elder etc...).

 

I want to create a AIO NPC to teach all class groups. But the problem is, without proper method I'm unable to format its HTML and function correctly. I cant just add my AIO into the SkillLearn.java and list all skill groups under its ID. If i do that I will have a NPC with a looong list of classes which would be difficult to navigate. I want to create a HTML which will open upon talking with my AIO and than be able to make a selection from which class group I want to learn skills from. For example:

 

Talk to AIO Skill Trainer ID 500500 -> displays 500500.htm -> make a selection to learn Enchanter skills -> Bypass to Enchanter class Skill Trainer ID 400100 -> only enchanter group skills are visible -> Happy Days

 

If I want AIO Skill trainer to teach other groups like Warriors or Rogue I also have to add those groups under its ID in SkillLearn.java. And this is causing problems because I get this:

 

Talk to AIO skill trainer -> displays 500500.htm -> Enchanter Skills -> Bypass to NPC 400100 -> all classes are visible not only the Enchanter ones

 

So I presume I need a way to interact with NPC 1 and use its htm to navigate to NPC 2 and make server think that I'm no longer speaking with NPC 1. Otherwise the server will read NPC 1 settings and not that of NPC 2.

 

Sorry for a lenghty and confusing post.

  • 0
Posted (edited)

Check the npc xml, you can define which class is able to use that npc, teachTo if im not wrong, you only have to put ids of classes. That way to can make all in one skill enchanter.

At least on aCis, I dont remember l2j structure, but I guess is the same.

 

No matter the htm, it's about the bypass itself. There is no X bypasses for each class, there is only one global.

 

And yes, you can link one npc to another, example bypass to manor htm.

<a action="bypass -h npc_%objectId%_Link manormanager/manager.htm">Return</a>
Edited by SweeTs
Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock