Jump to content
  • 0

Teleport With Timebar


Question

Posted (edited)

hello all i have make this in gatekeeper is for show a message with time bar.

ingame show me message + bar timer but do teleport without click [ OK ] button.

i need someone help me with this problem and do teleport if player click only [ OK ]

 

here is the code

            if (condition == COND_REGULAR)
            {
                ConfirmDlg showBar = new ConfirmDlg(SystemMessageId.WILL_BE_MOVED.getId());
                showBar.addZoneName(getX(), getY(), getZ());
                showBar.addTime(5000);
                player.sendPacket(showBar);

                doTeleport(player, whereTo);
                return;
            }
Edited by tazerman2

10 answers to this question

Recommended Posts

  • 0
Posted
this code is just one example.

You need to do DlgAnswer / L2Pcinstance to confirm the teleporter

 

This code shown is just one example

  • 0
Posted

 

this code is just one example.
You need to do DlgAnswer / L2Pcinstance to confirm the teleporter
 
This code shown is just one example

 

 

can you give me more information how can I do it?

  • 0
Posted (edited)

You put the action of OK button in the same spot than the bar call, kinda normal it fails. It's like if you requested a partition format but windows formated your computer without checking the answer. That would be sad.

 

Add it on DlgAnswer packet.

Edited by Tryskell
  • 0
Posted
if (L2TeleporterInstance.isAdminSummoning == true && Config.CONFIRM_FOR_TELEPORT)

activeChar.teleToLocation(L2TeleporterInstance.x, L2TeleporterInstance.y, L2TeleporterInstance.z, 0);

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