Jump to content

Question

Posted

Hello guys,
I am using l2jacis instance buffer and I want to add buff sets(Mage buffs,Fighter buffs) this is the line I am trying to work with
<a action=\"bypass -h npc_%objectId%_getbuff 1204 2\">Mage Buffs</a> , but I am not sure how to make multiple actions.
I tried seperating buffs by colonn,semicolon,but it didn't work out.I know that you can get action value and do something in Java,for example:
<a action=\"1\">Wind Walk</a>
if(action == 1){
doSomething();
},
but I am not sure how to get this action value.
This is the link to my instance buffer: http://www.maxcheaters.com/topic/115825-simple-instanced-buffer/
Thanks for help guys.

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

You can always add such a ugly bypass

       else if (currentCommand.equalsIgnoreCase("getbuffs"))
        {
            String[] Array = command.substring(currentCommand.length()).trim().split(";");
            for(String buffs : Array)
            {
                String[] idLevelString = buffs.split(" ");
                int buff_id = Integer.parseInt(idLevelString[0]);
                int buff_level = idLevelString.length > 1 ? Integer.parseInt(idLevelString[1]) : 1;
            
                if (buff_id != 0)
                {
                    MagicSkillUse msu = new MagicSkillUse(this, player, buff_id, buff_level, 100, 0);
                    SkillTable.getInstance().getInfo(buff_id, buff_level).getEffects(this, player);
                    player.broadcastPacket(msu);
                }
            }
        }

So, you will put it like

<a action=\"bypass -h npc_%objectId%_getbuffs 1204 2;1204 1;1010 5;199 2\">
Edited by SweeTs
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..