-
Posts
69 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by iSparky
-
Help Starting Spawn Location
iSparky replied to iSparky's question in Request Server Development Help [L2J]
Ok thx :) i find ;) Lock this topic. -
How can i set the Starting Location for New Chars? Edit: Topic Prefix
-
I cant connect it with my server Language not changed... can you rework the code and translate ? balius
-
Just try main page :P http://donate.asmanavicius.lt/ Edit: Can somebody check it for "Backdoor ~ Buggs" ?
-
How can i add Top Pvp / Top Pk / Top Clan at my Community Board ??? Player Name - PvP - Status Test1 - 1322 - Online Test2 -126 - Offline etc... Edit: Add Topic Prefix
-
EnterWorld.java... Alt+F find Tutorial and delete it.
-
Help Custom Gatekeeper
iSparky replied to alextoti13's question in Request Server Development Help [L2J]
Then why SweeTs you dont make a "Code" for alextoti13 ? :/ I like cuz this forum have very skilled guys and when one member ask something with 7-8 Lines all reply but nobody help. For me at this forum as i have see at this 4-5 days only Tessa help people's. -
Help Custom Gatekeeper
iSparky replied to alextoti13's question in Request Server Development Help [L2J]
Buddy as i said you im new at Java :S I add this and its works :S If you can fix the code please make it pastebin and share it here to fix and mine ^^ :) -
Help Custom Gatekeeper
iSparky replied to alextoti13's question in Request Server Development Help [L2J]
:) -
Help Custom Gatekeeper
iSparky replied to alextoti13's question in Request Server Development Help [L2J]
i dont know why its looks like that. I have this and its works :S http://pastebin.com/qZEk59QP -
Help Custom Gatekeeper
iSparky replied to alextoti13's question in Request Server Development Help [L2J]
I change it. and i try with Dual Box and its works now.. :) (Sorry im new in Java) -
Help Custom Gatekeeper
iSparky replied to alextoti13's question in Request Server Development Help [L2J]
com.l2jfrozen.gameserver.model.actor.instance.L2TeleporterInstance.java http://pastebin.com/qZEk59QP And edit the ( player.teleToLocation(-21598, 185328, -5646); ) The use at Gatekeeper HTML <a action="bypass -h npc_%objectId%_party" msg="811;Party Zone">Party Zone</a> -
Go to : data\html\admin\game_menu.htm <font color="00FF00">Clan related:</font> <table width=240><tr> <td><button value="Create" action="bypass -h admin_pledge create $menu_command" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> <td><button value="Delete" action="bypass -h admin_pledge dismiss $menu_command" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> <td><button value="Set Level" action="bypass -h admin_pledge setlevel $menu_command" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> <td><button value="Reputation" action="bypass -h admin_pledge rep $menu_command" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> </tr><tr> <td><button value="Castles/CH" action="bypass -h admin_siege" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> <td><button value="Info" action="bypass -h admin_pledge info" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> <td><button value="Fortress" action="bypass -h admin_fortsiege" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td> - </tr> <br> + <td><button value="Clan Skill" action="bypass -h admin_help custom_clan.htm" width=55 height=15 back="sek.cbui94" fore="sek.cbui92"></td><tr> Then make new html : data\html\admin\custom_clan.htm and paste that: <html><body><table width=260> <tr><td width=40> <button value="Main" action="bypass -h admin_admin" width=40 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"> </td><td width=180> <center>Clan Skills Menu</center> </td><td width=40> <button value="Back" action="bypass -h admin_help skills.htm" width=40 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"> </td></tr></table> <img src="sek.cbui355" width=260 height=2><br> <center><font color="88aaaa"><table width=200> </tr><tr><td align=center><button value="Clan lvl 8" action="bypass -h admin_pledge setlevel 8" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> </tr><tr><td align=center><br></td></tr> <tr><td align=center><button value="Clan Vitality" action="bypass -h admin_add_clan_skill 370 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Spirituality" action="bypass -h admin_add_clan_skill 371 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Essence" action="bypass -h admin_add_clan_skill 372 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Lifeblood" action="bypass -h admin_add_clan_skill 373 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Morale" action="bypass -h admin_add_clan_skill 374 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Clarity" action="bypass -h admin_add_clan_skill 375 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Might" action="bypass -h admin_add_clan_skill 376 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Aegis" action="bypass -h admin_add_clan_skill 377 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Empowerment" action="bypass -h admin_add_clan_skill 378 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Magic Protection" action="bypass -h admin_add_clan_skill 379 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Guidance" action="bypass -h admin_add_clan_skill 380 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Agility" action="bypass -h admin_add_clan_skill 381 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Withstand-Attack" action="bypass -h admin_add_clan_skill 382 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Shield Boost" action="bypass -h admin_add_clan_skill 383 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Cyclonic Resistance" action="bypass -h admin_add_clan_skill 384 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Magmatic Resistance" action="bypass -h admin_add_clan_skill 385 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Fortitude" action="bypass -h admin_add_clan_skill 386 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Freedom" action="bypass -h admin_add_clan_skill 387 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Vigilance" action="bypass -h admin_add_clan_skill 388 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan March" action="bypass -h admin_add_clan_skill 389 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Luck" action="bypass -h admin_add_clan_skill 390 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> <tr><td align=center><button value="Clan Imperium" action="bypass -h admin_add_clan_skill 391 3" value="Town Center" width=160 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr> </table></font></center> </body></html> and the Java Side :gameserver/handler/admincommandhandlers/AdminSkill.java activeChar.getClan().broadcastToOnlineMembers(new PledgeSkillList(activeChar.getClan())); for (final L2PcInstance member : activeChar.getClan().getOnlineMembers("")) { member.sendSkillList(); } +AdminHelpPage.showHelpPage(activeChar, "custom_clan.htm"); skillname = null; return; } activeChar.sendMessage("Error: there is no such skill."); } } //no more line
-
Code Lifestone & Books Stackable [ L2Jfrozen Rev.1113 ]
iSparky replied to Monkey D. Luffy's topic in Server Shares & Files [L2J]
Maybe you forgot this: --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java (revision 938) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java (working copy) @@ -246,7 +246,12 @@ } // consume the life stone - if(!player.destroyItem("RequestRefine", refinerItem, null, false)) + if (Config.LS_STACKABLE) + { + if(!player.destroyItem("RequestRefine", refinerItem.getObjectId(), 1, null, false)) + return false; + } + else if(!player.destroyItem("RequestRefine", refinerItem, null, false)) return false; // consume the gemstones -
Code Visible Castle Door Hp For L2Jfrozen
iSparky replied to Tessa's topic in Server Shares & Files [L2J]
Then ok :) cuz i search my source and i cant find that ;S -
Code Visible Castle Door Hp For L2Jfrozen
iSparky replied to Tessa's topic in Server Shares & Files [L2J]
Can you make and when a monster is "npc_to_pc_polymorph.sql" with visible HP ? L2JFrozen -
## Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 939) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2121,8 +2121,11 @@ public static String PM_TEXT1; public static String PM_TEXT2; public static boolean NEW_PLAYER_EFFECT; - + public static boolean NEW_PLAYER_BUFFS; + public static Map<Integer, Integer> FIGHTER_BUFF_LIST; + public static Map<Integer, Integer> MAGE_BUFF_LIST; + //============================================================ public static void loadFrozenConfig() { @@ -2143,7 +2146,59 @@ PM_TEXT1 = frozenSettings.getProperty("PMText1", "Have Fun and Nice Stay on"); PM_TEXT2 = frozenSettings.getProperty("PMText2", "Vote for us every 24h"); NEW_PLAYER_EFFECT = Boolean.parseBoolean(frozenSettings.getProperty("NewPlayerEffect", "True")); + NEW_PLAYER_BUFFS = Boolean.parseBoolean(frozenSettings.getProperty("AltNewCharBuffs", "False")); + if(NEW_PLAYER_BUFFS) + { + String[] fighterBuffSplit = frozenSettings.getProperty("FighterBuffList", "").split(";"); + FIGHTER_BUFF_LIST = new FastMap<Integer, Integer>(fighterBuffSplit.length); + for(String skill : fighterBuffSplit) + { + String[] skillSplit = skill.split(","); + if(skillSplit.length != 2) + { + System.out.println("invalid config property in " + Frozen + " -> FighterBuffList \"" + skill + "\""); + } + else + { + try + { + FIGHTER_BUFF_LIST.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1])); + } + catch(NumberFormatException nfe) + { + if(!skill.equals("")) + { + System.out.println("invalid config property in " + Frozen + " -> FighterBuffList \"" + skillSplit[0] + "\"" + skillSplit[1]); + } + } + } + } + String[] mageBuffSplit = frozenSettings.getProperty("MageBuffList", "").split(";"); + MAGE_BUFF_LIST = new FastMap<Integer, Integer>(mageBuffSplit.length); + for(String skill : mageBuffSplit) + { + String[] skillSplit = skill.split(","); + if(skillSplit.length != 2) + { + System.out.println("invalid config property in " + Frozen + " -> MageBuffList \"" + skill + "\""); + } + else + { + try + { + MAGE_BUFF_LIST.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1])); + } + catch(NumberFormatException nfe) + { + if(!skill.equals("")) + { + System.out.println("invalid config property in" + Frozen + " -> MageBuffList \"" + skillSplit[0] + "\"" + skillSplit[1]); + } + } + } + } + } } catch(Exception e) { Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java (revision 939) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -285,6 +285,9 @@ Announcements.getInstance().showAnnouncements(activeChar); loadTutorial(activeChar); + + if(activeChar.getFirstLog()) + onEnterNewbie(activeChar); // Check for crowns CrownManager.getInstance().checkCrowns(activeChar); @@ -543,20 +546,6 @@ if (Config.ONLINE_PLAYERS_ON_LOGIN) sendPacket(new SystemMessage(SystemMessageId.S1_S2).addString("There are " + L2World.getInstance().getAllPlayers().size() + " players online.")); - if (activeChar.getFirstLog() && Config.NEW_PLAYER_EFFECT) - { - L2Skill skill = SkillTable.getInstance().getInfo(2025,1); - if (skill != null) - { - MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0); - activeChar.sendPacket(MSU); - activeChar.broadcastPacket(MSU); - activeChar.useMagic(skill, false, false); - } - activeChar.setFirstLog(false); - activeChar.updateFirstLog(); - } - if (Config.WELCOME_HTM && isValidName(activeChar.getName())) { String Welcome_Path = "data/html/welcome.htm"; @@ -688,6 +677,50 @@ } /** + * @param activeChar + */ + private void onEnterNewbie(L2PcInstance activeChar) + { + if(Config.NEW_PLAYER_EFFECT) + { + L2Skill skill = SkillTable.getInstance().getInfo(2025, 1); + if(skill != null) + { + MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0); + activeChar.sendPacket(MSU); + activeChar.broadcastPacket(MSU); + activeChar.useMagic(skill, false, false); + } + } + + if(Config.NEW_PLAYER_BUFFS) + { + if(activeChar.isMageClass()) + { + for(Integer skillid : Config.MAGE_BUFF_LIST.keySet()) + { + int skilllvl = Config.MAGE_BUFF_LIST.get(skillid); + L2Skill skill = SkillTable.getInstance().getInfo(skillid, skilllvl); + if(skill != null) + skill.getEffects(activeChar, activeChar); + } + } + else + { + for(Integer skillid : Config.FIGHTER_BUFF_LIST.keySet()) + { + int skilllvl = Config.FIGHTER_BUFF_LIST.get(skillid); + L2Skill skill = SkillTable.getInstance().getInfo(skillid, skilllvl); + if(skill != null) + skill.getEffects(activeChar, activeChar); + } + } + } + activeChar.setFirstLog(false); + activeChar.updateFirstLog(); + } + + /** * @param cha */ private void engage(L2PcInstance cha) Index: config/frozen/frozen.properties =================================================================== --- config/frozen/frozen.properties (revision 939) +++ config/frozen/frozen.properties (working copy) @@ -21,4 +21,18 @@ # New players get fireworks the first time they log in # Default: False -NewPlayerEffect = False \ No newline at end of file +NewPlayerEffect = False + +# Give buffs to character on first game log in. +# Default: False +AltNewCharBuffs = False + +# The List of Fighter Buffs +# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln +FighterBuffList = 1204,2;1068,3;1040,3;1035,4;1036,2;1045,6;1086,2;1077,3;1240,3;1242,3;\ +264,1;267,1;268,1;269,1;304,1;349,1;364,1;271,1;274,1;275,1;1363,1;1391,3;4699,1;4703,1 + +# The List of Mage Buffs +# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln +MageBuffList = 1204,2;1040,3;1035,4;1045,6;1048,6;1036,2;1303,2;1085,3;1059,3;1078,6;\ +1062,2;1397,3;264,1;267,1;268,1;304,1;349,1;364,1;273,1;276,1;365,1;1413,1;1391,3;4703,1 Credits: ????
