-
Posts
53 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Monkey D. Luffy
-
Help Custom Bars Starting
Monkey D. Luffy replied to S-T-I-N-K-Y's question in Request Server Development Help [L2J]
True.. -
Help Custom Bars Starting
Monkey D. Luffy replied to S-T-I-N-K-Y's question in Request Server Development Help [L2J]
newChar.addSkill(SkillTable.getInstance().getInfo(startSkill.getId(), startSkill.getLevel()), true); if (startSkill.getId() == 1001 || startSkill.getId() == 1177) newChar.registerShortCut(new L2ShortCut(1, 0, 2, startSkill.getId(), 1, 1)); Look this if the player have in skills "1001" = Soul Cry or "1177" = Wind Strike the skill auto inside in bar in that position -
Help Custom Bars Starting
Monkey D. Luffy replied to S-T-I-N-K-Y's question in Request Server Development Help [L2J]
I have not try to Edit control bar.. Can you upload the image from bar to see what mean the numbers? Maybe Numbers show where is skills in bar... -
Help Custom Bars Starting
Monkey D. Luffy replied to S-T-I-N-K-Y's question in Request Server Development Help [L2J]
Found CharacterCreate.java and found this : newChar.setTitle(Config.ADD_CHAR_TITLE); else newChar.setTitle(""); if (Config.PVP_PK_TITLE) newChar.setTitle(Config.PVP_TITLE_PREFIX + "0" + Config.PK_TITLE_PREFIX + "0 "); // Shortcuts newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // Attack newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // Take newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // Sit final ItemTable itemTable = ItemTable.getInstance(); final L2Item[] items = template.getItems(); -
Why Use this method for nobless? I think is stupid to defeated 20 enemies...Anyway..
-
Code Gm View Dyes Info [ L2Jfrozen Rev.1113 ]
Monkey D. Luffy replied to Monkey D. Luffy's topic in Server Shares & Files [L2J]
I Test with "writeC(234)" and work..Anyway ^- -
Guide "πως Να Κανεις Εdit Τα Class"
Monkey D. Luffy replied to ViperTech's topic in Server Development Discussion [Greek]
Τουλάχιστον κρατάτε καθαρό το Forum.. εδώ γράφει "Discussion [L2J][Greek]" δεν γράφει κάπου [Greeklish] Για κάποιους μπορεί να είναι χρήσιμο η ενδιαφέρων αυτό το απλό Guide... -
Hello guys this code is for Stackable Lifestone & Books for more space on Inventory (Nothing special i found this code and i share for help some people) Let's start ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 1113) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2392,6 +2392,8 @@ public static int MONSTER_RETURN_DELAY; public static boolean SCROLL_STACKABLE; + public static boolean LS_STACKABLE; + public static boolean BOG_STACKABLE; public static boolean ALLOW_VERSION_COMMAND; public static boolean ALLOW_CHAR_KILL_PROTECT; @@ -2518,6 +2520,8 @@ ALT_PLAYER_PROTECTION_LEVEL = Integer.parseInt(L2JFrozenSettings.getProperty("AltPlayerProtectionLevel", "0")); MONSTER_RETURN_DELAY = Integer.parseInt(L2JFrozenSettings.getProperty("MonsterReturnDelay", "1200")); SCROLL_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ScrollStackable", "False")); + LS_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("BOGStackable", "False")); + BOG_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("LSStackable", "False")); ALLOW_CHAR_KILL_PROTECT = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowLowLvlProtect", "False")); CLAN_LEADER_COLOR_ENABLED = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ClanLeaderNameColorEnabled", "true")); CLAN_LEADER_COLORED = Integer.parseInt(L2JFrozenSettings.getProperty("ClanLeaderColored", "1")); ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java (working copy) @@ -136,7 +136,10 @@ return; } // ok - player.destroyItem("Consume", spb, trainer, true); + if (Config.BOG_STACKABLE) + player.destroyItem("Consume", spbId, 1, trainer, true); + else + player.destroyItem("Consume", spb, trainer, true); } } else ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (revision 1113) +++ config/functions/l2jfrozen.properties (working copy) @@ -187,8 +187,12 @@ # Default: 1200 MonsterReturnDelay = 1200 -# Scroll is Stackable? (default = false) +# ------------------------------------------- +# Stackable Items Config (default = false) +# ------------------------------------------- ScrollStackable = false +LSStackable = false +BOGStackable = false # ------------------------------------------- # Clan Leader Color Config -
-
Code Gm View Dyes Info [ L2Jfrozen Rev.1113 ]
Monkey D. Luffy replied to Monkey D. Luffy's topic in Server Shares & Files [L2J]
You Create this Java file "GMHennaInfo.java" Right Click On com.l2jfrozen.gameserver.network.serverpackets New-->Class--> and on name inside GMViewHennaInfo -->Finish And inside the code ^^ -
Hello I want to share this code ( Nothing Special ) Maybe many ppl like to use..Anyway.. With this Code Gm's Can see Dyes from players... Let's Start : Create a GMViewHennaInfo.java and inside this : ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/GMViewHennaInfo.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/serverpackets/GMViewHennaInfo.java (revision 0) +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/GMViewHennaInfo.java (revision 0) @@ -0,0 +1,51 @@ +package com.l2jfrozen.gameserver.network.serverpackets; + +import com.l2jfrozen.gameserver.model.actor.instance.L2HennaInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; + +public class GMViewHennaInfo extends L2GameServerPacket +{ + private final L2PcInstance _activeChar; + private final L2HennaInstance[] _hennas = new L2HennaInstance[3]; + private int _count; + + public GMViewHennaInfo(L2PcInstance activeChar) + { + this._activeChar = activeChar; + + int j = 0; + for (int i = 0; i < 3; i++) + { + L2HennaInstance h = this._activeChar.getHennas(i + 1); + if (h != null) + this._hennas[(j++)] = h; + } + this._count = j; + } + +@Override + protected void writeImpl() + { + writeC(234); + + writeC(this._activeChar.getHennaStatINT()); + writeC(this._activeChar.getHennaStatSTR()); + writeC(this._activeChar.getHennaStatCON()); + writeC(this._activeChar.getHennaStatMEN()); + writeC(this._activeChar.getHennaStatDEX()); + writeC(this._activeChar.getHennaStatWIT()); + + writeD(3); + + writeD(this._count); + for (int i = 0; i < this._count; i++) + { + writeD(this._hennas[i].getSymbolId()); + writeD(1); + } + } + +@Override + public String getType() + { + return "[S] 0xea GMHennaInfo"; + } +} \ No newline at end of file Now go found RequestGMCommand.java and edit : ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGMCommand.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGMCommand.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGMCommand.java (working copy) @@ -24,6 +24,7 @@ import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.serverpackets.GMViewCharacterInfo; import com.l2jfrozen.gameserver.network.serverpackets.GMViewItemList; +import com.l2jfrozen.gameserver.network.serverpackets.GMViewHennaInfo; import com.l2jfrozen.gameserver.network.serverpackets.GMViewPledgeInfo; import com.l2jfrozen.gameserver.network.serverpackets.GMViewQuestList; import com.l2jfrozen.gameserver.network.serverpackets.GMViewSkillInfo; @@ -82,6 +83,7 @@ case 5: // player inventory { sendPacket(new GMViewItemList(player)); + sendPacket (new GMViewHennaInfo (player)); break; } case 6: // player warehouse Many people Found This Code Useful... ;)
-
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
Nice question ;) I had not try to do this ??? -
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
Hm Hmm..?You mean more than 1 skill in same weapon? -
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
Np ;) -
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
Problem solved Lock this topic.. Problem Solved Lock this topic. -
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
Go to Items table found the weapon and Inside the character_id in owner_id -
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
Hmm What do you mean? In game you dont see weapon? -
Help Aguments On Weapons...
Monkey D. Luffy replied to nikimad's question in Request Server Development Help [L2J]
1) Open Navicat 2) Go to characters table 3) Find the charId of the character 4) Go to items table 5) Put at owner_id the charId of the character 6) Find the Item you want to augment , and Copy the object_id 7) Go to item_attributes table and Copy Paste at itemId the object_id 8 ) Put itemId | augAttributes | augSkillId |augSkillLevel 9) Press Ctrl + S to Save 10) Character must be offline when doing this! Augment Skills : Passive : Guidance Level 10 | ( augAttributes: 1070537767 ) ( augSkillId: 3248 ) ( augSkillLevel: 10 ) Active : Reflect Damage Level 3 | ( augAttributes: 1067588698 ) ( augSkillId: 3204 ) ( augSkillLevel: 3 ) Passive : Reflect Damage Level 3 | ( augAttributes: 1070472227 ) ( augSkillId: 3259 ) ( augSkillLevel: 3 ) Active : Heal Level 10 | ( augAttributes: 1061361888 ) ( augSkillId: 3123 ) ( augSkillLevel: 10 ) Active : Clarity Level 3 | ( augAttributes: 1067457587 ) ( augSkillId: 3164 ) ( augSkillLevel: 3 ) Passive : Shield Level 10 | ( augAttributes: 1067194549 ) ( augSkillId: 3244 ) ( augSkillLevel: 10 ) Passive : Prayer Level 10 | ( augAttributes: 1066932422 ) ( augSkillId: 3238 ) ( augSkillLevel: 10 ) Active : Agility Level 10 | ( augAttributes: 1060444351 ) ( augSkillId: 3139 ) ( augSkillLevel: 10 ) Passive : Focus Level 10 | ( augAttributes: 1070406728 ) ( augSkillId: 3249 ) ( augSkillLevel: 10 ) Active : Hydro Blast Level 10 | ( augAttributes: 1063590051 ) ( augSkillId: 3167 ) ( augSkillLevel: 10 ) Active : Duel Might Level 10 | ( augAttributes: 1062406807 ) ( augSkillId: 3134 ) ( augSkillLevel: 10 ) Active : Stone Level 10 | ( augAttributes: 1060640984 ) ( augSkillId: 3169 ) ( augSkillLevel: 10 ) Active : Shadow Flare Level 10 | ( augAttributes: 1063520931 ) ( augSkillId: 3171 ) ( augSkillLevel: 10 ) Passive : Duel Might Level 10 | ( augAttributes: 1067260101 ) ( augSkillId: 3243 ) ( augSkillLevel: 10 ) Passive : Empower Level 10 | ( augAttributes: 1066994296 ) ( augSkillId: 3241 ) ( augSkillLevel: 10 ) Active : Might Level 10 | ( augAttributes: 1062079106 ) ( augSkillId: 3132 ) ( augSkillLevel: 10 ) Passive : Wild Magic Level 10 | ( augAttributes: 1070599653 ) ( augSkillId: 3250 ) ( augSkillLevel: 10 ) Active : Guidance Level 10 | ( augAttributes: 1061034178 ) ( augSkillId: 3140 ) ( augSkillLevel: 10 ) Active : Heal Empower Level 10 | ( augAttributes: 1061230760 ) ( augSkillId: 3138 ) ( augSkillLevel: 10 ) Active : Magic Barrier Level 10 | ( augAttributes: 1061751456 ) ( augSkillId: 3136 ) ( augSkillLevel: 10 ) Active : Aura Flare Level 10 | ( augAttributes: 1063455338 ) ( augSkillId: 3172 ) ( augSkillLevel: 10 ) Active : Vampiric Touch Level 10 | ( augAttributes: 1063983324 ) ( augSkillId: 3153 ) ( augSkillLevel: 10 ) Active : Prominence Level 10 | ( augAttributes: 1063327898 ) ( augSkillId: 3165 ) ( augSkillLevel: 10 ) Active : Empower Level 10 | ( augAttributes: 1061423766 ) ( augSkillId: 3133 ) ( augSkillLevel: 10 ) Active : Tempest Level 10 | ( augAttributes: 1063655564 ) ( augSkillId: 3168 ) ( augSkillLevel: 10 ) Passive : Heal Empower Level 10 | ( augAttributes: 1066866909 ) ( augSkillId: 3246 ) ( augSkillLevel: 10 ) Active : Wild Magic Level 10 | ( augAttributes: 1067850844 ) ( augSkillId: 3142 ) ( augSkillLevel: 10 ) Active : Focus Level 10 | ( augAttributes: 1067523168 ) ( augSkillId: 3141 ) ( augSkillLevel: 10 ) Passive : Might Level 10 | ( augAttributes: 1067125363 ) ( augSkillId: 3240 ) ( augSkillLevel: 10 ) -
Help Clan And Ally Crest In Npc Html
Monkey D. Luffy replied to dymek1984's question in Request Server Development Help [L2J]
Create a .sql file and inside in Navicat ALTER TABLE castle ADD showNpcCrest enum('true','false') DEFAULT 'false' NOT NULL; Inside This Code in Project Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (wersja 669) +++ head-src/com/l2jfrozen/Config.java (kopia robocza) @@ -2239,6 +2239,7 @@ public static String FARM2_CUSTOM_MESSAGE; public static String PVP1_CUSTOM_MESSAGE; public static String PVP2_CUSTOM_MESSAGE; + public static boolean SHOW_NPC_CREST; //============================================================ public static void loadL2JFrozenConfig() @@ -2357,6 +2358,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_CREST = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ShowNpcCrest", "False")); } catch(Exception e) { Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (wersja 669) +++ config/functions/l2jfrozen.properties (kopia robocza) @@ -275,4 +275,8 @@ # ----------------------------------------- # Protector System Config - # ----------------------------------------- # Protector activate when a player this PK ProtectorPlayerPK = False # Protector activate when a player is flaged ProtectorPlayerPVP = False # Radius of action ProtectorRadiusAction = 5000 # Skill ID used for the npc ProtectorSkillId = 1170 # Skill Level used for npc ProtectorSkillLevel = 13 ProtectorSkillTime = 600 # Npc Protector Message ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! + +#------------------------------------------------- +# Show clan, alliance crests for territory NPC's. +#------------------------------------------------- +# Default: False +ShowNpcCrest = True \ No newline at end of file Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java (wersja 669) +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java (kopia robocza) @@ -19,11 +19,15 @@ package com.l2jfrozen.gameserver.network.serverpackets; import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.datatables.sql.ClanTable; +import com.l2jfrozen.gameserver.managers.TownManager; import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.model.L2Clan; import com.l2jfrozen.gameserver.model.L2Summon; import com.l2jfrozen.gameserver.model.actor.instance.L2MonsterInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2NpcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance; +import com.l2jfrozen.gameserver.model.zone.type.L2TownZone; /** * This class ... @@ -46,6 +50,10 @@ private int _collisionHeight, _collisionRadius; private String _name = ""; private String _title = ""; + int _clanCrest = 0; + int _allyCrest = 0; + int _allyId = 0; + int _clanId = 0; /** * @param _characters @@ -99,6 +107,32 @@ _title = t; } + if(Config.SHOW_NPC_CREST) + { + if(cha instanceof L2NpcInstance && cha.isInsideZone(L2Character.ZONE_PEACE) && cha.getCastle().getOwnerId() != 0) + { + int _x,_y,_z; + _x = cha.getX(); + _y = cha.getY(); + _z = cha.getZ(); + L2TownZone Town; + Town = TownManager.getInstance().getTown(_x, _y, _z); + if(Town != null) + { + int townId = Town.getTownId(); + if(townId != 33 && townId != 22) + { + L2Clan clan; + clan = ClanTable.getInstance().getClan(cha.getCastle().getOwnerId()); + _clanCrest = clan.getCrestId(); + _clanId = clan.getClanId(); + _allyCrest = clan.getAllyCrestId(); + _allyId = clan.getAllyId(); + } + } + } + } + _x = _activeChar.getX(); _y = _activeChar.getY(); _z = _activeChar.getZ(); @@ -187,12 +221,23 @@ writeD(0000); // hmm karma ?? writeD(_activeChar.getAbnormalEffect()); // C2 - writeD(0000); // C2 - writeD(0000); // C2 - writeD(0000); // C2 - writeD(0000); // C2 - writeC(0000); // C2 + if(Config.SHOW_NPC_CREST) + { + writeD(_clanId); + writeD(_clanCrest); + writeD(_allyId); + writeD(_allyCrest); + } + else + { + writeD(0000); + writeD(0000); + writeD(0000); + writeD(0000); + writeC(0000); + } + writeC(0x00); // C3 team circle 1-blue, 2-red writeF(_collisionRadius); writeF(_collisionHeight); Index: head-src/com/l2jfrozen/gameserver/model/entity/siege/Castle.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/entity/siege/Castle.java (wersja 669) +++ head-src/com/l2jfrozen/gameserver/model/entity/siege/Castle.java (kopia robocza) @@ -90,6 +90,7 @@ private int _taxPercent = 0; private double _taxRate = 0; private int _treasury = 0; + private boolean _showNpcCrest = false; private L2CastleZone _zone; private L2CastleTeleportZone _teleZone; private L2Clan _formerOwner = null; @@ -364,6 +365,7 @@ } updateOwnerInDB(clan); // Update in database + setShowNpcCrest(false); if(getSiege().getIsInProgress()) { @@ -552,6 +554,7 @@ _taxPercent = rs.getInt("taxPercent"); _treasury = rs.getInt("treasury"); + _showNpcCrest = rs.getBoolean("showNpcCrest"); } rs.close(); @@ -854,6 +857,20 @@ return _treasury; } + public final boolean getShowNpcCrest() + { + return _showNpcCrest; + } + + public final void setShowNpcCrest(boolean showNpcCrest) + { + if(_showNpcCrest != showNpcCrest) + { + _showNpcCrest = showNpcCrest; + updateShowNpcCrest(); + } + } + public FastList<SeedProduction> getSeedProduction(int period) { return period == CastleManorManager.PERIOD_CURRENT ? _production : _productionNext; @@ -1324,6 +1341,36 @@ } } + public void updateShowNpcCrest() + { + Connection con = null; + PreparedStatement statement; + try + { + con = L2DatabaseFactory.getInstance().getConnection(); + + statement = con.prepareStatement("UPDATE castle SET showNpcCrest = ? WHERE id = ?"); + statement.setString(1, String.valueOf(getShowNpcCrest())); + statement.setInt(2, getCastleId()); + statement.execute(); + statement.close(); + } + catch (Exception e) + { + _log.info("Error saving showNpcCrest for castle " + getName() + ": " + e.getMessage()); + } + finally + { + try + { + con.close(); + } + catch (Exception e) + { + } + } + } + public boolean isNextPeriodApproved() { return _isNextPeriodApproved; -
Help Login Account
Monkey D. Luffy replied to S-T-I-N-K-Y's question in Request Server Development Help [L2J]
why you need to do that?If any player need to create a bot He can use random characters in keyboard...Simple go to Navicat and delete accounts... -
Help How To Make Color Welcome Msg? H5
Monkey D. Luffy replied to Foxiksis's question in Request Server Development Help [L2J]
Maybe you no edit the right file..See any quide on google.. -
Help Enchant Editing
Monkey D. Luffy replied to IPlaySex's question in Request Server Development Help [L2J]
L2jFrozen (Every day update) -
Guide Usefull Sql Scripts !
Monkey D. Luffy replied to badriniki's topic in Server Shares & Files [L2J]
Good share. -
Simple but good...Nice share.
-
Help How To Make Color Welcome Msg? H5
Monkey D. Luffy replied to Foxiksis's question in Request Server Development Help [L2J]
