
resuse
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 57
- Joined: Thu Oct 22, 2009 3:13 pm
Re: resuse
Hello,
If you want to reuse your skills in a abnormal way change their cooltime in the xml files.
Cheers,
iamcypher.
If you want to reuse your skills in a abnormal way change their cooltime in the xml files.
Cheers,
iamcypher.
-
- Posts: 5
- Joined: Wed Oct 21, 2009 5:19 pm
Re: resuse
admin command to reset skill's reuse time? WITH ADMIN COMMAND
Last edited by remla on Tue Nov 03, 2009 7:25 am, edited 1 time in total.
- Charus
- L2j Veteran
- Posts: 410
- Joined: Thu Feb 16, 2006 1:24 pm
Re: resuse
Edit the reuseTime for that skills at xml files.
- Copyleft
- Posts: 253
- Joined: Fri Feb 01, 2008 9:39 pm
Re: resuse
what about an admin command to reset skill's reuse time? quite useful I think
-
- Posts: 57
- Joined: Thu Oct 22, 2009 3:13 pm
Re: resuse
Hello,
I do consider this not useful since if you need to test a custom skill you just change it`s reuse time. Why would a admin need to reuse skills i mean, he doesn`t even need skills lol...
iamcypher.
I do consider this not useful since if you need to test a custom skill you just change it`s reuse time. Why would a admin need to reuse skills i mean, he doesn`t even need skills lol...
iamcypher.
- Charus
- L2j Veteran
- Posts: 410
- Joined: Thu Feb 16, 2006 1:24 pm
Re: resuse
Create the command by useing this method.remla wrote:admin command to reset skill's reuse time? im ask for this guys
Code: Select all
player.enableSkill([b]skillId[/b]);
-
- Posts: 5
- Joined: Wed Oct 21, 2009 5:19 pm
Re: resuse
iamcypher for event. Players skill with admin command..
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: resuse
you can check the code which is used for olympiad.
in OlympiadGame.removals():
in OlympiadGame.removals():
Code: Select all
// enable skills with cool time <= 15 minutesfor (L2Skill skill : player.getAllSkills()) if (skill.getReuseDelay() <= 900000) player.enableSkill(skill.getId());
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 57
- Joined: Thu Oct 22, 2009 3:13 pm
Re: resuse
Hello,
I made this code:
removed code until further notice ( not working yet)
Not much but it does the trick,
Thanks janiii,
iamcypher.
I made this code:
removed code until further notice ( not working yet)
Not much but it does the trick,
Thanks janiii,
iamcypher.
Last edited by iamcypher on Fri Nov 06, 2009 9:01 pm, edited 1 time in total.
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: resuse
sorry but why the hell do you want players to be able to reset their reuse time ? 
why not make it an admin command?

why not make it an admin command?
-
- Posts: 57
- Joined: Thu Oct 22, 2009 3:13 pm
Re: resuse
Hello,
This command is used for testing purpoces. Players can`t use what they don`t know.
iamcypher.
Edit: Reading code:
This command is used for testing purpoces. Players can`t use what they don`t know.
iamcypher.
Edit: Reading code:
Code: Select all
Index: E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/voicedcommandhandlers/reuse.java===================================================================--- E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/voicedcommandhandlers/reuse.java (revision 0)+++ E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/voicedcommandhandlers/reuse.java (revision 0)@@ -0,0 +1,53 @@+/*+ * This program is free software: you can redistribute it and/or modify it under+ * the terms of the GNU General Public License as published by the Free Software+ * Foundation, either version 3 of the License, or (at your option) any later+ * version.+ *+ * This program is distributed in the hope that it will be useful, but WITHOUT+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more+ * details.+ *+ * You should have received a copy of the GNU General Public License along with+ * this program. If not, see <http://www.gnu.org/licenses/>.+ */++package handlers.voicedcommandhandlers;++import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;+import net.sf.l2j.gameserver.model.L2Skill;+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;+import net.sf.l2j.gameserver.network.serverpackets.SkillCoolTime;++/**+ * This class resets the cooltime of all skills.+ *+ * @author Cypher+ */++public class reuse implements IVoicedCommandHandler+{+ private static final String[] _voicedCommands =+ {+ "reuse"+ };+ + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)+ {+ if (command.equalsIgnoreCase("reuse"))+ {+ for (L2Skill skill : activeChar.getAllSkills())+ activeChar.enableSkill(skill.getId());+ activeChar.sendSkillList();+ activeChar.sendPacket(new SkillCoolTime(activeChar));+ activeChar.sendMessage("Skills cooltime removed!");+ }+ return true;+ }++ public String[] getVoicedCommandList()+ {+ return _voicedCommands;+ }+}\ No newline at end of fileIndex: E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/MasterHandler.java===================================================================--- E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/MasterHandler.java (revision 6775)+++ E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/MasterHandler.java (working copy)@@ -221,6 +221,7 @@ private static void loadVoicedHandlers() { VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new stats());+ VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new reuse()); if (Config.L2JMOD_ALLOW_WEDDING) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding()); if (Config.BANKING_SYSTEM_ENABLED)\ No newline at end of file
-
- Posts: 11
- Joined: Fri Feb 19, 2010 5:08 pm
Re: resuse
Why wouldn't you make this an admin command? As you have it set up any player could use it.iamcypher wrote:Hello,
This command is used for testing purpoces. Players can`t use what they don`t know.
iamcypher.
Edit: Reading code:
Code: Select all
Index: E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/voicedcommandhandlers/reuse.java===================================================================--- E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/voicedcommandhandlers/reuse.java (revision 0)+++ E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/voicedcommandhandlers/reuse.java (revision 0)@@ -0,0 +1,53 @@+/*+ * This program is free software: you can redistribute it and/or modify it under+ * the terms of the GNU General Public License as published by the Free Software+ * Foundation, either version 3 of the License, or (at your option) any later+ * version.+ *+ * This program is distributed in the hope that it will be useful, but WITHOUT+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more+ * details.+ *+ * You should have received a copy of the GNU General Public License along with+ * this program. If not, see <http://www.gnu.org/licenses/>.+ */++package handlers.voicedcommandhandlers;++import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;+import net.sf.l2j.gameserver.model.L2Skill;+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;+import net.sf.l2j.gameserver.network.serverpackets.SkillCoolTime;++/**+ * This class resets the cooltime of all skills.+ *+ * @author Cypher+ */++public class reuse implements IVoicedCommandHandler+{+ private static final String[] _voicedCommands =+ {+ "reuse"+ };+ + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)+ {+ if (command.equalsIgnoreCase("reuse"))+ {+ for (L2Skill skill : activeChar.getAllSkills())+ activeChar.enableSkill(skill.getId());+ activeChar.sendSkillList();+ activeChar.sendPacket(new SkillCoolTime(activeChar));+ activeChar.sendMessage("Skills cooltime removed!");+ }+ return true;+ }++ public String[] getVoicedCommandList()+ {+ return _voicedCommands;+ }+}\ No newline at end of fileIndex: E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/MasterHandler.java===================================================================--- E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/MasterHandler.java (revision 6775)+++ E:/Projects/L2/Coding/eclipse/work/Clean Datapack/trunk/datapack_development/data/scripts/handlers/MasterHandler.java (working copy)@@ -221,6 +221,7 @@ private static void loadVoicedHandlers() { VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new stats());+ VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new reuse()); if (Config.L2JMOD_ALLOW_WEDDING) VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding()); if (Config.BANKING_SYSTEM_ENABLED)\ No newline at end of file
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
Re: resuse
lol guys.
there is already a command for that, just use //removereuse on selected target, thats all.
there is already a command for that, just use //removereuse on selected target, thats all.