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

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