Jump to content
  • 0

Txt To .java


stayros

Question

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • 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