Jump to content

IKnowWtf

Members
  • Posts

    284
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About IKnowWtf

Contact Methods

  • Telegram
    tutomi9@hotmai.com

Profile Information

  • Gender
    Male
  • Interests
    aCis Inner Circle

IKnowWtf's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. I doubt that you have that title (MXC C/D) without knowledge of real time changes in (any) IDE while using external editors. Conclusion - MXC became shithole or you're hater || flamer || in the worst case - retard. Eot.
  2. public Buffer(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(npcId); addTalkId(npcId); addFirstTalkId(npcId); } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { QuestState st = player.getQuestState(getName()); if (st == null) newQuestState(player); return "something.htm"; } @Override public String onTalk(L2Npc npc, L2PcInstance player) { return "something.htm"; } Nothing more than just that, povis.
  3. You're all just obvious shitspammers. The buffer has some important typos which won't allow to use it AT ALL :troll: @povis111 Check your strings from sql queries. Tip: a A b B Ignore if it only happens to unix-based platforms ( :y u no?:)
  4. It's not a cure... .. it's something much better :troll:
  5. 16 pages and there's still no reaction from the mods. It's not searching for a server but an obvious spam.
  6. Bro I appreciate your work but you could do it alot simplier, like: package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.gameserver.instancemanager.CastleManager; import net.sf.l2j.gameserver.model.entity.Castle; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.network.serverpackets.SiegeInfo; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; /** * @author Tommy * @version 1.00 */ public class L2MultiSiegeInstance extends L2NpcInstance { public L2MultiSiegeInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { if (command.startsWith("SiegeInfo")) { StringTokenizer s = new StringTokenizer(command); s.nextToken(); Castle castle = CastleManager.getInstance().getCastleById(Integer.parseInt(s.nextToken())); if (castle == null) { mainHtm(player, true); player.sendPacket(ActionFailed.STATIC_PACKET); } else player.sendPacket(new SiegeInfo(castle)); } } @Override public void showChatWindow(L2PcInstance player) { mainHtm(player, false); } private void mainHtm(L2PcInstance player, boolean nocastle) { NpcHtmlMessage html = new NpcHtmlMessage(5); StringBuilder sb = new StringBuilder(""); sb.append("<html><title>Tommy's Multi-Siege Manager</title>"); sb.append("<body><center>"); if (nocastle) sb.append("The castle you were searching is disabled."); else { sb.append("Choose which castle you wish to check:<br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 1\"><font color=\"LEVEL\">Gludio</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 2\"><font color=\"LEVEL\">Dion</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 3\"><font color=\"LEVEL\">Giran</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 4\"><font color=\"LEVEL\">Oren</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 5\"><font color=\"LEVEL\">Aden</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 6\"><font color=\"LEVEL\">Innadril</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 7\"><font color=\"LEVEL\">Goddard</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 8\"><font color=\"LEVEL\">Rune</font></a><br>"); sb.append("<a action=\"bypass -h npc_" + getObjectId() + "_SiegeInfo 9\"><font color=\"LEVEL\">Schuttgart</font></a><br>"); } sb.append("</center></body></html>"); html.setHtml(sb.toString()); player.sendPacket(html); } } For people who wants to give it a try - all you need is retype the npc to L2MultiSiege. It works well with aCis.
×
×
  • Create New...