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

    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • REBORN ETERNAL IL x10 WTS  1gb 8e (a lot in stock) DR set +6 180e Frintezza+6 200e Zaken+6 200e AQ+6 200e You must go first or Pufa middleman service
    • There's many reasons why it would be more NO than YES : Using NCSoft assets is a death wish, they can lawyer any LU3/Unity if they wanted, since it's a plain steal of intellectual property. It's an hobby, as you said it, and it's not specially about money. Money is a way to filter idiots/resellers, nothing more. It's really about trying to replicate old content and optimize it which I find it fun. I just align with the basic idea than an emulator emulates. When you launch Project64 and SuperMario 64, you don't expect to get something more than 120 stars and Bowser boss in the end - which should have been L2J project to begin with Even if I played a lot with TESCS from Morrowind, back in time, it's not enough to handle current engines, and I'm too lazy to learn Unity/Unreal Engine. Moreover, it would mean buying assets. While doing it alone would be a fail, coupling to L2J / L2 community would still be shitty (since the majority is RU/BR) ; people is only about fame/glory/reselling shit on back of others. Opening to others, the project would be leaked day 1, rebranded and resold. MMO genre is basically dead, and that's not a reboot of any game (l2/wow classic :D) which will turn the tide. Regarding L2 or an remastered version of it, you can obviously blatantly copy-cat it (as Propnight did for Dead by daylight).   All frenchies aren't supposed to do Expedition 33 :).
    • 190euro until last month, don't miss it.
  • 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