Jump to content
  • 0

Teleport In Acis


Question

Posted

TextBuilder tb = new TextBuilder();
NpcHtmlMessage html = new NpcHtmlMessage(1);
tb.append("<html><head><title>User Control Panel</title></head><body>");
tb.append("<center>");
tb.append("<td valign=\"top\"><font color=\"FF6600\">Where you start your journey " + activeChar.getName() + ".</font>");
tb.append("<button value=\"Castle Town of Giran\" action=\"bypass -h Startup_tele\" width=204 height=20>");
tb.append("<img src=\"l2ui_ch3.herotower_deco\" width=256 height=32 align=center>");
tb.append("</center>");
tb.append("</body></html>");
html.setHtml(tb.toString());
activeChar.sendPacket((L2GameServerPacket)html);
}

 

 

 

} else if (_command.startsWith("tele")) {
activeChar.teleToLocation(83420, 147928, -3399);

 

in startupsystem in last think , i cant teleport nothing happen , any idea?

4 answers to this question

Recommended Posts

  • 0
Posted

TextBuilder tb = new TextBuilder();

NpcHtmlMessage html = new NpcHtmlMessage(1);

tb.append("<html><head><title>User Control Panel</title></head><body>");

tb.append("<center>");

tb.append("<td valign=\"top\"><font color=\"FF6600\">Where you start your journey " + activeChar.getName() + ".</font>");

tb.append("<button value=\"Castle Town of Giran\" action=\"bypass -h Startup_tele\" width=204 height=20>");

tb.append("<img src=\"l2ui_ch3.herotower_deco\" width=256 height=32 align=center>");

tb.append("</center>");

tb.append("</body></html>");

html.setHtml(tb.toString());

activeChar.sendPacket((L2GameServerPacket)html);

}

 

 

 

} else if (_command.startsWith("tele")) {

activeChar.teleToLocation(83420, 147928, -3399);

 

in startupsystem in last think , i cant teleport nothing happen , any idea?

change

} else if (_command.startsWith("tele")) {
activeChar.teleToLocation(83420, 147928, -3399);

to

else if (_command.startsWith("tele"))
    {
      activeChar.teleToLocation(83420, 147928, -3399, 0);
    }

it works for me

  • 0
Posted

change

} else if (_command.startsWith("tele")) {
activeChar.teleToLocation(83420, 147928, -3399);

to

else if (_command.startsWith("tele"))
    {
      activeChar.teleToLocation(83420, 147928, -3399, 0);
    }

it works for me

Tnx worked, lock it

Guest
This topic is now closed to further replies.


  • Posts

    • 🔥 Upgrade Your Server's Visual Identity 🔥 Hello Community! We are proud to present the Shadowbane Collection – a premium, oriental-style visual suite designed specifically for Metin2 and Silkroad private servers. Forget about static, boring pages. Give your players a true "AAA" experience with a fully animated video header and a professional brand identity. 🎥 VIDEO PREVIEW   🐉 1. Shadowbane – Animated HTML Website Template A fully coded, responsive website template with a stunning video background. No coding skills required – just upload and configure! 🚀 Technology: HTML5 / CSS3 / JS (No PSD, ready code) 🎥 Animated Header: Loopable video background included (.mp4) 📱 Responsive: Works perfectly on Mobile & Desktop 📂 Pages Included: Home, Rankings, Register, Download, News 👉 DOWNLOAD WEBSITE TEMPLATE HERE       ⚔️ 2. Shadowbane – Game Logo & Text Effect Complete your branding with this matching Logo Template. It works as a Photoshop Text Effect – just type your server name! 🎨 Style: Oriental Gold & Brush Ink ⚡ Easy Edit: Smart Objects (One-click change) 🎁 Bonus: Social Media Kit included (Banner + Avatar) 👉 DOWNLOAD LOGO TEMPLATE HERE 🎁 SPECIAL LAUNCH DISCOUNT 🎁 For forum members, we have prepared a special code. Get 20% OFF on your entire order! CODE: LOVEM2 Elevate your server today with Pixarts.store  
    • Contact me on discord have an offer for you. l2avalon.net  
    • At this point, you’re better off buying server files that have actually been heavily tested by you or that you’ve personally played on. Working with public sources is a waste of time. These days, it’s also a waste of time to deal with files that have never powered a live server, or with people trying to sell you a story without real proof or a solid player base to back it up.
    • Hope someone someday will release this 😄
  • Topics

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