Jump to content
  • 0

Multiple Actions Using Action="xxx"


StealthyS4m

Question

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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...