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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • ⚡ 5TB Storage + Gemini Advanced 12-18M upgrade active! Keeps your personal files 100% private with instant automated setup.     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • Since technical talk offends people, I believe I should return back to writting my Lineage 2 lore stories. Here's the next one:   Once upon a time, there was a boy and a small adorable wolf.    The boy really loved the wolf but as the wolf grow older and bigger, it became agressive and would bite the boy. One day the boy and the wolf decided to go to the city to buy potions. The road was long and hilly so the boy moved all his adena to the wolf bags to help his legs and reach the city easier.   When they reached the city, the boy tried to take the adena out of the wolf's bags. But the wolf would not ! He bit the boy and said "You will not get this adena back, this is my adena". The boy got angry. He decided to go to the pet master and ask for help.    "Pet master, pet master ! My wolf is big, bad and angry and it won't obey me. I want my adena back and it bites me. "   The pet master looked at the big angry wolf, then looked at the boy and said. "I have a solution for your problem young one. I have magic. Dark magic. I can turn your big bad elder wolf into a younger puppy for free, all you have to do is spell the magic chants. Nothing more, no wolf modifying wands, just your say".   The boy thought about it for a bit, and decided that he indeed wanted to turn things back. But when he was about to spell the magic words, guards arrived at the pet master.    The city guard captain said "Is this the big bad angry wolf that bites people and doesn't give back his adena ? We will kill this wolf !"    For a moment the boy hesitated but he said "This wolf is big bad and angry, but I love this wolf and I dont want it to die ! Please don't kill the big bad angry wolf." But the boy was not fast enough. The guards jumped the wolf and started slashing on him with their swords. The boy didn't know what to do, so in it its final moments right as the wolf was about to die, it spelled the magic words. "Pet master, make my wolf young and adorable again !"   But he was not fast enough. The wolf got slashed and killed by the guards just one moment before the boy could finish his last word.    But as the words came out of his mouth, with the wolf's dead body on the floor, a younger wolf manifested out of thin air. The magic was real. The guards got scared and run away. Now the boy was left with a dead old bad angry wolf and next to him an alive younger version.    The boys joy was even bigger when it opened the new wolfs bags and his adena was finally there. He took the adena and went back to buy potions in the city.   Twenty four hours later, the boy couldn't believe how his fortune would change ...   (No AI was used to write this story)
    • This is like 2017 MaxCheaters. i love it.
    • NEW SEASON GRAND OPENING FROM - 30 OCTOBER 2026, FRIDAY, 20:00 +2 GMT !
    • My bug report was a proper submission. I shouldn't have shown the exploit, I will accept that. Let's end it here. 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..