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

 

 

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

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...