Jump to content

SweeTs

Legendary Member
  • Posts

    8,941
  • Credits

  • Joined

  • Last visited

  • Days Won

    25
  • Feedback

    0%

Everything posted by SweeTs

  1. Then, you did something wrong :happyforever:
  2. Do not hardcode it.. Its static data. Xml or database. Search for character_template or w/e its called on l2j :P
  3. Edit the skill SA (xml).
  4. Indeed, it's working like that :D
  5. Adn what if there is not? :troll:
  6. You can't. Skills which don't have defined the skill animation, can not be used for other skill .. at least it's what I have noticed so far. I could be wrong ofc ..
  7. Yup, like te0x said, set the server side name to 1, the same is with title - if you want to use custom tittle set title side to 1 as well :) Otherwise it's reading all the info from the client - npcname.
  8. Locked then. Also TRY to don't use gr lang in eng section ..
  9. Moved to proper section. Add a prefix.
  10. Its merchant, not multisell.
  11. The items handler, put a check.
  12. What you dont understand from the error? The file doesnt exist.. Umm Create file, reload multisell and enjoy. Also wtf with this product count lol.. You will crash client probably :troll:
  13. Any news about the progress? :P
  14. With what functions :rage: There is already a "services" manager with various options, clan's included - some part of the code should be reworked ('security' reasons), but it's working fine :P Anyway, stop dat offtopic guys it's getting old :happyforever:
  15. Like ? What options/features :happyforever:
  16. That's what I want to say .. Since all posts are like "is it good?" / "is it bugless?" and so on .. :happyforever:
  17. Omg guys, do you rly think that you will find 100% bugless pack ? Get REAL.
  18. 1) ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2CastleManagerInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2CastleManagerInstance.java (revision 0) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2CastleManagerInstance.java (revision 0) @@ -0,0 +1,84 @@ +/* This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package net.sf.l2j.gameserver.model.actor.instance; + +import net.sf.l2j.gameserver.instancemanager.CastleManager; +import net.sf.l2j.gameserver.model.entity.Castle; +import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; +import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; +import net.sf.l2j.gameserver.network.serverpackets.SiegeInfo; +import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; + +/** + * @author -=DoctorNo=- + */ +public class L2CastleManagerInstance extends L2NpcInstance +{ + public L2CastleManagerInstance(int objectId, L2NpcTemplate template) + { + super(objectId, template); + } + + @Override + public void onBypassFeedback(L2PcInstance player, String command) + { + if(player == null ) + return; + + else if (command.startsWith("siege_")) + { + int castleId = 0; + + if (command.startsWith("siege_gludio")) + castleId = 1; + else if (command.startsWith("siege_dion")) + castleId = 2; + else if (command.startsWith("siege_giran")) + castleId = 3; + else if (command.startsWith("siege_oren")) + castleId = 4; + else if (command.startsWith("siege_aden")) + castleId = 5; + else if (command.startsWith("siege_innadril")) + castleId = 6; + else if (command.startsWith("siege_goddard")) + castleId = 7; + else if (command.startsWith("siege_rune")) + castleId = 8; + else if (command.startsWith("siege_schuttgart")) + castleId = 9; + + Castle castle = CastleManager.getInstance().getCastleById(castleId); + + if(castle != null && castleId != 0) + player.sendPacket(new SiegeInfo(castle)); + } + } + + @Override + public void showChatWindow(L2PcInstance player) + { + player.sendPacket(ActionFailed.STATIC_PACKET); + + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); + html.setFile("data/html/castle_manager.htm"); + html.replace("%objectId%", String.valueOf(getObjectId())); + player.sendPacket(html); + } +} \ No newline at end of file Html <html><title>Castle Manager</title> <body> <center> <table> <tr><td align=center><font color="LEVEL">Choose The Castle Manager.</font></td></tr> <tr><td height=10></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_giran" value="Giran Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_aden" value="Aden Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_rune" value="Rune Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_oren" value="Oren Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_dion" value="Dion Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_gludio" value="Gludio Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_goddard" value="Goddard Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_schuttgart" value="Schuttgart Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> <tr><td align=center><button action="bypass -h npc_%objectId%_siege_innadril" value="Innadril Castle" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr> </table> <br><br> <font color=3293F3>Lineage II</font><br> <img src="L2UI.SquareWhite" width=258 height=1> </body> </center></html> 2) ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 332) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (working copy) @@ -613,6 +613,9 @@ */ public final boolean checkVillageMaster(PlayerClass pclass) { + if (Config.ALT_GAME_SUBCLASS_EVERYWHERE) + return true; + return checkVillageMasterRace(pclass) && checkVillageMasterTeachType(pclass); } Index: config/players.properties =================================================================== --- config/players.properties (revision 332) +++ config/players.properties (working copy) @@ -284,6 +284,10 @@ # Allow player subclass addition without checking for unique quest items. AltSubClassWithoutQuests = False +# Allow player to add/change subclass at all village master +# Default: False +AltSubclassEverywhere = True + #============================================================= # Buffs config #============================================================= Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 332) +++ java/net/sf/l2j/Config.java (working copy) @@ -489,6 +489,7 @@ public static boolean ES_SP_BOOK_NEEDED; public static boolean DIVINE_SP_BOOK_NEEDED; public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS; + public static boolean ALT_GAME_SUBCLASS_EVERYWHERE; /** Buffs */ public static boolean STORE_SKILL_COOLTIME; @@ -1110,6 +1111,7 @@ ES_SP_BOOK_NEEDED = players.getProperty("EnchantSkillSpBookNeeded", true); DIVINE_SP_BOOK_NEEDED = players.getProperty("DivineInspirationSpBookNeeded", true); ALT_GAME_SUBCLASS_WITHOUT_QUESTS = players.getProperty("AltSubClassWithoutQuests", false); + ALT_GAME_SUBCLASS_EVERYWHERE = players.getProperty("AltSubclassEverywhere", true); BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20); STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true); 3) /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package custom.BossInfo; import net.sf.l2j.gameserver.datatables.NpcTable; import net.sf.l2j.gameserver.instancemanager.GrandBossManager; import net.sf.l2j.gameserver.model.actor.L2Npc; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.quest.Quest; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; public class BossInfo extends Quest { private static final int NPC_ID = 50002; private static final int[] BOSSES = { 29001, 29006, 29014, 29019, 29020, 29022, 29028, 29045 }; public BossInfo(int questid, String name, String descr) { super(questid, name, descr); addFirstTalkId(NPC_ID); } public String onFirstTalk(L2Npc npc, L2PcInstance pc) { if (npc == null || pc == null) return null; if(npc.getNpcId() == NPC_ID) sendInfo(pc); return null; } private void sendInfo(L2PcInstance activeChar) { StringBuilder tb = new StringBuilder(); tb.append("<html><title>Lineage II</title><body><center>"); tb.append("<font color=FF9900>Grand Boss Info</font><br>"); for (int boss : BOSSES) { String name = NpcTable.getInstance().getTemplate(boss).getName(); long delay = GrandBossManager.getInstance().getStatsSet(boss).getLong("respawn_time"); if (delay <= System.currentTimeMillis()) tb.append("<center><font color=\"00C3FF\">" + name + "</color>: " + "<font color=\"9CC300\">is alive</color>"+"<br1>"); else { int hours = (int) ((delay - System.currentTimeMillis()) / 1000 / 60 / 60); int mins = (int) (((delay - (hours * 60 * 60 * 1000)) - System.currentTimeMillis()) / 1000 / 60); int seconts = (int) (((delay - ((hours * 60 * 60 * 1000) + (mins * 60 * 1000))) - System.currentTimeMillis()) / 1000); tb.append("<font color=\"00C3FF\">" + name + "</color>" + "<font color=\"FFFFFF\">" +" " + "respawn in </color> " + " " + " <font color=\"32C332\"> " + hours + ":" + mins + ":" + seconts + "</color><br1>"); } } tb.append("<br><img src=\"L2UI.SquareGray\" width=250 height=1>"); tb.append("</center></body></html>"); NpcHtmlMessage htm = new NpcHtmlMessage(NPC_ID); htm.setHtml(tb.toString()); activeChar.sendPacket(htm); } public static void main(String[] args) { new BossInfo(-1, "BossInfo", "custom"); } } 4) Well, I wont share it :troll: About your post above http://www.maxcheaters.com/topic/184816-lineage-psd-interlude-pvp-packsource/
  19. 5 euro each or 5 euro in total? :happyforever: But you know that all these are shared, more or less ? Also, what's your pack ?
  20. Could you share it here as well ? Since as I see, you must have added server so you can get it. What about ppl preparing the server, for those who wants to check the system ? :P
  21. No matter if it's custom or not, only 1 jew/talisman should give you the effect. Isn't it like that atm ?
  22. Once shared, it remains alive :troll: Something other than common tree :P
  23. Guys understand one thing, buying a pack from someone, not the project owner, you are alone and you're buying the pack with it's default problems, bugs. Basically said, you are buying ONLY the FEATURES.
  24. Features looks awesome, professional and dedicated team .. what to wish more :) Do not lose the opportunity to play on this server guys, it's worthy :) Good luck with the server, success at your fingertips :happyforever:
  25. Yes, but do you rly believe the zone he wants to make is already created ? Get real..
×
×
  • Create New...