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.

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...