Jump to content

Question

Posted

What i have to do to change this? when i press fake death its goes down but i cant stand until i write /stand , can i somehow make it so to second press on fake death force to stand? i hope i was clear 😕

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

You can check if the skill ID is FakeDeath and if the effect is in use: in this case you exit the effect.

 

L2PcInstance.java #useMagic, find the toogle skill check inside the method and add the following code.

 

if (skill.getId() == 60)
                    effect.exit(true);

 

 

Edited by laRoja
  • Upvote 1
  • 0
Posted (edited)

i found it by search in here.you could as well... from "Zake",
but thats how official skill works. you dont have to edit that :/

L2Character.java
===============================================================

 

search~>  public final void stopFakeDeath(L2Effect effect) 
and replace the whole method with:


+public final void stopFakeDeath(L2Effect effect)
+{
+    if (effect == null)
+        stopEffects(L2EffectType.FAKE_DEATH);
+    else
+        removeEffect(effect);
+
+    // if this is a player instance, start the grace period for this character (grace from mobs only)!
+    if (this instanceof L2PcInstance)
+    {
+        ((L2PcInstance) this).setIsFakeDeath(false);
+        ((L2PcInstance) this).setRecentFakeDeath(true);
+    }
+
+    ChangeWaitType revive = new ChangeWaitType(this,ChangeWaitType.WT_STOP_FAKEDEATH);
+    broadcastPacket(revive);
+    //TODO: Temp hack: players see FD on ppl that are moving: Teleport to someone who uses FD - if he gets up he will fall down again for that client -
+    // even tho he is actually standing... Probably bad info in CharInfo packet?
+    broadcastPacket(new Revive(this));
+ }


L2PcInstance.java
=============================================
Search the method~>  doDie 

+synchronized (this)
+    {
+        if (isFakeDeath())
+            stopFakeDeath(null);
+    }

Edited by Irrelevant
  • 0
Posted (edited)

http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/skills/effects/EffectFakeDeath.java

 

@Override
    public void onStart()
    {
        if (getEffected().isFakeDeath())
        {
            getEffected().stopFakeDeath(this);
            return;
        }
        
        getEffected().startFakeDeath();
    }

 

edit onStart method like this

Edited by Zake
  • 0
Posted (edited)
15 hours ago, dramaa93 said:

What i have to do to change this? when i press fake death its goes down but i cant stand until i write /stand , can i somehow make it so to second press on fake death force to stand? i hope i was clear 😕

in file RequestMagicSkillUse.java add this lines

 

            if(activeChar.getPet() != null && skill.getId() == 7021)
                activeChar.getPet().useMagic(skill, _ctrlPressed, _shiftPressed);

 

//ADD THIS LINES -->

            if (skill.getId() == 60 && activeChar.isFakeDeath())
            {
                activeChar.stopFakeDeath(null);
                return;
            }

// <-- ADD THIS LINES

            activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);

 

i hope to help

Have Fun !!!!

Edited by BillyMan
  • 0
Posted
3 hours ago, Zake said:

http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/skills/effects/EffectFakeDeath.java

 

@Override
    public void onStart()
    {
        if (getEffected().isFakeDeath())
        {
            getEffected().stopFakeDeath(this);
            return;
        }
        
        getEffected().startFakeDeath();
    }

 

edit onStart method like this

i just tested that & isn't working :/

Guest
This topic is now closed to further replies.


  • Posts

    • Thank you for sharing this with us!   
    • Server L2 Reborn x1 C4 Signature   I am looking to buy a client modification, such as l2.ini or other possible files on the server The server uses SmartGuard protection, but as far as I understand, not all files are checked before launch   Сервер L2 Reborn x1 C4 Signature Ищу возможность приобрести модификацию клиента, например l2.ini или других возможных файлов на сервере. На сервере установлена защита SmartGuard, но, насколько я понимаю, не все файлы проверяются перед запуском. _______________________________________________________________ https://join.skype.com/invite/C72FPnumKn7e - Skype https://t.me/rebornclient - Telegram  
    • 🎉 The Big Moment Has Arrived! 🎉   Tomorrow is the day we've all been waiting for! L2KvN is opening its gates again, and we are waiting for you all to start this epic journey together! 🌟   🗓️ Date: November 17, 2024 ⏰ Time: 20:00 Greece (Athens), Russia (Moscow), Lithuania 18:00 United Kingdom 13:00 USA (Eastern Time), Argentina 10:00 AM US (Pacific Time) 14:00 Brazil 05:00 Russia (Vladivostok) ✨ What awaits you: ⚔️ Unique gameplay and intense PvP encounters 🎁 Exclusive events and rich rewards 👥 Live community and instant support 📈 Continuous upgrades for the ultimate experience 💬 Bring your friends, organize your teams, and get ready to conquer the world of L2KvN! 📢 Don't forget: We are here to help you! If you are a Clan Leader or Streamer, please contact us to become a part of this great community. 🛡️ The countdown is over – tomorrow we start! The game is just beginning… again! 💪   🌍 Dating in the world of L2KvN!
    • Very cool.   Unfortunately, I can't afford this fee.
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...