Jump to content
  • 0

SkillTrainer CommunityBoard


Question

Posted

Hi Guys, do you know how can i implement a button in my communityboard that when you click in that button, a skilltrainer windows opens?.

I hope you can help me.

Im using L2jsunrise

THanks!

5 answers to this question

Recommended Posts

  • 0
Posted
8 minutes ago, barao45 said:

Hi Guys, do you know how can i implement a button in my communityboard that when you click in that button, a skilltrainer windows opens?.

I hope you can help me.

Im using L2jsunrise

THanks!

try this: <td align=center><button value="Skills" action="bypass -h npc_%objectId%_SkillList" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>

  • 0
Posted

if (bypass.equals("bp_skillenchant"))
            showEnchantSkillList(activeChar);

 

========================

 

    public static void showEnchantSkillList(Player player)
    {
        ExEnchantSkillList esl = new ExEnchantSkillList();
        esl.setCommand(true);
        boolean empty = true;
        
        List<L2EnchantSkillLearn> esll = SkillTreeTable.getInstance().getAvailableEnchantSkills(player);
        for (L2EnchantSkillLearn skill : esll)
        {
            L2Skill sk = SkillTable.getInstance().getInfo(skill.getId(), skill.getLevel());
            if (sk == null)
                continue;
            
            L2EnchantSkillData data = SkillTreeTable.getInstance().getEnchantSkillData(skill.getEnchant());
            if (data == null)
                continue;
            
            if (data.getRate(80) == 0)
                continue;
            
            if (skill.getLevel() <= 115 || (skill.getLevel() >= 140 && skill.getLevel() <= 155))
                esl.addSkill(skill.getId(), skill.getLevel(), data.getCostSp(), data.getCostExp());
            empty = false;
        }
        
        if (empty)
        {
            player.sendPacket(SystemMessageId.THERE_IS_NO_SKILL_THAT_ENABLES_ENCHANT);
            
            if (player.getLevel() < 74)
                player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.DO_NOT_HAVE_FURTHER_SKILLS_TO_LEARN_S1).addNumber(74));
            else
                player.sendPacket(SystemMessageId.NO_MORE_SKILLS_TO_LEARN);
        }
        else
            player.sendPacket(esl);
  
        player.sendPacket(ActionFailed.STATIC_PACKET);
    }

============================================================

 

for me this is working 

  • 0
Posted
On 8/28/2021 at 3:29 PM, arm4729 said:

if (bypass.equals("bp_skillenchant"))
            showEnchantSkillList(activeChar);

 

========================

 

    public static void showEnchantSkillList(Player player)
    {
        ExEnchantSkillList esl = new ExEnchantSkillList();
        esl.setCommand(true);
        boolean empty = true;
        
        List<L2EnchantSkillLearn> esll = SkillTreeTable.getInstance().getAvailableEnchantSkills(player);
        for (L2EnchantSkillLearn skill : esll)
        {
            L2Skill sk = SkillTable.getInstance().getInfo(skill.getId(), skill.getLevel());
            if (sk == null)
                continue;
            
            L2EnchantSkillData data = SkillTreeTable.getInstance().getEnchantSkillData(skill.getEnchant());
            if (data == null)
                continue;
            
            if (data.getRate(80) == 0)
                continue;
            
            if (skill.getLevel() <= 115 || (skill.getLevel() >= 140 && skill.getLevel() <= 155))
                esl.addSkill(skill.getId(), skill.getLevel(), data.getCostSp(), data.getCostExp());
            empty = false;
        }
        
        if (empty)
        {
            player.sendPacket(SystemMessageId.THERE_IS_NO_SKILL_THAT_ENABLES_ENCHANT);
            
            if (player.getLevel() < 74)
                player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.DO_NOT_HAVE_FURTHER_SKILLS_TO_LEARN_S1).addNumber(74));
            else
                player.sendPacket(SystemMessageId.NO_MORE_SKILLS_TO_LEARN);
        }
        else
            player.sendPacket(esl);
  
        player.sendPacket(ActionFailed.STATIC_PACKET);
    }

============================================================

 

for me this is working 

 

 

Thanks Arm, but my interest is to add a tab link in community to show the Player Skills Learn Windows. I think that you shared the class to implement a Skill Enchanter.

Do you know how to show the Skills Learn?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Wts adena 1kk = 10$  discord - GODDARDSHOP 
    • Thanks for the feedback! We’ve actually rented their infrastructure to ensure a high-quality gaming experience (We couldn't find any better files out there). Developer @FixerRay will also be there to assist us 🙂
  • 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