Jump to content
  • 0

[help]Teleport Command


Question

Posted

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

  • 0
Posted

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;

  • 0
Posted

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]

  • 0
Posted

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.

  • 0
Posted

I told you, Check Escape.java (For example from L2J Datapack SVN) and check how does it work.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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