Jump to content

vl4d

Members
  • Posts

    1,068
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by vl4d

  1. egw prosopika prin merika xronia anoi3a enan interlude kai me 2gb kai 10 mbps sta 70 online htan ok ade sta 80 arxizane na lene lagg kai lag xd twra ti na sou po se freya/h5 logika sta 40-50 8a eisia ok (aposa 3erw perimene kai kapion pou exei megaliteri mpiria)

     

    meta les oti exeis 24mbps oli afto exoume to 8ema posa ftaneis?? :P

    twra ama exeis 4gb ram kai sikoneis mono ton server sto pc kai mpenis apo kapou alou sto l2 ok 8a eisia ala ama noi3is kai to client pai asto 20 to polu...

  2. Θες μήπως να δείξεις το scriptάκι που έχεις; Γιατί μου φαίνεται γνωστό.. ;-/

    re to template pou exw einai rip kai prospa9o na to kano php apo html twra ama mporeis na me help ok ;)

    twra pio scriptaki les gt den 3erw kala ao php :P

  3. δεν βιαζομαι

    αρα να παω στο acid?

    acis* nai einai to kalitero free project (interlude) mporo na po kai kalitero apo polla private project...

     

    http://acis.i-live.eu/index.php?topic=157.0 try some scripts

     

    k kopse ayto t ilithio ifaki kathe fora p leei kapios kati petagese me 1 xaxaa k t paizeis eksipnos..

    re flore des ligaki ta reply apo kato kid ec to paizhs e3ipnos oxi egw kai den se rotisa ti lene sto forum egw 8elw na mou vgalis video oti afto pou les.. "enchant script"

     

     

  4. /*
    * This program is free software: you can redistribute it and/or modify it under
    * the terms of the GNU General Public License as published by the Free Software
    * Foundation, either version 3 of the License, or (at your option) any later
    * version.
    * 
    * This program is distributed in the hope that it will be useful, but WITHOUT
    * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    * details.
    * 
    * You should have received a copy of the GNU General Public License along with
    * this program. If not, see <http://www.gnu.org/licenses/>.
    */
    package custom.BossRespawn;
    
    
    import javolution.text.TextBuilder;
    
    import com.l2jserver.gameserver.instancemanager.GrandBossManager;
    import com.l2jserver.gameserver.model.actor.L2Npc;
    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
    import com.l2jserver.gameserver.model.quest.Quest;
    import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
    import com.l2jserver.gameserver.datatables.NpcTable;
    
    public class BossRespawn extends Quest
    {
    private static final int NPC_ID = 960;
    private static final int[] BOSSES = {29001, 29006, 29014, 29019, 29020, 29022, 29028, 29045};
    
    public BossRespawn(int questid, String name, String descr)
    {
    	super(questid, name, descr);
    	addFirstTalkId(NPC_ID);
    }
    
    public String onFirstTalk(L2Npc npc, L2PcInstance pc)
    {
    	if(npc == null || pc == null)
    		return null;
    
    	if(npc.getNpcId() == NPC_ID)
    	{
    		sendInfo(pc);
    	}
    		return null;
    }
    
    private void sendInfo(L2PcInstance activeChar)
    {
    	TextBuilder tb = new TextBuilder();
    	tb.append("<html><title>Grand Boss Info</title><body><br><center>");
    	tb.append("<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>");
    
    	for(int boss : BOSSES)
    	{
    		String name = NpcTable.getInstance().getTemplate(boss).getName();
    		long delay = GrandBossManager.getInstance().getStatsSet(boss).getLong("respawn_time");
    		if (delay <= System.currentTimeMillis())
    		{
    			tb.append("<font color=\"00C3FF\">" + name + "</color>: " + "<font color=\"9CC300\">Is Alive</color>"+"<br1>");
    		}
    		else
    		{
    			int hours = (int) ((delay - System.currentTimeMillis()) / 1000 / 60 / 60);
    			int mins = (int) (((delay - (hours * 60 * 60 * 1000)) - System.currentTimeMillis()) / 1000 / 60);
    			int seconts = (int) (((delay - ((hours * 60 * 60 * 1000) + (mins * 60 * 1000))) - System.currentTimeMillis()) / 1000);
    			tb.append("<font color=\"00C3FF\">" + name + "</color>" + "<font color=\"FFFFFF\">" +" " + "Respawn in : </color>" + " " + " <font color=\"32C332\"> " + hours + " : " + mins + " : " + seconts + "</color><br1>");
    		}
    	}
    
    	tb.append("<br><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>");
    	tb.append("</center></body></html>");
    
    	NpcHtmlMessage msg = new NpcHtmlMessage(NPC_ID);
    	msg.setHtml(tb.toString());
    	activeChar.sendPacket(msg);
    }
    
    public static void main(String[] args)
    {
    	new BossRespawn(-1, "BossRespawn", "custom");
    }
    }
    

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock