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