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

    • Γεια σε ολους, προσπαθω εδω και 2 μερες να κανω αυτο το πραγμα να λειτουργει. το καταφερα για ενα διαστημα 5 ωρων. αλλα φαινεται οτι το discord μου κανει block to dll. ή κατι αλλο που δεν μπορω να ειμαι σιγουρος για το τι φταιει... αν καποιος γνωριζει κατι ας στειλει ενα pm να το δουμε μαζι.  *το source το εφιαξα εγω. https://youtu.be/kMvrbo9VBZc  ενα βιντεο που δειχνει πως δουλευε πριν σταματησει να δουλευει...   
    • thank you, please move to the desired category
    • wrong section, you need move this post to https://maxcheaters.com/forum/72-marketplace-l2packs-files/
    • Unlock Unlimited Access with GoProxy's Residential Proxies!   Experience seamless, secure, and unrestricted connectivity worldwide with GoProxy's Unlimited Residential Proxies. Our service offers access to a global network of rotating residential IPs, ensuring top performance for your large-scale data collection, streaming, and more.     ✔️Unlimited Traffic & IPs: Enjoy unrestricted access with our rotating residential proxies, delivering high performance through a vast global IP pool. ✔️High Success Rate: Achieve a 99.96% success rate with a rapid 0.6-second response time, ensuring efficient and reliable operations. ✔️Flexible Sessions: Customize IP rotation to fit your project needs, with options for automatic rotation and sticky sessions lasting up to 60 minutes. ✔️Global Coverage: Access IPs from over 120 countries, making it ideal for businesses requiring high bandwidth without region-specific constraints.     All plans include unlimited traffic and IPs, unlimited concurrent requests, and access to real residential IP addresses. Elevate your online operations with GoProxy's Unlimited Residential Proxies—your smart choice for large-scale projects.   👉 Learn more and get started today: GoProxy Unlimited Proxies
  • Topics

×
×
  • Create New...