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

    • @Vedi don't give up bro. We are waiting for this project to come back stronger.  
    • Welcome to L2EpicFail Server developed by gamers for gamers!  OBT - 7th March 2024 at 18:00 GMT+0 GRAND OPENING - 14th March 2025 at 18:00 GMT+0 Website : https://l2epic.fail/ Discord : https://discord.gg/6hwhrkrHBG     Server Features and Rates Xp – 15x Sp – 9x Adena – 6x Drop – 2x Spoil - 2x Seal Stones drop -  3x   Epic Raid Boss drop - 1x Regular RBs - EXP 5x, SP 5x, drop 4x   Quest drop - 1x (some quests customized to 3x) Quest reward - 1x, Adena 3x, EXP 3x, SP 3x     Premium Account Xp +20% Sp +20% Adena +20% Drop +20% Spoil +20% Quest reward +20%   get by vote or donate World chat 20 times/day use ">" in chat. Buff Book outside of town. Applies to all accounts.     Special Features Classic interface ActiveAnticheat Vote System Missions Attendance check And more in information below     Noblesse There are 3 ways how to make noblesse 1 - Retail Quest with killing barakiel 2 - Modifed Quest, choose killing mobs for 100 items instead of barakiel 3 - Can be bought for Epic Coins     Raid Rank Killing regular Raids gives points according to the level of the RB to the clan of the player who killed the boss. At the end of every month, there will be rewards for top clans. For more info, follow our Discord.   monthly period killing RB = points to clan according to RB level rewards up to Valakas Necklace (not the first month) current statistics can be checked online     Epic Bosses & Respawns   Queen Ant 20 - 30 hours respawn window 1 hour always displayed in .epic auto PvP zone (max 43 level) HP boosted drop chance 40% guards, nurses lvl 40   Orfen 20 - 30 hours respawn window 1 hour always displayed in .epic auto PvP zone (max 56 level) HP boosted drop chance 40% earring gives +1 WIT, +1 INT   Core 20 - 30 hours respawn window 1 hour always displayed in .epic auto PvP zone (max 56 level) HP boosted drop chance 40% ring gives +1 STR, +1 DEX   Zaken 44 - 54 hours respawn window 1 hour always displayed in .epic auto PvP zone (max A grade) doors opened only 5 mins HP boosted   Baium Every Sunday 20:30 - 21:30 window 1 hour always displayed in .epic auto PvP zone (13 - 14th ToI level) regular HP   Frintezza Every Monday, Wednesday, Friday 20:00 - 21:00 window 1 hour always displayed in .epic auto PvP zone (all IT entrance) max 5 parties to entry max 500 range from NPC   Antharas Every two weeks on Saturday 21:00 - 22:00 window 1 hour always displayed in .epic auto PvP zone (bridge to heart)   Valakas Every two weeks on Saturday 21:00 - 22:00 window 1 hour always displayed in .epic auto PvP zone (Klein to heart)   every Epic RB drops Epic Medals equal to RB level x 10     Regular Bosses all regular RBs HP boosted M. def boosted a bit to give advantage to fighters all regular RBs respawn 24 - 30 hours every RB drops Epic Medals equal to RB level     Added Skills Mass Sweep - All Bounty Hunters 40+ Block Buff - All Characters, toggle Escape: 20 seconds - All Characters, no more SoEs   Skills autolearn. Losing skills after 16 levels of delevel. Max buffs 24 + 4 with books (no autolearn)     Augments NoGrade - 4% chance MidGrade - 5% chance HighGrade - 7% chance TopGrade - 6% chance   GM shop weapon/armor/jwl (max C grade) shots/spiritshots (max C grade) mana potions (500 MP, 5s)     NPC buffer all buffs, songs, dances including 3rd prof + resists 1 hour duration all chars Buff Book in inventory     Global Gatekeeper all towns including cata/necro ToI 3/5/7/10th     Olympiad Thursday to Saturday 18:00 - 23:50 UTC+0 period 7 days no class participants min 5 base class participants min 10 max enchant +6     Class Transfer 1st class 50k adena 2nd class 500k adena 3rd class 20kk adena + 700 Halisha marks (tradeable)     Noblesse Quest Quest retail like. Moonstone Shards, Demons Blood etc. quest drop boosted     Subclass Quest To get the quest, you have to be 75+ on your main character (start Reorin in Giran) Bring item from Cabrio chest Bring items from Hallate, Kernon and Golkonda chests Bring this back to Reorin Bring 984 B-grade crystals and top B weapon to Reorin Get low A-grade weapon as reward Done , you can take subclass (up to 5) from any Master in town     Clans all clan members get clan skills (no need for titles) max clan slots 65, max ppl in PvP zone 63 leave/dismiss penalty 0 hours max clans in ally 3     Others   max 3 windows per HWID (only one in PvP zone) protection after teleport for 20 seconds arrows and spellbooks drop turned off weight limit 10x, stackable enchants and LS champions blue (5x HP) min level for trade = 40, chat = 20 BoM/MoM spawned in towns Edited November 1, 2024 by NevesOma
    • Im searching to developer to help me 🙂 pm me 🙂
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...