Jump to content

[Guide]Κάντε το δικό σας custom system


Recommended Posts

Γειά σας , πως λοιπόν μπορούμε να αρχίσουμε ένα custom java mod , δηλαδή πως θα αρχίσουμε το file ..?

 

Πρέπει να γίνουν 3 βασικά βήματα !!

 

1) Πάμε εκεί που θέλουμε πχ στο dp / voicedcommandhandler και κάνουμε το new file που είναι αναγκέο να γίνει .. η όπου αλλού θέλουμε εξαρτάτε απο το system που θέλουμε ..

 

2) Στην αρχή του file το πιο σημαντικό που έχουμε να κάνουμε είναι να περάσουμε το GNU licence

/*
* 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/>.
*/

 

Αλλιώς θα υπάρξουν προβλήματα αδειών .. τέσπα

 

3) και τώρα περνάμε

 

Public Class Filename { //Code here}

 

Και όπως στο code που έκανε πριν share o Dawn είδατε

 

public class logout implements IVoicedCommandHandler

 

 

Imports

 

Πολλές φορές θα πρέπει να κάνετε τα imports όπως στο code π έκανε share o dawn είδατε

 

import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

 

 

Αυτά τα ολίγα ,

 

-Revenger

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...