Dεbian Posted December 19, 2012 Posted December 19, 2012 loipon,egw 8elw ta kanw ta soulshots kai ta blessed spiritshots na einai automata. Diladi molis mpainei mesa sto game o player na tou ta vazei xwris kan na ta exei epanw tou i akoma kai otan allazei weapon. Kai 8elw sxetika me ta bows na mporoun na ta xrisimopioun oi players xwris arrows. για τα soulshot νομίζω αυτό θα δουλέψει. πήγαινε στο enterworld.java και βάλε αυτές τις γραμμές : activeChar.addAutoSoulShot(itemId); activeChar.addAutoSoulShot(itemId); εκεί που λέει itemId βάλε το id από τα soulshot που θέλεις. τα arrows θα τα κοιτάξω αύριο!
Komnis Posted December 19, 2012 Posted December 19, 2012 για τα soulshot νομίζω αυτό θα δουλέψει. πήγαινε στο enterworld.java και βάλε αυτές τις γραμμές : activeChar.addAutoSoulShot(itemId); activeChar.addAutoSoulShot(itemId); εκεί που λέει itemId βάλε το id από τα soulshot που θέλεις. τα arrows θα τα κοιτάξω αύριο! Ok euxaristw polu alla p akrivos na ta pros8esw? eimai new kai dn gnwrizw polla... :P
Dεbian Posted December 19, 2012 Posted December 19, 2012 Ok euxaristw polu alla p akrivos na ta pros8esw? eimai new kai dn gnwrizw polla... :P πήγαινε clientpackets/enterworld.java και βρες την γραμμή : activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ()); από κάτω και δοκίμασε να δεις αν δουλεύει.
Komnis Posted December 19, 2012 Posted December 19, 2012 πήγαινε clientpackets/enterworld.java και βρες την γραμμή : activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ()); από κάτω και δοκίμασε να δεις αν δουλεύει. ok. Euxaristw kai pali. 8a to dokimasw aurio gt auti tin stigmi dn mporw kai 8a c pw ean douleuei :D
Vegas Posted December 19, 2012 Posted December 19, 2012 ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: config/aCis.properties =================================================================== --- config/aCis.properties (revision 19) +++ config/aCis.properties (working copy) @@ -208,4 +208,24 @@ +# Every member who reach 40 level and automatically gets dismissed from clan +# takes an a-beep-t of adena for reward. +AllowAcademyLeaveReward = True Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 19) +++ java/net/sf/l2j/Config.java (working copy) @@ -188,6 +188,18 @@ + public static boolean ALLOW_ACADEMY_LEAVE_REWARD; + // -------------------------------------------------- // Clans settings // -------------------------------------------------- @@ -1034,6 +1046,18 @@ + ALLOW_ACADEMY_LEAVE_REWARD = Boolean.parseBoolean(aCis.getProperty("AllowAcademyLeaveReward", "True")); } catch (Exception e) { Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 19) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -1945,6 +1945,12 @@ // receive graduation gift getInventory().addItem("Gift", 8181, 1, this, null); // give academy circlet + + if (Config.ALLOW_ACADEMY_LEAVE_REWARD) + { + getInventory().addItem("Adena", 57, 100000, this, null); // give adena + sendMessage("You got few adena for this journey, enjoy."); + } } if (isSubClassActive()) αυτό είναι για το academy adena, το άλλο feature αύριο. thanks boy Tested and works perfect. But i only earn the adena in my inventory ke to message katw sto chat ine san tou accademy pu sou leei euxaristoume ke vgikes k.l.p. (if it is possible) na to kaneis px me yellow letter (opws ta drop pou sikwneis) You have earned 1.000.000 from accademy complete. katalaves?
Komnis Posted December 19, 2012 Posted December 19, 2012 πήγαινε clientpackets/enterworld.java και βρες την γραμμή : activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ()); από κάτω και δοκίμασε να δεις αν δουλεύει. Mia erwtisi. Mporw na to kanw copy paste oses fores 8elw gia na mporesw na valw ola ta grade apo ss kai bss?
Guest Elfocrash Posted December 20, 2012 Posted December 20, 2012 Hi guys :) Paidia thelw ean vevaia mporeite na sygkentrwsw ola ta voiced command se 1 html mporeite na ftiaksete kati tetoio gia frozen? dld ti enow patas px .panel kai ekei na exei .online .pvp .pm ola ta command . eseis vazete 1 i 2 ta alla ta pernaw egw. kai mprabo gia tin douleia pou kanete. Ena html sto data/html/mods me name commands.htm me periexomeno to eksis: <html><title>Voiced Commands</title> <body> <center> <font color="LEVEL">Choose The Command</font> <table> <tr><td align=center><button action="bypass voiced_survey" value=".survey" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr> <tr><td align=center><button action="bypass voiced_menu" value=".menu" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr> </table> <br><br> </body> </center></html> kai ena core patchaki: ### Eclipse Workspace Patch 1.0 #P l2jesios_gameserver Index: java/com/l2jesios/gameserver/handler/VoicedCommandHandler.java =================================================================== --- java/com/l2jesios/gameserver/handler/VoicedCommandHandler.java (revision 164) +++ java/com/l2jesios/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -73,6 +73,8 @@ registerVoicedCommandHandler(new VoiceInfo()); + registerVoicedCommandHandler(new VoicedCommands()); + registerVoicedCommandHandler(new StriderRaceCMD()); registerVoicedCommandHandler(new Antibot()); Index: java/com/l2jesios/gameserver/handler/voicedcommandhandlers/VoicedCommands.java =================================================================== --- java/com/l2jesios/gameserver/handler/voicedcommandhandlers/VoicedCommands.java (revision 0) +++ java/com/l2jesios/gameserver/handler/voicedcommandhandlers/VoicedCommands.java (working copy) @@ -0,0 +1,54 @@ +/* + * 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 com.l2jesios.gameserver.handler.voicedcommandhandlers; + +import com.l2jesios.gameserver.handler.IVoicedCommandHandler; +import com.l2jesios.gameserver.model.actor.instance.L2PcInstance; +import com.l2jesios.gameserver.network.serverpackets.NpcHtmlMessage; + +public class VoicedCommands implements IVoicedCommandHandler +{ + private static final String[] _voicedCommands = + { + "info" + + }; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (command.startsWith(_voicedCommands[0])) + { + sendHtml(activeChar); + } + + return true; + } + + private static void sendHtml(L2PcInstance activeChar) + { + String htmFile = "data/html/mods/commands.htm"; + + NpcHtmlMessage msg = new NpcHtmlMessage(5); + msg.setFile(htmFile); + activeChar.sendPacket(msg); + } + + @Override + public String[] getVoicedCommandList() + { + return _voicedCommands; + } +} \ No newline at end of file Den einai testarismeno alla fenetai ok. Den tha doulepsei se frozen. Thes to voiced command bypass system tou esios.
Guest Elfocrash Posted December 20, 2012 Posted December 20, 2012 Kai 8elw sxetika me ta bows na mporoun na ta xrisimopioun oi players xwris arrows. Ekseretika diskolo code: ### Eclipse Workspace Patch 1.0 #P l2jesios_gameserver Index: java/com/l2jesios/gameserver/model/actor/L2Character.java =================================================================== --- java/com/l2jesios/gameserver/model/actor/L2Character.java (revision 164) +++ java/com/l2jesios/gameserver/model/actor/L2Character.java (working copy) @@ -671,7 +671,7 @@ if (this instanceof L2PcInstance) { // Equip arrows needed in left hand and send a Server->Client packet ItemList to the L2PcINstance then return True - if (!checkAndEquipArrows()) + /*if (!checkAndEquipArrows()) { // Cancel the action because the L2PcInstance have no arrow getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); @@ -679,7 +679,7 @@ sendPacket(ActionFailed.STATIC_PACKET); sendPacket(SystemMessage.getSystemMessage(SystemMessageId.NOT_ENOUGH_ARROWS)); return; - } + }*/ // Verify if the bow can be use if (_disableBowAttackEndTime <= GameTimeController.getGameTicks()) Not tested alla dixnei ok.
Guest Elfocrash Posted December 20, 2012 Posted December 20, 2012 thanks boy Tested and works perfect. But i only earn the adena in my inventory ke to message katw sto chat ine san tou accademy pu sou leei euxaristoume ke vgikes k.l.p. (if it is possible) na to kaneis px me yellow letter (opws ta drop pou sikwneis) You have earned 1.000.000 from accademy complete. katalaves? ### Eclipse Workspace Patch 1.0 #P l2jesios_gameserver Index: java/com/l2jesios/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/com/l2jesios/gameserver/model/actor/instance/L2PcInstance.java (revision 164) +++ java/com/l2jesios/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -2389,6 +2389,9 @@ // receive graduation gift getInventory().addItem("Gift", 8181, 1, this, null); // give academy circlet + + addAdena("Elfo is ill", 1000000, this, true); + } if (isSubClassActive()) Tha doulepsei pewpew
Dεbian Posted December 20, 2012 Posted December 20, 2012 αγαπητέ Elfocrash, αφού κάνεις εσύ τα request μπορείς να κλειδώσεις το topic.
Guest Elfocrash Posted December 20, 2012 Posted December 20, 2012 αγαπητέ Elfocrash, αφού κάνεις εσύ τα request μπορείς να κλειδώσεις το topic. Den epitrepete na voh8ame? To topic einai gia genikh voh8eia twn users, oxi gia na mathete eseus l2j deving. Upotuthete oti gia na to anoigete kserete. Kai mhn mou peis oti kapoio apo auta ta request htan diskolo. Alla den mporeis na to anoigeis kai na afhneis autous pou sou kanoun request ksekremastous. An exw kapou adiko diorthwse me.
Dεbian Posted December 20, 2012 Posted December 20, 2012 Den epitrepete na voh8ame? To topic einai gia genikh voh8eia twn users, oxi gia na mathete eseus l2j deving. Upotuthete oti gia na to anoigete kserete. Kai mhn mou peis oti kapoio apo auta ta request htan diskolo. Alla den mporeis na to anoigeis kai na afhneis autous pou sou kanoun request ksekremastous. An exw kapou adiko diorthwse me. δεν αντιλέγω, αλλά όπως είπα τα πιο πολλά request θα αργήσουν γιατί είμαι απασχολημένος. anyway, το topic ας μείνει ως έχει για να βοηθάμε όλοι μαζί όσο μπορούμε.
Vegas Posted December 20, 2012 Posted December 20, 2012 ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: config/aCis.properties =================================================================== --- config/aCis.properties (revision 19) +++ config/aCis.properties (working copy) @@ -208,4 +208,24 @@ +# Every member who reach 40 level and automatically gets dismissed from clan +# takes an a-beep-t of adena for reward. +AllowAcademyLeaveReward = True Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 19) +++ java/net/sf/l2j/Config.java (working copy) @@ -188,6 +188,18 @@ + public static boolean ALLOW_ACADEMY_LEAVE_REWARD; + // -------------------------------------------------- // Clans settings // -------------------------------------------------- @@ -1034,6 +1046,18 @@ + ALLOW_ACADEMY_LEAVE_REWARD = Boolean.parseBoolean(aCis.getProperty("AllowAcademyLeaveReward", "True")); } catch (Exception e) { Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 19) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -1945,6 +1945,12 @@ // receive graduation gift getInventory().addItem("Gift", 8181, 1, this, null); // give academy circlet + + if (Config.ALLOW_ACADEMY_LEAVE_REWARD) + { + getInventory().addItem("Adena", 57, 100000, this, null); // give adena + sendMessage("You got few adena for this journey, enjoy."); + } } if (isSubClassActive()) αυτό είναι για το academy adena, το άλλο feature αύριο. But i only earn the adena in my inventory ke to message katw sto chat ine san tou accademy pu sou leei euxaristoume ke vgikes k.l.p. (if it is possible) na to kaneis px me yellow letter (opws ta drop pou sikwneis) You have earned 1.000.000 from accademy complete. katalaves? (To lew an den variese epeidh den fenete... ke me html tha itan omorfo.
Guest Elfocrash Posted December 20, 2012 Posted December 20, 2012 But i only earn the adena in my inventory ke to message katw sto chat ine san tou accademy pu sou leei euxaristoume ke vgikes k.l.p. (if it is possible) na to kaneis px me yellow letter (opws ta drop pou sikwneis) You have earned 1.000.000 from accademy complete. katalaves? (To lew an den variese epeidh den fenete... ke me html tha itan omorfo. Des to reply mou sto reply sou pio panw
Napster321 Posted December 20, 2012 Posted December 20, 2012 Ena html sto data/html/mods me name commands.htm me periexomeno to eksis: <html><title>Voiced Commands</title> <body> <center> <font color="LEVEL">Choose The Command</font> <table> <tr><td align=center><button action="bypass voiced_survey" value=".survey" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr> <tr><td align=center><button action="bypass voiced_menu" value=".menu" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr> </table> <br><br> </body> </center></html> kai ena core patchaki: ### Eclipse Workspace Patch 1.0 #P l2jesios_gameserver Index: java/com/l2jesios/gameserver/handler/VoicedCommandHandler.java =================================================================== --- java/com/l2jesios/gameserver/handler/VoicedCommandHandler.java (revision 164) +++ java/com/l2jesios/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -73,6 +73,8 @@ registerVoicedCommandHandler(new VoiceInfo()); + registerVoicedCommandHandler(new VoicedCommands()); + registerVoicedCommandHandler(new StriderRaceCMD()); registerVoicedCommandHandler(new Antibot()); Index: java/com/l2jesios/gameserver/handler/voicedcommandhandlers/VoicedCommands.java =================================================================== --- java/com/l2jesios/gameserver/handler/voicedcommandhandlers/VoicedCommands.java (revision 0) +++ java/com/l2jesios/gameserver/handler/voicedcommandhandlers/VoicedCommands.java (working copy) @@ -0,0 +1,54 @@ +/* + * 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 com.l2jesios.gameserver.handler.voicedcommandhandlers; + +import com.l2jesios.gameserver.handler.IVoicedCommandHandler; +import com.l2jesios.gameserver.model.actor.instance.L2PcInstance; +import com.l2jesios.gameserver.network.serverpackets.NpcHtmlMessage; + +public class VoicedCommands implements IVoicedCommandHandler +{ + private static final String[] _voicedCommands = + { + "info" + + }; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (command.startsWith(_voicedCommands[0])) + { + sendHtml(activeChar); + } + + return true; + } + + private static void sendHtml(L2PcInstance activeChar) + { + String htmFile = "data/html/mods/commands.htm"; + + NpcHtmlMessage msg = new NpcHtmlMessage(5); + msg.setFile(htmFile); + activeChar.sendPacket(msg); + } + + @Override + public String[] getVoicedCommandList() + { + return _voicedCommands; + } +} \ No newline at end of file Den einai testarismeno alla fenetai ok. Den tha doulepsei se frozen. Thes to voiced command bypass system tou esios. den ipirxe logos na to kaneis olo auto mono kai mono epeidi to atomo to exei pei 3eka8ara sto request tou Hi guys :) Paidia thelw ean vevaia mporeite na sygkentrwsw ola ta voiced command se 1 html mporeite na ftiaksete kati tetoio gia frozen? kai efwson tou eipe o dεbian oti 8a to exei etoimo se liges meres den ipirxe kan logos...
Recommended Posts