Jump to content

Recommended Posts

Posted

Gente venho aqui disponibilizar esse mod aio por clan 
 
retirei o mod a rev project x ..

 

img do funcionamento

 

3rLVGeC.png

 

Index: config/other.properties
===================================================================
--- config/other.properties(wersja 309)
+++ config/other.properties(kopia robocza)

# Aio Buffers can speak to Class Master?
AllowAioUseClassMaster = False
+
+#MembersCount AIO CLAN SELLER
+AioClanMembers = 1
Index: head-src/com/l2jfrozen/config.java
===================================================================
--- head-src/com/l2jfrozen/config.java (revision 1118)
+++ head-src/com/l2jfrozen/config.java (working copy)

    public static boolean ALLOW_AIO_USE_GK;
    public static boolean ALLOW_AIO_USE_CM;
+public static int AIO_CLAN_MEMBERS;


ALLOW_AIO_USE_GK = Boolean.parseBoolean(otherSettings.getProperty("AllowAioUseGk", "False"));
    ALLOW_AIO_USE_CM = Boolean.parseBoolean(otherSettings.getProperty("AllowAioUseClassMaster", "False"));
+AIO_CLAN_MEMBERS = Integer.parseInt(otherSettings.getProperty("AioClanMembers", "10"));

Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2AioInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2AioInstance.java (revision 0)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2AioInstance.java (working copy)

package com.l2jsoft.gameserver.model.actor.instance;

import com.l2jsoft.Config;
import com.l2jsoft.gameserver.ai.CtrlIntention;
import com.l2jsoft.gameserver.ai.L2CharacterAI;
import com.l2jsoft.gameserver.model.*;
import com.l2jsoft.gameserver.model.actor.appearance.PcAppearance;
import com.l2jsoft.gameserver.model.actor.stat.PcStat;
import com.l2jsoft.gameserver.network.SystemMessageId;
import com.l2jsoft.gameserver.network.serverpackets.*;
import com.l2jsoft.gameserver.templates.L2NpcTemplate;
import java.util.StringTokenizer;

// Referenced classes of package com.l2jfrozen.gameserver.model.actor.instance:
//            L2FolkInstance, L2PcInstance, L2ItemInstance

public class L2AioInstance extends L2FolkInstance
{

    public L2AioInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
    }

    public void onAction(L2PcInstance player)
    {
        if(!canTarget(player))
            return;
        player.setLastFolkNPC(this);
        if(this != player.getTarget())
        {
            player.setTarget(this);
            MyTargetSelected my = new MyTargetSelected(getObjectId(), 0);
            player.sendPacket(my);
            my = null;
            player.sendPacket(new ValidateLocation(this));
        } else
        if(!canInteract(player))
            player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
        else
            showMessageWindow(player);
        player.sendPacket(ActionFailed.STATIC_PACKET);
    }

    private void showMessageWindow(L2PcInstance player)
    {
        String filename = "data/html/Aio_clan/aioseller.htm";
        NpcHtmlMessage html = new NpcHtmlMessage(1);
        html.setFile(filename);
        html.replace("%objectId%", String.valueOf(getObjectId()));
        html.replace("%servername%", Config.ALT_Server_Name);
        player.sendPacket(html);
        filename = null;
        html = null;
    }

    public void onBypassFeedback(L2PcInstance player, String command)
    {
        if(command.startsWith("add_aio"))
        {
            StringTokenizer st = new StringTokenizer(command);
            st.nextToken();
            String priceId = null;
            String priceCount = null;
            String time = null;
            int aioPriceId = 0;
            int aioPriceCount = 0;
            int aioTime = 0;
            if(st.hasMoreTokens())
            {
                priceId = st.nextToken();
                priceCount = st.nextToken();
                time = st.nextToken();
                try
                {
                    aioPriceId = Integer.parseInt(priceId);
                    aioPriceCount = Integer.parseInt(priceCount);
                    aioTime = Integer.parseInt(time);
                }
                catch(NumberFormatException numberformatexception) { }
            } else
            {
                _log.warning((new StringBuilder()).append("Could not update aio status of player ").append(player.getName()).toString());
                return;
            }
            makeAioCharacter(player, aioPriceId, aioPriceCount, aioTime);
        } else
        if(command.startsWith("remove_aio"))
            removeAio(player);
        showMessageWindow(player);
    }

    public void makeAioCharacter(L2PcInstance player, int itemId, int itemCount, int aioTime)
    {
        L2ItemInstance itemInstance = player.getInventory().getItemByItemId(itemId);
        if(itemInstance == null || !itemInstance.isStackable() && player.isClanLeader() && player.getInventory().getInventoryItemCount(itemId, -1) < itemCount)
        {
            player.sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_ITEMS));
            player.sendMessage("SYS: Clan Leader not receive Aiox! 1");
            return;
        }
        if(itemInstance.isStackable() && player.isClanLeader())
        {
            if(!player.destroyItemByItemId("Aio", itemId, itemCount, player.getTarget(), true))
            {
                player.sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_ITEMS));
                player.sendMessage("SYS: Clan Leader not receive Aiox! 2");
            }
        } else
        {
            for(int i = 0; i < itemCount; i++)
                player.destroyItemByItemId("Aio", itemId, 1, player.getTarget(), true);

        }
        doAio(player, aioTime);
    }

    public void doAio(L2PcInstance player, int days)
    {
        if(player == null)
            return;
        if(player.getClan() != null && player.getClan().getMembersCount() >= Config.AIO_CLAN_MEMBERS)
        {
            if(player.isAio())
                player.broadcastUserInfo();
            else
            nameChanger("[AIO]", player);
            player.setAio(true);
            player.setEndTime("aio", days);
            if(Config.ALLOW_AIO_NCOLOR && player.isAio())
                player.getAppearance().setNameColor(Config.AIO_NCOLOR);
            if(Config.ALLOW_AIO_TCOLOR && player.isAio())
                player.getAppearance().setTitleColor(Config.AIO_TCOLOR);
            
            /* Give Aio Dual */
            L2ItemInstance item;
            if(player.getInventory().getItemByItemId(Config.DUAL_AIO_ID) == null)
            {
            item = player.getInventory().addItem("", Config.DUAL_AIO_ID, 1, player, null);
            InventoryUpdate iu = new InventoryUpdate();
            iu.addItem(item);
            player.sendPacket(iu);
            }
            
            player.rewardAioSkills();
            player.sendPacket(new EtcStatusUpdate(player));
            player.getStat().addExp(player.getStat().getExpForLevel(81));
            player.broadcastPacket(new SocialAction(player.getObjectId(), 16));
            player.sendSkillList();
            player.broadcastUserInfo();
            player.sendMessage("SYS: You are now an Aio, Congratulations!");
        } else
        {
            player.sendMessage("SYS: You must be a member of a Clan.");
            player.sendMessage("SYS: The Clan has to have at the minimum members online!");
        }
    }

    public void removeAio(L2PcInstance player)
    {
        if(!player.isAio())
        {
            player.sendMessage("You are not an AIO.");
            return;
        } else
        {
            player.setAio(false);
            player.setAioEndTime(0L);
            player.getAppearance().setNameColor(0xffffff);
            player.getAppearance().setTitleColor(0xffff77);
            player.getWarehouse().destroyItemByItemId("", Config.DUAL_AIO_ID, 1, player, null);
            L2ItemInstance item = player.getInventory().destroyItemByItemId("", Config.DUAL_AIO_ID, 1, player, null);
            InventoryUpdate iu = new InventoryUpdate();
            iu.addItem(item);
            player.sendPacket(iu);
            player.lostAioSkills();
            player.sendPacket(new EtcStatusUpdate(player));
            player.getStat().removeExp(player.getStat().getExpForLevel(81));
            player.broadcastPacket(new SocialAction(player.getObjectId(), 16));
            player.sendSkillList();
            player.sendMessage("Now You are not an Aio..");
            player.broadcastUserInfo();
            return;
        }
    }

    public static void nameChanger(String ReplaceName, L2PcInstance player)
    {
        if(ReplaceName == null || ReplaceName == "" || player == null)
            return;
        String BitchName = player.getName();
        String DaBitchRenamed = (new StringBuilder()).append(ReplaceName).append(BitchName).toString();
        player.setName(DaBitchRenamed);
        player.broadcastUserInfo();
        if(player.getClan() != null)
            player.getClan().broadcastClanStatus();
    }
}


Index: data/html/Aio_clan/aioseller.htm
===================================================================
--- data/html/Aio_clan/aioseller.htm (revision 0)
+++ data/html/Aio_clan/aioseller.htm (working copy)

<html>
<body><title>Aio Clan Special</title>
<head>
<html>
<body>
<center><br>
<img src="l2font-e.replay_logo-e" width=255 height=60>
<center>
<table>
<tr>
<td><img src="icon.etc_alphabet_a_i00" width=32 height=32 align="center"></td>
<td><img src="icon.etc_alphabet_r_i00" width=32 height=32 align="center"></td>
<td><img src="icon.etc_alphabet_c_i00" width=32 height=32 align="center"></td>
<td><img src="icon.etc_alphabet_a_i00" width=32 height=32 align="center"></td>
<td><img src="icon.etc_alphabet_d_i00" width=32 height=32 align="center"></td>
<td><img src="icon.etc_alphabet_i_i00" width=32 height=32 align="center"></td>
<td><img src="icon.etc_alphabet_a_i00" width=32 height=32 align="center"></td>
</tr>
</table>
<br><br>
<font color=D2691E>1) Player receiving Aiox need to be active in <font color="LEVEL">'Clan'</font></td><BR>
<font color=D2691E>2) Clan need <font color="LEVEL">'25'</font> or more <font color="LEVEL">Clan Members Online.</font></td><BR>
<font color=D2691E>3) Clan Leader not receive Aiox or <font color="LEVEL">'Clan Remove'</font></td><BR>

_______________________________<br1>
<TABLE border=0 width=180>
<TR>
    <TD width=32 height=32><CENTER><img src="L2UI_CH3.bloodhood_icon02" width=32 height=32></CENTER></TD>
    <TD><font color=99FF00>Free Aio Clan</a></font>        <FONT COLOR="99FF00">Members Online</FONT></TD>
</TR>
<br>
</table>
<br>
<center>
<table border="0" cellspacing="0">

    <tr>
    <td valign=top><img src=icon.skill1087 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1036 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1243 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1033 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1303 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1035 width=32 height=32 align=left></td>
    </tr>

    <tr>
    <td valign=top><img src=icon.skill1078 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1085 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1059 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1352 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1259 width=32 height=32 align=left></td>
    <td valign=top><img src=icon.skill1393 width=32 height=32 align=left></td>
    </tr>
<br><br>
</table>
_______________________________<br1>
<br><br>
<td><button value="Aiox 1 Days" action="bypass -h npc_%objectId%_add_aio 57 1 1" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"><br>
<br></body>
</center>
</html>
INSERT INTO `custom_npc` VALUES ('55055', '31113', 'Marramed', '1', 'AIO CLAN', '1', 'Monster.death_knight', '22.00', '18.00', '70', 'male', 'L2Aio', '40', '25563', '1111', '111.00', '1.00', '40', '40', '40', '40', '40', '40', '40', '40', '40', '40', '40', '40', '40', '0', '40', '0', '0', '0', '0', '120', null, null, '0', '0', 'LAST_HIT');
 

Creditos Mod : Project-x // HedHot

Creditor remoção e adptçao : Lucasdesigner

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • @ERROR501, I’ve been waiting for the “big update” since last October, and at this point, it’s starting to feel like an empty promise. You’re better off implementing your own minimum detection server-side instead of relying on AAC to fix their issues; despite what their website claims about blocking everything, it clearly falls short.
    • We are taking new orders. Kindly DM us on Telegram!
    • Hello everyone!  I’d like to share an experience that might serve as a lesson for anyone planning to work with third-party protection services—specifically, Active Anticheat. I know this might sound like a strange job request, but  our player base mostly consists of veteran of Lineage 2 players who are used to using bots as part of their gameplay experience. As server administrators, we decided to adapt to our users. That’s why we approached Active Anticheat with a proposal: Allow bot usage under certain conditions. We explained everything in detail, and they agreed.   📌 February – A Promising Start On February 16th, we contacted Active Anticheat to request a custom antibot system. The idea was to kick players using bots during specific times (like sieges), but allow them to log back in without bots afterward. After a few discussions, both sides agreed on the following solution: Bots allowed during regular days. During siege events, anyone using a bot would be automatically kicked. Kicked players could log back in without using bots. The deal was priced at $5,000, which we already paid on March 31st, 2025. Active Anticheat promised delivery by the end of April, or at the latest, by May. Screenshot:  Deal 1 Deal 2   🕐 May – The Delays Begin We followed up multiple times in May, only to finally hear back on May 26th: “It won’t be ready this month. But we’re working on a big update coming in June.” That update? Still nowhere to be seen, even as I’m writing this post. Screenshot:  Delayed   🔁 Plan B – L2Walker Rejected, Adrenaline Offered With our server launch schedule getting tighter, we needed an alternative. At the end of June, we asked Active Anticheat: “Can you at least allow L2Walker access to the server?” Their response on June 28th: “L2Walker can’t be allowed. But we can allow Adrenaline (free & paid version) and L2Helper for $2,000 + $300 (for a new license).” We agreed, hoping it would be a temporary fix while waiting for the promised “big update” (which we had already paid $5,000 for, remember?). Screenshot:  New Offer 1 New Offer 2 New Offer 3   ❌ AA Failed Their setup took about a week. We ran 2–3 rounds of testing using clean clients. The result? Adrenaline (both free and paid) couldn’t connect to our server. It couldn’t detect the Lineage 2 client, because the custom Active Anticheat protection was blocking it. We reached out to Active Anticheat for support, and their response? “You should contact Adrenaline support to enable free Adrenaline for your server. Adrenaline blocks it by default when Active Anticheat is detected.” Then we tested Premium Adrenaline. And it still didn’t work. Active Anticheat stood firm: “It’s not our fault. Adrenaline blocked us—not the other way around.” Screenshot: Failed 1 Failed 2   💸 The Bitter Reality Today, we’re still waiting for answers. No reply. No fix. No update. No refund. We’ve spent a total of $7,300 and received nothing functional in return. And this, despite their full agreement with our initial plan.  
  • 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