Jump to content

Recommended Posts

Posted

Hello!

I know have done many such Guides on how to pass a Java Code, but would like to show more detail

that there is another driver to see!

 

Open Eclipse and go to SVN His Gameserver we did Checkout!

java1.png

 

 

Open and click on Java!

java2.png

 

 

Ok, now we find the Java Code we want, me I chose this: http://www.maxcheaters.com/forum/index.php?topic=121108.0

Index: /Server/SkyLanceR's_IL_GS/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;

 

Now go to the path that tells us!

java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

java3x.png

 

 

Go To Java Code, And Copy This.... Like Photo.!

public boolean addSubClass(int classId, int classIndex)
     {
     	if (getTotalSubClasses() == 3 || classIndex == 0)
     		return false;

Photo:

java4.png

 

 

Open The L2PcInstance.Java, And Press ( Ctrl & F ), Αnd Paste what we did copy! Now Press Find Like Photo.

java5.png

 

Now you are here...

java6.png

 

 

Go To Java Code And Copy This:

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

Photo:

java7.png

 

 

After you have copy this, paste down from to: ( Like Photo )

      	if (getSubClasses().containsKey(classIndex))
     		return false;

 

Photo:

width=914 height=768http://img831.imageshack.us/img831/4956/java8.png[/img]

 

 

After you have paste this, delete all +

java9.png

 

 

After will be is like here:

java10.png

 

 

Now, Go To Java Code And Copy This: ( Like Photo )

       

if (Config.DEBUG)
             _log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class.");

Photo:

java11.png

 

 

Press ( Ctrl & F ), Αnd Paste what we did copy! Now Press Find Like Photo.

java12.png

 

 

Now You Are Here.

java13.png

 

 

Go To Java Code And Copy This:

+        
+        setIsParalyzed(false);
+        stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+        sendMessage("You are unparalized.");

         return true;

Photo:

java14.png

 

 

After you have copy this, paste down from to: ( Like Photo )

_log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class.");

Photo:

java15.png

 

 

After you have paste this, delete all +

java16.png

 

 

After will be is like here:

java17.png

 

 

Now Save And Make a Compile!

java18.png

 

 

You Have To Go In Game And Make a Sub Class!

width=962 height=768http://img594.imageshack.us/img594/1478/parai.png[/img]

 

 

Surely wonder how you'll know what to copy and pass it.

We see this in the code that tells us to take this copy....

 

@ @ @ @ 8425.6 -8425.4
     public boolean addSubClass (int classId, int classIndex)
     {
     if (getTotalSubClasses () == 3 | | classIndex == 0)
     return false;

 

We always look at this " @ @ @ @ 8425.6 -8425.4 "

then get the code that is underneath it and pass.

 

I hope to helped The Newbies.

The Guide Is Mine! No C/P

Credis: Me!

Posted

You will not always find a correct lines. If You are using the same server rev. as autor when he wrote the patch, the its ok. But if You have older / newer rev. then lines (for example: @ @ @ @ 8425.6 -8425.4) can not match with Yours ;)

 

Anyway, its good for newbies.

 

Take care

Posted

Anyway, it was explained few times, so its a bit pointless, but I will not lock it because its well made.

Posted

ok i got bored and i start reading all crap posted here  :)

 

Why you work on Packet Explorer ?

 

 

Ok so to apply a code  aka patch - diff  is simple

 

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

Copy code  in put in a  new tex , rename the newtex.txt  to  choseaname.diff 

 

open  Eclipse,  select  project, right click on  your project  - Team - Apply Patch, Brow to you  choseaname.diff    and pres finish :)

 

All done :)

 

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

 

I notice you do not know how to create a patch ore you do not use it on this forum you just paste the code and that is it.

After you made some change    right click on  your project  - Team - Create patch - select path . all done

Posted

i know i'm offtopic  but why when i  copile with eclipse i get this

[exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, The system cannot find the file specified

 

but it still builds succesfuly..

 

 

Posted

This guide is well explained from other members,why again?

When this section will have the "+" at guides to -finally- help, really the newbies developers to start working/trying and making more things to their packs.

 

Anyway as Matim said is well made...

Gratz for your time

Posted

i needed this some time ago, but now its too late :(

thanks anyway :D maybe ill need it again.

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

    • This update resaves 25_25 from the original (with sounds) (without the cave below) Some emitter fixes (removed waterfalls with high-poly meshes) The geodata is old, but it works Everything else is unchanged Download P.S. The effect files are taken from the high client for Interlude, so if you're experiencing critical skills, use the default ones for your Version.  
    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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