EdenEternal Posted April 29, 2010 Posted April 29, 2010 hello maxcheaters! i have question i have add .farm command at my server. it's working perfect! and i want to add effect of teleport. for example as /unstuck command! because flagged players can use .farm command and escepe from battle! how to add unstuck effect to .farm command? p.s sorry for my english Quote
0 Matim Posted April 29, 2010 Posted April 29, 2010 Check Escape.java (For example from L2J Datapack SVN) activeChar.setTarget(activeChar); activeChar.disableAllSkills(); MagicSkillUse msk = new MagicSkillUse(activeChar, 1050, 1, unstuckTimer, 0); Broadcast.toSelfAndKnownPlayersInRadius(activeChar, msk, 810000/*900*/); SetupGauge sg = new SetupGauge(0, unstuckTimer); activeChar.sendPacket(sg); //End SoE Animation section EscapeFinalizer ef = new EscapeFinalizer(activeChar); // continue execution later activeChar.setSkillCast(ThreadPoolManager.getInstance().scheduleGeneral(ef, unstuckTimer)); return true; Quote
0 EdenEternal Posted April 29, 2010 Author Posted April 29, 2010 i have some errors [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:28: cannot find symbol [javac] symbol : class IvoicedCommandHandler [javac] location: package net.sf.l2j.gameserver.handler [javac] import net.sf.l2j.gameserver.handler.IvoicedCommandHandler; [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:46: cannot find symbol [javac] symbol: class IVoicedCommandHandler [javac] public class farm implements IVoicedCommandHandler [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:100: cannot find symbol [javac] symbol : variable unstuckTimer [javac] location: class net.sf.l2j.gameserver.handler.voicedcommandhandlers. farm [javac] MagicSkillUser msk = new MagicSkillUser(activeChar, Config.U NSTUCK_ANIMATION_ID, 1, unstuckTimer, 0); [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:102: cannot find symbol [javac] symbol : variable unstuckTimer [javac] location: class net.sf.l2j.gameserver.handler.voicedcommandhandlers. farm [javac] SetupGauge sg = new SetupGauge(0, unstuckTimer); [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:106: cannot find symbol [javac] symbol : class EscapeFinalizer [javac] location: class net.sf.l2j.gameserver.handler.voicedcommandhandlers. farm [javac] EscapeFinalizer ef = new EscapeFinalizer(activeChar); [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:106: cannot find symbol [javac] symbol : class EscapeFinalizer [javac] location: class net.sf.l2j.gameserver.handler.voicedcommandhandlers. farm [javac] EscapeFinalizer ef = new EscapeFinalizer(activeChar); [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:108: cannot find symbol [javac] symbol : variable unstuckTimer [javac] location: class net.sf.l2j.gameserver.handler.voicedcommandhandlers. farm [javac] activeChar.setSkillCast(ThreadPoolManager.getInstance().sche duleGeneral(ef, unstuckTimer)); [javac] ^ [javac] D:\LA2Base\GameServer\java\net\sf\l2j\gameserver\handler\voicedcomma ndhandlers\farm.java:109: cannot find symbol [javac] symbol : variable unstuckTimer [javac] location: class net.sf.l2j.gameserver.handler.voicedcommandhandlers. farm [javac] activeChar.setSkillCastEndTime(10+GameTimeController.getGame Ticks()+unstuckTimer/GameTimeController.MILLIS_IN_TICK); [javac] Quote
0 Matim Posted April 29, 2010 Posted April 29, 2010 You can't just add this code.. I told you look at this class: Escape.java from latest L2J Datapack (from SVN) And check how does it work. Quote
0 xAddytzu Posted April 29, 2010 Posted April 29, 2010 omg. learn java and don't ask for any (easy)errors Quote
0 EdenEternal Posted April 30, 2010 Author Posted April 30, 2010 i have trying but i can't do nothing.... any1 can help to add unstuck effect to .farm command? Quote
0 Matim Posted April 30, 2010 Posted April 30, 2010 I told you, Check Escape.java (For example from L2J Datapack SVN) and check how does it work. Quote
Question
EdenEternal
hello maxcheaters! i have question
i have add .farm command at my server. it's working perfect! and i want to add effect of teleport.
for example as /unstuck command!
because flagged players can use .farm command and escepe from battle!
how to add unstuck effect to .farm command?
p.s sorry for my english
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.