Jump to content
  • 0

Προτως Κωδικας και θελω γνωμες τι λαθη πρεπει να προσεξω


BlackDevilDev

Question

Γεια σας παιδια αποφασισα να ξανα αρχισω το ψαξιμο στο γραψιμο κωδικα ,και θελω την βοηθεια σας εφτιαξα αυτο τον κωδικα .Εχω κανει καποια λαθη ?


### Eclipse Workspace Patch 1.0

#P L2J_DataPack

Index: dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java

===================================================================

--- dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java (revision 0)

+++ dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java (working copy)

@@ -0,0 +1,32 @@

+/*

+ * 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 handlers.voicedcommandhandlers;

+

+import com.l2jserver.gameserver.handler.IUserCommandHandler;

+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

+

+

+ public abstract class BlackDevilCommands implements IUserCommandHandler

+{

+ public void useVoicedCommand(String command, L2PcInstance activeChar, String params)

+ {

+ if(command.equalsIgnoreCase("hero"))

+ {

+ activeChar.setHero(true);

+ }

+

+ }

+}

\ No newline at end of file

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Γεια σας παιδια αποφασισα να ξανα αρχισω το ψαξιμο στο γραψιμο κωδικα ,και θελω την βοηθεια σας εφτιαξα αυτο τον κωδικα .Εχω κανει καποια λαθη ?


### Eclipse Workspace Patch 1.0

#P L2J_DataPack

Index: dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java

===================================================================

--- dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java (revision 0)

+++ dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java (working copy)

@@ -0,0 +1,32 @@

+/*

+ * 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 handlers.voicedcommandhandlers;

+

+import com.l2jserver.gameserver.handler.IUserCommandHandler;

+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

+

+

+ public abstract class BlackDevilCommands implements IUserCommandHandler

+{

+ public void useVoicedCommand(String command, L2PcInstance activeChar, String params)

+ {

+ if(command.equalsIgnoreCase("hero"))

+ {

+ activeChar.setHero(true);

+ }

+

+ }

+}

\ No newline at end of file

 

an kai uparxoun tetia para polla. nai ekanes... voicedcommandhandlers ebales kai meta to gyrises se implements IUserCommandHandler.... prepei na einai IVoiced oxi Iuser..... tespa psa3tw sto l2j frozen i esios i opou allou 8es uparxei idi.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...