Jump to content

IKnowWtf

Members
  • Posts

    284
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by IKnowWtf

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

  2. Nice one!I like it

     

    this is just an awesome share man! really thanks! :)

     

    :) thx

     

    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?:)

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

  4. It was a great server until admin transformed it...You went from x20 end game  adena to x25 and now to x30 ! You doubled seal stone and drop rate.

    Is this the game economy you had in mind when you launched server ? Will you listen to every request your

    small community makes ? And why you added delevel npc when a no-xp command already exists ? You want

    these crying noobs to delevel titan/mages and kill rbs/epics with no effort?

     

    With that move - boost the rates - I actually increased the community for over 200% :LOL: instead of giving up on the project while the deleveler use to erase the skills, so even titan don't have his buffs as long he won't reach the level to learn them.

     

    Currently the online counter is getting higher - the ol' community is also coming back. Perhaps it was a the bet move atleast instead of let the server die.

×
×
  • Create New...