Jump to content
  • 0

Txt To .java


Question

Posted (edited)

Hello ppl,
i would like to know how to turn a java code in a txt file into .java and then how to install it.

Example : http://pastebin.com/aYrYUBFV

 

Also this code is for acis its has these features :

PvP name color system
PvP title color system
Custom starting spawn location
Social actions for words

Level protection for bosses
Custom title on new chars
Hopzone/Topzone vote system
AiO System
Vip System
Anti Farm System
Rb spawn announcement
Killing spree System
Pvp/Pk in title
Hero Anounce on enter
Castle lord announce on enter
War legend system
Olympiad Grade/Enchant Restriction System

Code for choosing between PvP/Pk title or normal title

 

 

Could you please check if the code is ok? just a fast one, if you see smthing wierd just let me know...

Thank you in advance

 

 

 

EDIT : dont give me a link with the original post,i deleted offline trade system, it caused to many errors.


Edited by stayros

3 answers to this question

Recommended Posts

  • 0
Posted

I don't know if it's ok... you can't turn this into .java, it's a patch that you need to apply to your code:

 

This...

#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/L2Attackable.java    (revision 3)
+++ java/net/sf/l2j/gameserver/model/actor/L2Attackable.java    (working copy)

This part is something like a header and shows you which file to modify, if the file don't exists - create it via eclipse's interface.

 

Below the header is the code that you should modify:

@@ -660,6 +660,17 @@
                                                                sp *= Config.CHAMPION_REWARDS;
                                                        }
                                                       
+                                                       if (attacker instanceof L2PcInstance)
+                                                       {
+                                                               L2PcInstance a = (L2PcInstance)attacker;
+                                                              
+                                                               if (a.isVip())
+                                                               {
+                                                                       exp *= Config.VIP_XP_SP_RATE;
+                                                                       sp *= Config.VIP_XP_SP_RATE;
+                                                               }
+                                                       }
+                                                      
                                                        // Check for an over-hit enabled strike
                                                        if (attacker instanceof L2PcInstance)
                                                        {
@@ -770,6 +781,17 @@

The "+" at the beginning of the line means that you should apply it in your code... if it's "-" you should remove the line from your code.

 

This is the manual patch applying... if the patch is created exactly for your revision, you can apply it automatically by eclipse:

Right click on the project -> Team -> Apply Patch... -> Follow the window that will appear.

  • 0
Posted (edited)

i wanted to see if i could make that a patch....i know how to apply a java code, well kind of ;P
the problem is that sometimes i get some errors that i cant solve.....

and the hard part is when you have a problem and you need to create a post,even if your question is 1 line answer..

 

EDIT : Thank you very much Tessa :)

Edited by stayros
Guest
This topic is now closed to further replies.


  • Posts

    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • https://jumpshare.com/share/L45ApA5PVrGN2O5Ua5pQ   Skill synchronization with the server: Launching and synchronizing animations, launching and synchronizing effects. All of this is tied to the server's timing  
  • 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..