Jump to content
  • 0

[Question]Demonic Swords Transformation


Question

Posted

Not sure if the right section but here we go.

 

Is it possible to remove the transformation for when someone picks up any of the demonic swords on H5 to make it the way it used to be before on IL-older? If so I would appreciate some tips on how to do it. :)

 

 

 

 

 

 

 

I am a beginner, so don't judge me. haha

 

 

 

 

 

Regards.

11 answers to this question

Recommended Posts

  • 0
Posted (edited)

This is the worst way ever but should work... as the first solution...

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/instancemanager/TransformationManager.java
===================================================================
--- java/com/l2jserver/gameserver/instancemanager/TransformationManager.java (revision 6223)
+++ java/com/l2jserver/gameserver/instancemanager/TransformationManager.java (working copy)
@@ -46,7 +46,7 @@
  public boolean transformPlayer(int id, L2PcInstance player)
  {
  L2Transformation template = getTransformationById(id);
- if (template != null)
+ if ((template != null) && (id != 301) && (id != 302))
  {
  L2Transformation trans = template.createTransformationForPlayer(player);
  trans.start();
 
Edited by ^Wyatt
  • 0
Posted

U could try something like...

 

 

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/model/CursedWeapon.java
===================================================================
--- java/com/l2jserver/gameserver/model/CursedWeapon.java (revision 6193)
+++ java/com/l2jserver/gameserver/model/CursedWeapon.java (working copy)
@@ -30,7 +30,6 @@
 import com.l2jserver.gameserver.ThreadPoolManager;
 import com.l2jserver.gameserver.datatables.SkillTable;
 import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;
-import com.l2jserver.gameserver.instancemanager.TransformationManager;
 import com.l2jserver.gameserver.model.L2Party.messageType;
 import com.l2jserver.gameserver.model.actor.L2Attackable;
 import com.l2jserver.gameserver.model.actor.L2Character;
@@ -81,14 +80,13 @@
  private L2ItemInstance _item = null;
  private int _playerKarma = 0;
  private int _playerPkKills = 0;
- protected int transformationId = 0;
  
- private static final int[] TRANSFORM_IDS = new int[]
- {
- 3630,
- 3631
- };
+ // protected int transformationId = 0;
  
+ /*
+  * private static final int[] TRANSFORM_IDS = new int[] { 3630, 3631 };
+  */
+ 
  public CursedWeapon(int itemId, int skillId, String name)
  {
  _name = name;
@@ -311,7 +309,7 @@
  
  public void cursedOnLogin()
  {
- doTransform();
+ // doTransform();
  giveSkill();
  
  SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.S2_OWNER_HAS_LOGGED_INTO_THE_S1_REGION);
@@ -349,7 +347,7 @@
  _player.addSkill(skill, false);
  skill = SkillTable.FrequentSkill.VOID_FLOW.getSkill();
  _player.addSkill(skill, false);
- _player.setTransformAllowedSkills(TRANSFORM_IDS);
+ // _player.setTransformAllowedSkills(TRANSFORM_IDS);
  if (Config.DEBUG)
  {
  _log.info("Player " + _player.getName() + " has been awarded with skill " + skill);
@@ -357,42 +355,17 @@
  _player.sendSkillList();
  }
  
- public void doTransform()
- {
- if (_itemId == 8689)
- {
- transformationId = 302;
- }
- else if (_itemId == 8190)
- {
- transformationId = 301;
- }
- 
- if (_player.isTransformed() || _player.isInStance())
- {
- _player.stopTransformation(true);
- 
- ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
- {
- @Override
- public void run()
- {
- TransformationManager.getInstance().transformPlayer(transformationId, _player);
- }
- }, 500);
- }
- else
- {
- TransformationManager.getInstance().transformPlayer(transformationId, _player);
- }
- }
+ /*
+  * public void doTransform() { if (_itemId == 8689) { transformationId = 302; } else if (_itemId == 8190) { transformationId = 301; } if (_player.isTransformed() || _player.isInStance()) { _player.stopTransformation(true); ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() {
+  * @Override public void run() { TransformationManager.getInstance().transformPlayer(transformationId, _player); } }, 500); } else { TransformationManager.getInstance().transformPlayer(transformationId, _player); } }
+  */
  
  public void removeSkill()
  {
  _player.removeSkill(_skillId);
  _player.removeSkill(SkillTable.FrequentSkill.VOID_BURST.getSkill().getId());
  _player.removeSkill(SkillTable.FrequentSkill.VOID_FLOW.getSkill().getId());
- _player.untransform();
+ // _player.untransform();
  _player.sendSkillList();
  }
  
@@ -459,7 +432,7 @@
  
  // Disable All Skills
  // Do Transform
- doTransform();
+ // doTransform();
  // Add skill
  giveSkill();
  
 
  • 0
Posted

Thank you a lot for taking your time to reply. :D I wanted it so badly because I can't stand those transformations.

  • 0
Posted (edited)

Now I can't help you but try CTRL + H "cursedweapon" in your workspace and check if it's another transform method somewhere else 

 

Edit: I did it and I don't find any other transform method for cursed weapons... are u sure that what I posted doesn't work?...

Edited by ^Wyatt
  • 0
Posted (edited)

 

This is the worst way ever but should work... as the first solution...

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/instancemanager/TransformationManager.java
===================================================================
--- java/com/l2jserver/gameserver/instancemanager/TransformationManager.java (revision 6223)
+++ java/com/l2jserver/gameserver/instancemanager/TransformationManager.java (working copy)
@@ -46,7 +46,7 @@
  public boolean transformPlayer(int id, L2PcInstance player)
  {
  L2Transformation template = getTransformationById(id);
- if (template != null)
+ if ((template != null) && (id != 301) && (id != 302))
  {
  L2Transformation trans = template.createTransformationForPlayer(player);
  trans.start();
 

I will try it. :) But yeah I am sure about the other one not working, also rechecked to make sure I didn't miss anything.

Edited by funnyDog
Guest
This topic is now closed to further replies.
  • Posts

    • Hi everyone, Since I’m no longer interested in L2 servers, if anyone is willing to continue the project, let me know. I’m currently selling the entire project. DM me for more information if you’re genuinely interested. I can offer limited free support for the first couple of months. It is not cheap. The sale includes the domain, the recently fully redesigned website, the updater, the interface, server files with Lucera ext source, and the database (excluding account passwords, emails, and other private information; character data can remain).   Server for test: https://lineage2.gold/download Server Info: https://lineage2.gold/info Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113  
    • You invent yourself a life - bad for you, one of the inner core dev, fernandopm, which worked hard over aCis quests from 2011 to 2016 is argentinian. I teached him back in time to work and make proper quests. My dev team comes from 10+ countries and I'm myself french. "Racist/nationalist" card ? Not working bro.   Not sure why I should thank you to send me questions, and regarding bug reports, so far, I got none of yours in either discord, gitlab, or forums. I'm sorry if you feel "ignored", but that's more a psychanalyst you need to speak with if you put emotions towards someones' appreciation over a forum. I never ignore a bug report, and if so (like skills reports), it's because I got a bigger plan (skills refactor, in that case). In any case, I delivered cookies for the bug report/fix, even if it dated of months, with proper credits over changesets. "Victim card" ? Not really working, but ok, maybe you're "emotional".   I barely make money out of aCis, for the spent time - simply selling my services, or even coding/administrating a minecraft/L2J server would make far more money. Breaking intentionally things would be stupid. If you don't understand I'm not the only one working on that pack, I can't help you. Also, the scale of edits is sometimes extreme - AI L2OFF ? 1800 files added. How do you want everything works in a single shot ? "Exploiting noobz for money" card ? Still not working, or I'm a terrible businessman.   Meanwhile - you shadow advertise your project, L2JOne (since 2017 btw) - you should maybe start by the beginning saying you're a competitor and aCis is actually a spike in your foot. That also explains why you act like that. RusAcis got the exact same strategy, speaking bad of me, saying they got unique fixes (you speak about I break things, they break and recode things 4 times sometimes, btw), but successfully reselling latest revision with poorly executed stuff. "aCis is good, Tryskell is ok, but I solve all issues in extreme low time so I can piss over him" card ? Mmmmhhhh.   Our conversation ends here if you want, I don't force ppl to speak with me if they don't want - hopefully, people would understand I'm not the arrogant one and the one who doesn't want to talk, or even collaborate. :). I understand you got your own project and got no will to improve aCis.   NOTE : I'm extremely happy for your call of ExShowServerPrimitive with getValidGeoLocation, extremely impressive. Arrogant, no. Sarcastic ? Maybe.   Good night everyone.
    • Hi. @GX-Ext, svn does not work. is there anywhere else where we can get source code? Thank you so much.
  • 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..

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