Page 1 of 1
Teloport+ Unstuck
Posted: Sun Sep 13, 2009 4:23 pm
by Punisher
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number:
L2JDP Revision
Number:
How can I do when a char teleports to have a delay like unstuck? 5 secconds to teleport etc and has this blue thing arround?
Re: Teloport+ Unstuck
Posted: Sun Sep 13, 2009 4:36 pm
by DrHouse
delayed task I guess. Check unstuck handler
Re: Teloport+ Unstuck
Posted: Sun Sep 13, 2009 4:57 pm
by Punisher
yeah but how can i put it for example here:
Code: Select all
<tr><td ><button value="Screaming Swamp" action="bypass -h npc_%objectId%_goto 525" width=110 height=24 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr></font></a></td></tr><tr><td><br></td></tr>
Re: Teloport+ Unstuck
Posted: Sun Sep 13, 2009 6:51 pm
by Punisher
bump
Re: Teloport+ Unstuck
Posted: Sun Sep 13, 2009 11:38 pm
by devo
for that you will have to edit L2TeleporterInstance
Re: Teloport+ Unstuck
Posted: Mon Sep 14, 2009 11:41 am
by Punisher
I have found already, thx....
But It will work like this
Code: Select all
if (actualCommand.equalsIgnoreCase("gotod")) { int npcId = getTemplate().npcId; switch (npcId) { case 31095: // case 31096: // case 31097: // case 31098: // Enter Necropolises case 31099: // case 31100: // case 31101: // case 31102: // case 31114: // case 31115: // case 31116: // Enter Catacombs case 31117: // case 31118: // case 31119: // player.setIsIn7sDungeon(true); break; case 31103: // case 31104: // case 31105: // case 31106: // Exit Necropolises case 31107: // case 31108: // case 31109: // case 31110: // case 31120: // case 31121: // case 31122: // Exit Catacombs case 31123: // case 31124: // case 31125: // player.setIsIn7sDungeon(false); break; } if (st.countTokens() <= 0) { return; } int whereTo = Integer.parseInt(st.nextToken()); if (condition == COND_REGULAR) { MagicSkillUse msk = new MagicSkillUse(player, 1050, 1, 10, 0); Broadcast.toSelfAndKnownPlayersInRadius(player, msk, 810000/*900*/); SetupGauge sg = new SetupGauge(0, 10); player.sendPacket(sg); doTeleport(player, whereTo); return;
Re: Teloport+ Unstuck
Posted: Mon Sep 14, 2009 3:34 pm
by wasabi2k
it wont since you will active the animation but at the same moment teleport the player so we dont really see anything of the animation only way to make it work is to implement a delay by using a Runnable probably.
Re: Teloport+ Unstuck
Posted: Mon Sep 14, 2009 4:28 pm
by Punisher
If I put Long delay = 1000; ?
or this:
long delay = 1000;
ThreadPoolManager.getInstance().scheduleGeneral(this, fastSchedule ? 0 : delay);
doTeleport(player, whereTo);
Re: Teloport+ Unstuck
Posted: Mon Sep 14, 2009 4:55 pm
by Punisher
But the problem is that I cant do it Runnabe :S
Re: Teloport+ Unstuck
Posted: Tue Sep 15, 2009 6:56 am
by _DS_
Cast skill with type TELEPORT on the player.
Re: Teloport+ Unstuck
Posted: Tue Sep 15, 2009 9:56 am
by Punisher
Look I want to make like this gotod and I want to have delay....