Welcome, Guest. Please login or register.

Recent Posts

Pages: [1] 2 3 ... 10
1
Svn,Timeline,Compiled Links / Re: SVN and Compiled versions
« Last post by AbsolutePower on November 15, 2022, 06:18:04 pm »
new compiled is out!!! latest revision 578 :)
2
Private Servers / Re: [L2OFF] L2MetaWars
« Last post by MetaMan on November 15, 2022, 12:17:05 pm »
Dear Lineage 2 players the MetaWars project will transfer to the classic client chronicle but the gameplay will be interlude, it was a very difficult decision because the project was almost complete but because people are happy with this chronicle (classic) we decided to do this. The transition will, of course, delay the Grand Opening, we estimate about two months in addition, stay tuned on discord.

Our features:
We use classic Interlude rules, no Kamaels, new races or new gear (maximum S gr like it should be on Interlude). But yes, we are using a new modern client, and we add new content to make your gameplay more varied and interesting.
So if you before play only on default Interlude servers it will be not a problem for you.
⚔️ Grand Opening Date: 18th of February.
💥 We changed Max 2 Windows per HWID.
✅NO FREE EXP/ITEMS -  you have to earn everything with effort.
✅NO P2W - No boosters for donations, you have to get everything by yourself.
🆙Discord: https://discord.gg/4kj46MwnCX
♦️ https://l2metawars.com/
3
General Discussion / hello I hope it goes well can you help me to adapt a code
« Last post by progressive on November 14, 2022, 12:43:42 am »
Code: [Select]
### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/Config.java
===================================================================
--- head-src/com/l2jfrozen/Config.java    (revision 1004)
+++ head-src/com/l2jfrozen/Config.java    (working copy)
@@ -2398,6 +2398,7 @@
    public static String FARM2_CUSTOM_MESSAGE;
    public static String PVP1_CUSTOM_MESSAGE;
    public static String PVP2_CUSTOM_MESSAGE;
+    public static boolean SHOW_NPC_ENCHANT;

    //============================================================
    public static void loadL2JFrozenConfig()
@@ -2517,6 +2518,7 @@
            FARM2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!");
            PVP1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!");
            PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!");
+            SHOW_NPC_ENCHANT = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ShowNpcEnchantWeapon", "False"));
        }
        catch(Exception e)
        {
Index: config/functions/l2jfrozen.properties
===================================================================
--- config/functions/l2jfrozen.properties    (revision 1004)
+++ config/functions/l2jfrozen.properties    (working copy)
@@ -280,4 +280,9 @@
ProtectorSkillLevel = 13
ProtectorSkillTime = 600
# Npc Protector Message
-ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules!
\ No newline at end of file
+ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules!
+
+# Show random enchant weapon effect for NPC's.
+# Enchantment is only visual, range is 4-21.
+# Default: False
+ShowNpcEnchantWeapon = False
Index: head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java    (revision 1004)
+++ head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java    (working copy)
@@ -122,6 +122,7 @@
                        "matkspd",
                        "rhand",
                        "lhand",
+                        "enchant",
                        "armor",
                        "walkspd",
                        "runspd",
@@ -184,6 +185,7 @@
                            "matkspd",
                            "rhand",
                            "lhand",
+                            "enchant",
                            "armor",
                            "walkspd",
                            "runspd",
@@ -671,6 +673,7 @@
            npcDat.set("aggroRange", NpcData.getInt("aggro"));
            npcDat.set("rhand", NpcData.getInt("rhand"));
            npcDat.set("lhand", NpcData.getInt("lhand"));
+            npcDat.set("enchant", NpcData.getInt("enchant"));
            npcDat.set("armor", NpcData.getInt("armor"));
            npcDat.set("baseWalkSpd", NpcData.getInt("walkspd"));
            npcDat.set("baseRunSpd", NpcData.getInt("runspd"));
@@ -781,6 +784,7 @@
                    "matkspd",
                    "rhand",
                    "lhand",
+                    "enchant",
                    "armor",
                    "walkspd",
                    "runspd",
Index: head-src/com/l2jfrozen/gameserver/templates/L2NpcTemplate.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/templates/L2NpcTemplate.java    (revision 1004)
+++ head-src/com/l2jfrozen/gameserver/templates/L2NpcTemplate.java    (working copy)
@@ -64,6 +64,7 @@
    public final int aggroRange;
    public final int rhand;
    public final int lhand;
+    public final int enchantEffect;
    public final int armor;
    public final String factionId;
    public final int factionRange;
@@ -147,6 +148,7 @@
        aggroRange = set.getInteger("aggroRange");
        rhand = set.getInteger("rhand");
        lhand = set.getInteger("lhand");
+        enchantEffect = set.getInteger("enchant");
        armor = set.getInteger("armor");
        String f = set.getString("factionId", null);
        if(f == null)
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2NpcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2NpcInstance.java    (revision 1004)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2NpcInstance.java    (working copy)
@@ -160,6 +160,8 @@
    /** The _current r hand id. */
    private int _currentRHandId; // normally this shouldn't change from the template, but there exist exceptions

+    private int _currentEnchant;
+
    /** The _current collision height. */
    private int _currentCollisionHeight; // used for npc grow effect skills

@@ -355,6 +357,7 @@
        // initialize the "current" equipment
        _currentLHandId = getTemplate().lhand;
        _currentRHandId = getTemplate().rhand;
+        _currentEnchant = Config.SHOW_NPC_ENCHANT ? Rnd.get(4,21) : getTemplate().enchantEffect;
        // initialize the "current" collisions
        _currentCollisionHeight = getTemplate().collisionHeight;
        _currentCollisionRadius = getTemplate().collisionRadius;
@@ -609,6 +612,11 @@
        return _currentRHandId;
    }

+    public int getEnchantEffect()
+    {
+        return _currentEnchant;
+    }
+
    /**
     * Return True if this L2NpcInstance has drops that can be sweeped.<BR>
     * <BR>
@@ -3247,6 +3255,13 @@
        _currentRHandId = newWeaponId;
    }

+    public void setLRHandId(int newLWeaponId, int newRWeaponId)
+    {
+        _currentRHandId = newRWeaponId;
+        _currentLHandId = newLWeaponId;
+        updateAbnormalEffect();
+    }
+
    /**
     * Sets the collision height.
     * @param height the new collision height
Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java    (revision 1004)
+++ head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java    (working copy)
@@ -58,7 +58,7 @@
    private int _runSpd, _walkSpd, _swimRunSpd, _swimWalkSpd, _flRunSpd, _flWalkSpd, _flyRunSpd, _flyWalkSpd;

    /** The _lhand. */
-    private int _rhand, _lhand;
+    private int _rhand, _lhand, _enchantEffect;

    /** The _collision radius. */
    private int _collisionHeight, _collisionRadius;
@@ -95,6 +95,7 @@
        _isAttackable = cha.isAutoAttackable(attacker);
        _rhand = cha.getRightHandItem();
        _lhand = cha.getLeftHandItem();
+        _enchantEffect = cha.getEnchantEffect();
        _isSummoned = false;
        _collisionHeight = cha.getCollisionHeight();
        _collisionRadius = cha.getCollisionRadius();
@@ -240,7 +241,7 @@
        writeC(0x00); // C3  team circle 1-blue, 2-red
        writeF(_collisionRadius);
        writeF(_collisionHeight);
-        writeD(0x00); // C4
+        writeD(_enchantEffect);
        writeD(0x00); // C6
    }
4
General Discussion / Re: give me a hand to add this argument mods
« Last post by AbsolutePower on November 12, 2022, 11:43:43 pm »
hello I am trying to add an argu mods that allows to choose argu help me
https://ibb.co/vqwr3c5


StatusUpdate(player.getObjectId());

getAugsBought getter is missing from L2PcInstance  , copy and paste it from your argu mode it should be there.
5
General Discussion / give me a hand to add this argument mods
« Last post by progressive on November 12, 2022, 10:51:07 pm »
hello I am trying to add an argu mods that allows to choose argu help me
https://ibb.co/vqwr3c5

6
well thanks you couldn't solve it your way the same thanks

algo de aca estoy poniendo mal que no logro desifrar
Code: [Select]
   private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?, maxHp=?, curHp=?, maxCp=?, curCp=?, maxMp=?, curMp=?, str=?, con=?, dex=?, _int=?, men=?, wit=?, face=?, hairStyle=?, hairColor=?, heading=?, x=?, y=?, z=?, exp=?, expBeforeDeath=?, sp=?, karma=?, pvpkills=?, pkkills=?, rec_have=?, rec_left=?, clanid=?, maxload=?, race=?, classid=?, deletetime=?, title=?, accesslevel=?, online=?, isin7sdungeon=?, clan_privs=?, wantspeace=?, base_class=?, onlinetime=?, in_jail=?, jail_timer=?, newbie=?, nobless=?, power_grade=?, subpledge=?, last_recom_date=?, lvl_joined_academy=?, apprentice=?, sponsor=?, varka_ketra_ally=?, clan_join_expiry_time=?, clan_create_expiry_time=?, char_name=?, vip=?,vip_end=?, death_penalty_level=?, chat_filter_count=? WHERE obj_id=?";
   private static final String RESTORE_CHARACTER = "SELECT account_name, obj_Id, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, acc, crit, evasion, mAtk, mDef, mSpd, pAtk, pDef, pSpd, runSpd, walkSpd, str, con, dex, _int, men, wit, face, hairStyle, hairColor, sex, heading, x, y, z, movement_multiplier, attack_speed_multiplier, colRad, colHeight, exp, expBeforeDeath, sp, karma, pvpkills, pkkills, clanid, maxload, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, in_jail, jail_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally, clan_join_expiry_time, clan_create_expiry_time, death_penalty_level, vip,vip_end, hero, donator, chatban_timer, chatban_reason, chat_filter_count FROM characters WHERE obj_Id=?";
7
I don't understand what you want to say I want to add the vip system


I adapted a vip system and an aio but I can't solve that part


you mistake the sorcel throws me
com.l2jhellas.gameserver.model.actor.instance.L2PcInstance: Could not store char base data:
error will be fixed in free revision soon,  you dont understand? go to rates(config )  , enable UsePremiumServices and try with admin //premium_menu and .premium for  normal players.
8
Guides / Re: How to create a lineage 2 server (Compile-Set up-Login)
« Last post by progressive on November 11, 2022, 05:04:09 pm »
hello I can not access the svn and I do not load the subeclipse any solution
9
I don't understand what you want to say I want to add the vip system


I adapted a vip system and an aio but I can't solve that part


you mistake the sorcel throws me
com.l2jhellas.gameserver.model.actor.instance.L2PcInstance: Could not store char base data:
10
I added the code once and it turned out fine I don't know what I'm doing wrong because I added it again and it doesn't turn out right now


here I leave the code
Code: [Select]
private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?, maxHp=?, curHp=?, maxCp=?, curCp=?, maxMp=?, curMp=?, str=?, con=?, dex=?, _int=?, men=?, wit=?, face=?, hairStyle=?, hairColor=?, heading=?, x=?, y=?, z=?, exp=?, expBeforeDeath=?, sp=?, karma=?, pvpkills=?, pkkills=?, rec_have=?, rec_left=?, clanid=?, maxload=?, race=?, classid=?, deletetime=?, title=?, accesslevel=?, online=?, isin7sdungeon=?, clan_privs=?, wantspeace=?, base_class=?, onlinetime=?, in_jail=?, jail_timer=?, newbie=?, nobless=?, power_grade=?, subpledge=?, last_recom_date=?, lvl_joined_academy=?, apprentice=?, sponsor=?, varka_ketra_ally=?, clan_join_expiry_time=?, clan_create_expiry_time=?, char_name=?, vip=?,vip_end=?, death_penalty_level=?, chat_filter_count=? WHERE obj_id=?";
private static final String RESTORE_CHARACTER = "SELECT account_name, obj_Id, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, acc, crit, evasion, mAtk, mDef, mSpd, pAtk, pDef, pSpd, runSpd, walkSpd, str, con, dex, _int, men, wit, face, hairStyle, hairColor, sex, heading, x, y, z, movement_multiplier, attack_speed_multiplier, colRad, colHeight, exp, expBeforeDeath, sp, karma, pvpkills, pkkills, clanid, maxload, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, in_jail, jail_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally, clan_join_expiry_time, clan_create_expiry_time, death_penalty_level, hero, donator, vip,vip_end chatban_timer, chatban_reason, chat_filter_count FROM characters WHERE obj_Id=?";

ALTER TABLE `characters` ADD COLUMN `vip` decimal(1,0) NOT NULL DEFAULT 0 AFTER `donator`;
ALTER TABLE `characters` ADD COLUMN `vip_end` decimal(20,0) NOT NULL DEFAULT 0 AFTER `vip`;


l2jhellas already have vip-donator system
Pages: [1] 2 3 ... 10