Jump to content
  • 0

Nevit's Hourglass


Question

Posted

Hi! maxcheaters. Anyone can help me to addapt this mod please? i use L2jServer (Master) - High Five version

Index: scripts/handlers/effecthandlers/EffectRecoBonus.java
===================================================================
--- scripts/handlers/effecthandlers/EffectRecoBonus.java	(revision 0)
+++ scripts/handlers/effecthandlers/EffectRecoBonus.java	(revision 0)
@@ -0,0 +1,73 @@
+package handlers.effecthandlers;
+
+import com.l2jserver.gameserver.model.L2Effect;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.skills.Env;
+import com.l2jserver.gameserver.templates.effects.EffectTemplate;
+import com.l2jserver.gameserver.templates.skills.L2EffectType;
+
+
+/**
+ * 
+ * @author JaJa
+ *
+ */
+
+public class EffectRecoBonus extends L2Effect {
+        
+        public EffectRecoBonus(Env env, EffectTemplate template)
+        {
+                super(env, template);
+        }
+
+        /**
+         * 
+         * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
+         */
+        @Override
+        public L2EffectType getEffectType()
+        {
+                return L2EffectType.BUFF;
+        }
+        
+        /**
+         * 
+         * @see com.l2jserver.gameserver.model.L2Effect#onStart()
+         */
+        @Override
+        public boolean onStart()
+        {
+                if (!(getEffected() instanceof L2PcInstance))
+                        return false;
+                
+                ((L2PcInstance) getEffected()).setRecomBonusType(1).setRecoBonusActive(true);
+                return true;
+        }
+        
+        /**
+         * 
+         * @see com.l2jserver.gameserver.model.L2Effect#onExit()
+         */
+        @Override
+        public void onExit()
+        {
+                ((L2PcInstance) getEffected()).setRecomBonusType(0).setRecoBonusActive(false);
+        }
+        
+        @Override
+        protected boolean effectCanBeStolen()
+        {
+                return false;
+        }
+        
+        /**
+         * 
+         * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
+         */
+        @Override
+        public boolean onActionTime()
+        {
+                return false;
+        }       
+        
+}
\ No newline at end of file 

all formulas has changed and i can't addapt this :L

 

Credits: JaJa

7 answers to this question

Recommended Posts

  • 0
Posted

I've checked a little H5's core, so your effect should extend the abstract class AbstractEffect which is located in com.l2jserver.gameserver.model.effects..

Also i can't see the method effectCanBeStolen(), so what it should do?

  • 0
Posted (edited)

Yep, so what it should do?

 

EDIT:

  • Moved "can be stolen" logic to L2Skill, it isn't related to the effect, but to the skill.

I see what is the logic now :lol:

You shouldn't override it then!

Edited by Tessa
Guest
This topic is now closed to further replies.


  • Posts

    • What webhosting are you using? You'll need to talk with administrators of the webhosting to open outgoing connections to port 1433, maybe they won't open it for you, instead, you should get a webhosting for mu online since they always have 1433 port open for outgoing connections. Also, make sure you have your 1433 TCP port open for incoming connections, for security, I suggest you exclusively add the cPanel IP Address to connect to your port 1433 in your firewall, so no one else can try to connect to your database. Let me know if you have any questions, happy to help.
    • He just doesn't answer, I've tried everything, Telegram, his own forum, everything, I don't know what's his deal, but I've tried for months
    • Send direct message to @Maxtor
    • Hello guys , does anyone know what files needed to use those cloaks for H5 client? I’m not using an interface and I don’t want to use one so there are any way to use them without interface? 
    • Closed beta testing starts in early October!        We’re looking for the most active and attentive players to help fine-tune the project before launch. This is your chance to be among the first to try out our new features and directly influence how the server develops.   What beta testers will do: — Check the client and core mechanics — Find bugs, errors, and inconsistencies — Evaluate the convenience and practicality of current solutions — Share detailed, constructive suggestions for improvement      Your feedback will be key to making the project balanced and comfortable for everyone.   Requirements: — Willingness to complete specific tasks — Experience playing on Interlude (PTS, clean client) — Experience with the HF client is a plus   Ready to help? The server launch is planned for early December, so now is the perfect time to join the test and make your contribution. To participate, you must send a direct message (DM) to one of the following: - Send a DM to our Telegram channel - Send a DM to our forum moderators: PrintF or EchØ - Send a DM to our Discord server admin @EchØ
  • 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