Jump to content

Aioclan-Seller Exclusivo


Recommended Posts

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

Link to comment
Share on other sites

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

    • 2 Factor Authentication Code for 100% secure login. Account provided with full information (email, password, dob, gender, etc).
    • ready server for sale, also available for testing with ready and beautiful npc zone pvp with custom 2 epic core orfen lvl2 with all maps ready all quests work at 100% ready comm  board with buffer teleport gm shop service anyone interested send me a pm many more that I forget  Exp/Sp : x30 (Premium: x40)    Adena : x7 (Premium: x10)   Drop : x7 (Premium: 10)   Spoil : x7 (Premium: 10)   Seal Stones : x7 (Premium: 10)   Raid Boss EXP/SP : x10   Raid Boss Drop : x3 (Premium: x5)   Epic Boss Drop : x1 Enchants   Safe Enchant : +3   Max Enchant : +16   Normal Scroll of Enchant Chance : 55%   Blessed Scroll of Enchant Chance : 60% Game Features   GMShop (Max. B-Grade)   Mana Potions (1000 MP, 10 sec Cooldown)   NPC Buffer (Include all buffs, 2h duration)   Auto-learn skills (Except Divine Inspiration)   Global Gatekeeper   Skill Escape: 15 seconds or /unstuck   1st Class Transfer (Free)   2nd Class Transfer (Free)   3rd Class Transfer (700 halisha mark)   Subclass (Items required from Cabrio / Hallate / Kernon / Golkonda + Top B Weapon + 984 Cry B)   Subclass 5 Subclasses + Main (Previous subclasses to level 75 to add new one)   Noblesse (Full Retail Quest)   Buff Slots: 24 (28 with Divine Inspiration LVL 4)   Skill Sweeper Festival added (Scavenger level 36)   Skill Block Buff added   Maximum delevel to keep Skills: 10 Levels   Shift + Click to see Droplist   Global Shout & Trade Chat   Retail Geodata and Pathnodes   Seven Signs Retail   Merchant and Blacksmith of Mammon at towns   Dimensional Rift (Min. 3 people in party to enter - Instance)   Tyrannosaurus drop Top LS with fixed 50% chance   Fast Augmentation System (Using Life Stones from Inventory)   Chance of getting skills (Normal 1%, Mid 3%, High 5%, Top 10%)   Wedding System with 30 seconds teleport to husband/wife Olympiad & Siege   Olympiad circle 14 days. (Maximum Enchant +6)   Olympiads time 18:00 - 00:00 (GMT +3)   Non-class 5 minimum participants to begin   Class based disabled   Siege every week.   To gain the reward you need to keep the Castle 2 times. Clans, Alliances & Limits   Max Clients/PC: 2   Max Clan Members: 36   Alliances allowed (Max 1 Clans)   24H Clan Penalties   Alliance penalty reset at daily restart (3-5 AM)   To bid for a Clan Hall required Clan Level 6 Quests x3   Alliance with the Ketra Orcs   Alliance with the Varka Silenos   War with Ketra Orcs   War with the Varka Silenos   The Finest Food   A Powerful Primeval Creature   Legacy of Insolence   Exploration of Giants Cave Part 1   Exploration of Giants Cave Part 2   Seekers of the Holy Grail   Guardians of the Holy Grail   Hunt of the Golden Ram Mercenary Force   The Zero Hour   Delicious Top Choice Meat   Heart in Search of Power   Rise and Fall of the Elroki Tribe   Yoke of the Past     Renegade Boss (Monday to Friday 20:00)   All Raid Boss 18+1 hours random respawn   Core (Jewel +1 STR +1 DEX) Monday, Wednesday and Friday 20:00 - 21:00 (Maximum level allowed to enter Cruma Tower: 80)   Orfen (Jewel +1 INT +1 WIT) Monday to Friday, 20:00 - 21:00 (Maximum level allowed to enter Sea of Spores: 80)   Ant Queen Monday and Friday 21:00 - 22:00 (Maximum level allowed to enter Ant Nest: 80)   Zaken Monday,Wednesday,Friday 22:00 - 23:00 (Maximum level allowed to enter Devil's Isle: 80)   Frintezza Tuesday, Thursday and Sunday 22:00 – 23:00 (Need CC of 4 party and 7 people in each party min to join the lair, max is 8 party of 9 people each)   Baium (lvl80) Saturday 22:00 – 23:00   Antharas Every 2 Saturdays 22:00 - 23:00 Every 2 Sundays (alternating with Valakas) 22:00 – 23:00   Valakas Every 2 Saturdays 22:00 - 23:00 Every 2 Sundays (alternating with Antharas) 22:00 – 23:00   Subclass Raids (Cabrio, Kernon, Hallate, Golkonda) 18hours + 1 random   Noblesse Raid (Barakiel) 6 hours + 15min random   Varka’s Hero Shadith 8 hours + 30 mins random (4th lvl of alliance with Ketra)   Ketra’s Hero Hekaton 8 hours + 30 mins random (4th lvl of alliance with Varka)   Varka’s Commander Mos 8 hours + 30 mins random (5th lvl of alliance with Ketra)   Ketra’s Commander Tayr 8 hours + 30 mins random (5th lvl of alliance with Varka)
    • Have a great day! Unfortunately, we can not give you the codes at the moment, but they will be distributed as soon as trial is back online, thanks for understanding! Other users also can reply there for codes, we will send them out some time after.
    • Ok mates i would like to play a pridestyle server (interluide, gracie w/ever) Is there any such server online and worth playing?
  • 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