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

    • Lol good joke.   If I'd be the one contacting yo then I'd say at least 50% in advance because you can basically just fuck off when things doesn't go your way, and then you as a developer just wasted days or even weeks of time with development.
    • "Just make your own game!" sounds simple until you’ve tried it. I did, with Epic Dragon World and learned the hard way that "open source" often means "free labor for resellers." The MIT license became a buffet for people to grab code, rebrand it and ghost the project. Even basic collaboration collapsed because everyone wanted their vision, not *a* vision. NCSoft’s lawyers aren’t theoretical. They’re a sword of Damocles. Even if you rebuild a client from scratch, if it feels like Lineage 2, they’ll come knocking. Ask the Chrono Trigger fangame corpses how that goes. MMOs are hospice care. The genre’s on life support, kept alive by whales and nostalgia. Look at Throne and Liberty, NCSoft’s own "successor" to L2, flopping harder than a 2004 PKer in ToI. Classic reboots (WoW, L2) are bandaids, not resurrections. This is the hobby. Optimizing old systems, reverse-engineering spaghetti code and preserving janky mechanics is the fun part. Monetizing it turns it into customer service hell. No thanks. Community? What community? The L2 scene is 90% resellers, 10% players who’ll quit the second they don’t get +16 on day one. Both asking how to install Java and why running the uncompiled server does not work.
    • Dear players, Open beta test for C3 begins today at 19:00 server time (GMT +2). 💰 All participants who find bugs during OBT will be rewarded with Coin of Luck (CoL): - 1 CoL for each staticmesh issue found — e.g., walking through textures, etc., - 2 CoL or more for server-side issues, depending on their severity., We strongly recommend reviewing the quest list - when switching to Chronicle 3, the total number of quests should match the number shown in the upper right corner of the window and correspond to the quest count from Chronicle 2. To log into the game, use the same data you use to access the Airin server. 📌 Download client: Google Drive
    • 🔥 Sale Alert! 🔥 Twitter Accounts with 50 Followers — now on SALE! Looking to launch a project or warm up your account base fast? We’ve got starter Twitter accounts with ~50 followers at a sweet price. 💰 Limited-time offer – while stock lasts! ✅ Organic-Looking ✅ Clean & Safe ✅ Perfect for boosting credibility 📦 Instant delivery
  • 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