Jump to content

Question

Posted

Hello i have two problems.

1) Scroll of Caste and Scroll of Clan Hall, don' works, they make tp to town only. ( any solutions how to fix it ? )

2) i try to make custom teleport in Castle Npc.

where i need to add red market part, to make it working, because now i add teleport.html in html\chamberlain folder, then i add below code to chamberlain.html and i add loc to teleport.xml.

<a action="bypass -h npc_%objectId%_teleport">Teleport</a><br>

 

and all after this when you press on Teleport nothing happens.

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

OK i add text below to CastleChamberlain.java and now i see teleport List. what and where i need to add something else to actually active teleportation, because now i see list but its not teleporting.  Tnx sweets very much.

        else if (actualCommand.equalsIgnoreCase("teleport"))
        {
            if (!validatePrivileges(player, L2Clan.CP_CS_USE_FUNCTIONS))
                return;
            
            sendFileMessage(player, "data/html/chamberlain/teleport.htm");
        }

Edited by remigas
  • 0
Posted

Now, you have to create your bypass to teleport. Basically, that teleport thing to show HTM it pointless, as HTM is accessible normally. So, create your code to teleport there like player.teleToLocation(...

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..