Jump to content

Recommended Posts

Posted

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

Μπερδεύουν μερικές φορές τα "προγραμματιστικά" φόρουμ, με τα Gaming.. Συμβαίνουν αυτά...

 

 

apla o ka9e asxetos erxete kai to paristanei ka9igitis edw mesa, nta3ei den ton adikw, to low forum fteei, i oi mods pou eprepe na kanoun insta junk topics/guides apo tetia atoma. Ala i evgenia mas marane

Εσύ τελικά είσαι πιο χαζός απ'ότι περίμενα...

  • 1 month later...
Posted

loipon exw enan server  pou ton douleuw edw kai 2-3 mines xwris na exw kanei compile kai 8elw twra na perazw ena code mporw na to kanw afto ? an oxi mporw na kanw compile ton server mou xwris na xasw tipota apo osa exw kanei ?

  • 3 weeks later...
Posted

Εδώ θα δείξω πως περνάμε έναν κώδικα Java στο Project μας. Να ξέρετε, πως το δύσκολο δεν είναι το πως να περνάμε έναν κώδικα, αλλά το πως θα τον επερξεργαστούμε στην πορεία. Δεν θα είναι όλοι κομμένοι και ραμμένοι στα μέτρα μας! Θα χρειαστεί κάποτε να αντικαταστήσουμε ένα λάθος με το σωστό!

Θα δείξω με έναν μεγάλο κάπως κώδικα πως τον περνάμε, γιατί δε θα ήταν οδηγός αν σας έδειχνα με 3 σειρές κώδικα!!!

 

 

Αρχίζουμε...(Πάτα το "Show" για να δεις τον οδηγό).

 

 

Πάμε και βρίσκουμε πιον κώδικα θέλουμε να περάσουμε... Π.χ αυτόν εδώ:

Double Exp-Sp In Saturday.

 

Πάμε στο Eclipse--> Gameserver/head-src/com/l2jfrozen Config.Java και το ανοίγουμε.

Ψάχνουμε τις σειρές με Alt & F:

     public static float RATE_XP;
     public static float RATE_SP;

και από κάτω βάζουμε τις σειρές με το + που λέει ο κώδικας. Μετά σβήνουμε τα "+".

     public static float RATE_XP;
     public static float RATE_SP;
+    public static float SATURDAY_RATE_XP;
+    public static float SATURDAY_RATE_SP;

WqcmOb1.png

 

Το ίδιο και στις παρακάτω σειρές. Ψάχνουμε με Alt & F τις σειρές χωρίς "+"

     RATE_XP = Float.parseFloat(server.getProperty("RateXp", "1."));
     RATE_SP = Float.parseFloat(server.getProperty("RateSp", "1."));
+    SATURDAY_RATE_XP = Float.parseFloat(server.getProperty("SaturDayXp", "2."));
+    SATURDAY_RATE_SP = Float.parseFloat(server.getProperty("SaturDaySp", "2."));

Αφού τα περάσουμε, πατάμε "Αποθήκευση" ή (Control & S).

NOTE: Πριν ανεβάσω την φώτο που δείχνει τι σβήνουμε, θέλω να τονίσω κάτι... Δεν είναι όλα τα "Property" ίδια. Οπότε, όταν ψάχνουμε σειρές για να περάσουμε έναν κώδικα στα Config, Θα τις ψάχνουμε μέχρι εκεί που ανοίγει η παρένθεση. Δηλαδή χωρίς το "(server.getProperty("SaturDaySp", "2."));". Επειδή άλλα μπορεί να λένε (rates ή κάτι άλλο.getProperty), αναλόγως αυτόν που τα φτιάχνει.

Οπότε, αφού στο Frozen τα έχεις αλλιώς τα config, αντικαταστούμε το Server.getProperty με το rates.getProperty.

 

iKoKghC.png

 

 

Τώρα.. Συνεχίζουμε και πάμε:

Στο Config.Properties (Αναλόγως που τα έχει το project. Του τύπου που έφτιαξε τον κώδικα, τα rates του server στα properties, τα είχε σαν server.getProperty. Ενώ το Frozen τα'χει rates.getProperty. Άρα στα Config μας τα'χει σαν Rates.properties.

 

Rates.properties

# ------------------------
#  Normal Rates -
# ------------------------
RateXp = 1.00
RateSp = 1.00
+    SaturDayXp = 2.
+    SaturDaySp = 2.

Αυτό είναι για τα config μας! Έτσι ώστε να ωρίζουμε το σάββατο πόσο να είναι το xp/sp.

(Δεν νομίζω να χρεάζεται να δίνω φώτο πάλι για το τι ψάχνουμε και τι σβήνουμε σε έναν κώδικα).

 

Μετά πάμε, Gameserver/head-src/com/l2jfrozen/L2Npc.java

_    /**
_     * Return the Exp Reward of this L2Npc contained in the L2NpcTemplate (modified by _RATE_XP).<BR><BR>
_     */
_    public int getExpReward()
_    {         
_      return (int) (getTemplate().rewardExp * Config.RATE_XP);                
_    }
 
+        private int Savvato()
+        {
+             return Calendar.getInstance().get(Calendar.SATURDAY);
+        }
+        private int dayofweek()
+        {
+             return Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
+        }
 
+    /**
+     * Return the Exp Reward of this L2Npc contained in the L2NpcTemplate (modified by +RATE_XP).<BR><BR>
+     */
+    public int getExpReward()
+    {
+       if(dayofweek() == Savvato())
+           return (int) (getTemplate().rewardExp * Config.SATURDAY_RATE_XP);
+       else
+               return (int) (getTemplate().rewardExp * Config.RATE_XP);
+              
+    }
 
_    /**
_     * Return the SP Reward of this L2Npc contained in the L2NpcTemplate (modified by _RATE_SP).<BR><BR>
_     */
_    public int getSpReward()
_    {
_       return (int) (getTemplate().rewardSp * Config.RATE_SP);
_    }
 
+    /**
+     * Return the SP Reward of this L2Npc contained in the L2NpcTemplate (modified by +RATE_SP).<BR><BR>
+     */
+    public int getSpReward()
+    {
+       if(dayofweek() == Savvato())
+               return (int) (getTemplate().rewardExp * Config.SATURDAY_RATE_SP);
+       else
+           return (int) (getTemplate().rewardSp * Config.RATE_SP);

Στην παρακάτω φώτο δείχνω τι μας λέει ο κώδικας να σβήσουμε.. Όπου κόκκινο, τα σβήνουμε εντελώς. Με μαύρο σβήνουμε μόνο τα "+"
 
amera8W.png
 
Μετά, πηγαίνουμε Gameserver και  πατάμε διπλό κλικ, πάμε στο Build.xml, δεξί κλικ και Run as 1.

Μόλις τελειώσει σωστά, και χωρίς έρρορ, θα έχουμε περάσει τον κώδικα στο Project.

Πάμε πάλι C:\Users\blabla\workspace\trunk\gameserver\build, θα δούμε μέσα ένα L2JFrozen_Gameserver.rar.

Δεξί κλικ στο "L2JFrozen_Gameserver.rar" και μετά "Extrack files" και το βάζουμε στον φάκελο που δημιουργήσαμε στην αρχή.

 

 

Δεν είναι κάτι το πολύ δύσκολο να γίνουν τα παρακάτω. Σιγά σιγά καθώς περνάει ο καιρός, θα αρχίσετε να καταλαβαίνεται έναν κώδικα από μόνοι σας!

 

Καλή συνέχεια...

PREPEI NA PERASW TO JAVA CODE PRWTOY KANW COMPILE H KAI META TO COMPILE GINETE?

Posted

PREPEI NA PERASW TO JAVA CODE PRWTOY KANW COMPILE H KAI META TO COMPILE GINETE?

Καταρχήν απέφυγε τα caps.

προτιμότερο να κάνεις πρώτα το compile και μετά να αρχίσεις να περνάς ότι θες.

  • 1 year later...
Posted

Kalhspera paidia tha ithela na kano mia erotisi exw ena vasiko provlima 

exw ftiaksi enan l2j server  pack alla otan dokimasa na mpo sto server me to main l2.ini 

Pou exi ServerIpadress 127.0.0.1 

den anigi kan to game  enow otan vazo enous allou server pou pezo anigi kanonika xoris  fisika na me vazi sto server mou .....

Posted

Config checkare sto server.properties kai login.properties allakse tn ip kai valtin opws auti p vazeis sto .ini uparxei kai ena guide edw apla psakse..

  • 1 month later...
Posted

Έχεις λάθος το link. Ρίξε μια ματιά και θα το δεις. (2 φορές το http:// )

Ξανά βάλτο.

Posted (edited)

Έχεις λάθος το link. Ρίξε μια ματιά και θα το δεις. (2 φορές το http:// )

Ξανά βάλτο.

Περασε τελικα με την Last version http://subclipse.tigris.org/update_1.12.x

 

 Και με μια φορα παλι δν γινοταν τιποτα

Edited by Vortalhe
Posted

Περασε τελικα με την Last version http://subclipse.tigris.org/update_1.12.x

 

 Και με μια φορα παλι δν γινοταν τιποτα

Ναι, έχω την 1.10 εγώ στο link. Σωστά!

 

Καλή τύχη στο ξεκίνημα boy.

Posted

Ναι, έχω την 1.10 εγώ στο link. Σωστά!

 

Καλή τύχη στο ξεκίνημα boy.

Ευχαριστω πολυ και συχαρητιρια για το thread...http://www.maxcheaters.com/topic/90626-%CF%80%CF%89%CF%82-%CE%B1%CE%BD%CE%BF%CE%AF%CE%B3%CE%BF%CF%85%CE%BC%CE%B5-%CE%AD%CE%BD%CE%B1%CE%BD-l2-interlude-server-compiled/ ακολουθω αυτον τον οδηγο σου!

Posted

Ευχαριστω πολυ και συχαρητιρια για το thread...http://www.maxcheaters.com/topic/90626-%CF%80%CF%89%CF%82-%CE%B1%CE%BD%CE%BF%CE%AF%CE%B3%CE%BF%CF%85%CE%BC%CE%B5-%CE%AD%CE%BD%CE%B1%CE%BD-l2-interlude-server-compiled/ ακολουθω αυτον τον οδηγο σου!

Είναι πολύ παλιό το topic και οι φωτογραφίες δεν δουλεύουν.

Δεν σε βοηθάει καθόλου.

 

Δες αυτό το video (By AccessDenied). Θα σε βοηθήσει πολύ περισσότερο!

Posted (edited)

Είναι πολύ παλιό το topic και οι φωτογραφίες δεν δουλεύουν.

Δεν σε βοηθάει καθόλου.

 

Δες αυτό το video (By AccessDenied). Θα σε βοηθήσει πολύ περισσότερο!

ε τα ψηλο εβγαζα και απο αλλα thread αλλα θα δω το video αφου το λες ευχαριστω πολυ! μερικα part Δν υπαρχουν

Edited by Vortalhe
Posted (edited)

μερικα part δεν υπαρχουν

Part1 (How to install source, compile)

Part2 (How to set up mysql, navicat server)

Part3 (Enter login, set admin)

 

Τι εννοεις δεν υπαρχουν?

Edited by AccessDenied

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Even if I was reselling, as you claim, you got refunded down to the last penny. At least when I work with someone, I try to find a solution. Just because something didn’t work for you doesn’t mean it hasn’t worked for others. I’ve provided different kinds of services successfully, and I’ve even had several of your own clients come to me complaining about the mess you left behind, with unfinished code and ongoing issues.   Let’s be real. I supported you and always spoke positively about you until I realized that you only care about your wallet, not how your customers feel. That was disappointing. I don’t care much anymore, because some people change and some don’t. They stay comfortable being that way.   As for the family topic, I didn’t say anything bad or wrong. That was information I heard from a friend. And no, I won’t ban you. It’s not worth the energy to even open the admin panel. You can keep doing what you’re doing, but don’t claim you’re a good and clean person when you clearly don’t value other people’s time, money, or effort.   When you talk about being mature, your actions show the opposite. For once in your life, admit that you're still acting immature. Hopefully one day you'll understand how life really works and learn to move on. But until then, take responsibility and clean up the mess you've left behind.   TL;DR: I won’t be reading anything else, just grabbing popcorn and enjoying the show.
    • Gay whoever doesn't read it
    • Hey everyone, I’m reaching out for urgent support with my NPC stats—specifically Baium, who on my server seems to have gone full god mode. Apparently, I’m the "crazy dreamer" who believes Baium shouldn’t have over 4 million HP, 30k+ P. Atk, attack speed faster than a dagger, and more M. Atk than seven Antharas combined 😅. My server's developer (VILMIS) refuses to provide proper support, claiming I have no idea about the "real stats" and that I’m imagining things. I’ve tried modifying the values through the admin console, but nothing takes effect. I’m desperate—the server launches on 04/10, and I really want these stats to be closer to official NCSOFT values or at least something balanced and realistic. If anyone with experience can lend a hand or point me in the right direction, please reach out. I’d truly appreciate it 🙏    
    • Sure more parts from our discord conversation posted below. Please note that he blocked me while he is active on discord (he responded to a different discord account).   Could you please ban him @Atom?      
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock