Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

  • 0
Posted

RECALL skilltype leads to L2SkillTeleport, L2SkillTeleport uses

 

				if (_recallType.equalsIgnoreCase("Castle"))
					loc = MapRegionData.getInstance().getLocationToTeleport(target, TeleportType.CASTLE);
				else if (_recallType.equalsIgnoreCase("ClanHall"))
					loc = MapRegionData.getInstance().getLocationToTeleport(target, TeleportType.CLAN_HALL);
				else
					loc = MapRegionData.getInstance().getLocationToTeleport(target, TeleportType.TOWN);

So edit MapRegionData#getLocationToTeleport(Creature creature, TeleportType teleportType) to fit your needs.

 

By default, you are teleported on a random location of the nearest town.

  • Thanks 1
  • 0
Posted (edited)
16 minutes ago, Tryskell said:

Escape usercommand, skill use 2100 for GMs and 2099 for regular users.

 

    <skill id="2099" levels="1" name="Escape: 60 seconds">
        <set name="target" val="TARGET_SELF" />
        <set name="hitTime" val="10000" />
        <set name="staticHitTime" val="true" />
        <set name="skillType" val="RECALL" />
        <set name="operateType" val="OP_ACTIVE" />
    </skill>

 

i see the time and nothing about coordinates...it's all set to be in giran now and i want to make it to talking island

Edited by KIDutz
  • 0
Posted (edited)
7 minutes ago, KIDutz said:

Thank you mate !

Since this method is used on numerous place and not only for /unstuck, you should care to clone the method and use it only for L2SkillTeleport, or to remove entirely the skill cast and make your own custom teleport method (broadcast MagicSkillUse packet, teleport, checks, etc).

 

Otherwise it will also affect legit ways of teleport (SoE, expel Clan Halls / Castle outsiders, etc).

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


×
×
  • Create New...