Jump to content

Recommended Posts

  • 3 weeks later...
  • 3 weeks later...
Posted

errorguide.gif

1.Βρισκομε ενα java code Για παραδειγμα

On Subclass Add/Change Freaze Players

Index: /Server/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 345)
+++ /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 346)
@@ -8425,4 +8425,6 @@
     public boolean addSubClass(int classId, int classIndex)
     {
     	if (getTotalSubClasses() == 3 || classIndex == 0)
     		return false;
@@ -8430,4 +8432,8 @@
     	if (getSubClasses().containsKey(classIndex))
     		return false;
+    	
+    	startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+    	setIsParalyzed(true);
+    	sendMessage("You are paralized untill your subclass load.");

     	// Note: Never change _classIndex in any method other than setActiveClass().
@@ -8492,4 +8498,8 @@
         if (Config.DEBUG)
             _log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class.");
+        
+        setIsParalyzed(false);
+        stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+        sendMessage("You are unparalized.");

         return true;

2.Ανοιγουμε το eclipse και παμε εδώ

"java/net/sf/l2j/gameserver/model/actor/instance"

Foto

http://img202.imageshack.us/img202/8739/foto1x.png

3. Μετα ψάχνουμε L2PcInstance.java και το ανοιγουμε!

4.Οταν το ανοιξουμε παταμε ctrl + f και βαζουμε "if (getSubClasses().containsKey(classIndex))" Δηλαδη το πιο κοντινοτερο σημειο στα +

Foto

http://img444.imageshack.us/img444/9642/foto2qz.png

5.Μετα οταν το βρουμε αντιγραφουμε τα +

δηλαδη

+    	
+    	startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+    	setIsParalyzed(true);
+    	sendMessage("You are paralized untill your subclass load.");

6.Μετα το κανουμε paste στο σημιο που πρεπει

Foto

http://img171.imageshack.us/img171/9438/foto3q.png

Αυτο ηταν τωρα κατενετε το ιδιο και με το αλλο.

Αν εχουμε + & - Δειτε τι κανουμε

- public final int getMaxCp()

+ public int getMaxCp()

Σβηνουμε ολο το - και στην θεση του προσθετουμε το + δηλαδη καπως ετσι

- public final int getMaxCp()-Delete

+ public int getMaxCp()

Θα μεινη μονο αυτο και βγαζετε το +

+ public int getMaxCp()

 

Done

 

 

errorshare.gif

-Πως να βάλεις java code?

Ευκολο απλως δες το video!!

 

-Τι θα κάνω αν δεν με βοηθήσει?

Δες αυτα εδω τα Guide

 

errorvideo.gif

 

Δημιουργία από Εμένα

 

---------------------------------------------------

 

http://www.4shared.com/file/J551e-rC/java_code_video.html <~~ Download

Δεν ειναι δικο μου το link αν εχει προβληματα pm Cronos™

Δημιουργία από Cronos™

 

re man mporis na me help me afto to program kanis opios nane re pedes 8elw na kanw kati fix sta java ...

Posted

Πολύ καλό όμως έχουν γίνει κι'άλλα post για το ίδιο θέμα :D..Πάντως το θέμα είναι ότι βοηθάτε πολύ :)

  • 2 weeks later...
  • 1 month later...
  • 1 year later...
Guest
This topic is now closed to further replies.



  • Posts

    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Okay, I understand. First, to get started by contributing to open projects and learning along the way. Then, when you mention starting my own project privately, do you mean taking a free datapack like L2jMobius and trying to make it functional for an online server? Great, thank you very much — all this information is really helpful. I’ve been reaching out to several server admins here in Argentina, but it seems like none of them have the time or interest to take on an intern or assistant. xd   P.S.: Are you the creator of Hopzone? Brings back memories of when I was a kid, downloading servers at the cyber café. For two dollars, I could spend the whole day playing and eating candy like crazy.   Another question: between L2jMobius, L2jServer, and aCis, which one has ALL of its code free? As you probably noticed, I'm using ChatGPT to help me translate things, lol, and it suggested the following: Project Status Open Source Accepts Juniors? Difficulty L2JMobius Very active Semi-closed Partially (with patches) Medium-High L2JServer Active Fully open Yes (directly on GitHub) Medium aCis Semi-active Unofficial Not very clear Low
    • @Logan22 Are you logan from mmo-dev forum?
  • Topics

×
×
  • Create New...