Jump to content

Virusgr

Members
  • Posts

    164
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Virusgr

  1. Οταν έκανες install την java πήγες στις Ο Υπολογιστής μου->Δεξί κλικ->Ιδιότητες->Ρυθμίσεις για προχωρημένους->Μεταβλητές Περιβάλλοντος και άλλαξες το Path κάπως έτσι

    ;C:\Program Files\java\jdk7\bin;

    Θα κάνεις ακριβώς το ίδιο για την java 6.Όλα τα guides για να στήσεις l2j server εξηγούν αναλυτικά αυτό το κομμάτι (π.χ. εδώ στο σημείο που λέει

    Μετά πηγαίνουμε έναρξη ο υπολογιστής μου δεξί Click ιδιότητες! )

  2. wall of shame exist to report scammer so if example Zake wants to make a trade and he doesnt want to get scammed he check this topic so he will avoid those members ( instead of some smartass that got scammed over and over again thinking that he is not scammer anymore... ) so IF we ban the scammers they will make new accounts so we will NOT know if they are scammers so they will scam AGAIN. So if we ban them you will make them rich, if we not everyone will hate them and avoid them, which is the best punishment?

    I did not ask for punishment.Punishing him won't get me any satisfaction and i don't care about the money.But getting rich without even deserve to?Hell no.Also i'm not here to judge maxcheaters' anti-scam methods.Our responsibility our problem that's the rules,and we play by the rules.The only thing that irritates me is the phrase i said in the previous post

  3. you made the report at « on: Today at 21:51:31 »

    you demand from staff to do something accusing them that we do nothing at « Reply #1 on: Today at 21:55:05 » edited on « Last Edit: Today at 21:56:32 by Dεσtяactoя™ »

     

    btw do you know that there is a site where you can trade PSC for PP ammounts.do you?

    No we don't obviously.I got scammed from the same guy some days ago and nobody gave a flying crap.(Wall of shame topic)

  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 = 93000;
    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 By Dleogr</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");
                                    activeChar.sendMessage("Boss ID "+boss+" Current "+System.System.currentTimeMillis() +" delay "+delay);
    		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");
    }
    }

    Well i read this on the fly.Saw the "if you kill the Grand Boss like Baium etc. he always show alive" phrase and assumed it's not refreshed properly.I was wrong.Also the check is just fine.(If it's allive then delay-System.currentTimeMillis() will be negative or zero or if you like delay<=System.currentTimeMillis())  )

    let's do somekind of debug.I've added a line below long delay = bla bla

    See what message you will get after this add.You'll find out what's wrong

  5. I'll give you the skeleton of the implementation

     

    -Create a method for retrieving the data into a String(with all the html you want to generate)

    -Put the above method on a ThreadPool and schedule it for a fixed rate(your choice on how many time until next refresh).

    -Use the sendInfo method you got down there to send the above String to the player in an npc window.

    Right now you don't refresh the content.

  6. to explorer kai to firefox ta anoigei

    ekana epanafora alla pali to idio provlima eixa

    δεν είπα για iexplorer.exe (αυτο είναι το process του ΙΕ),αλλά explorer.exe (process των windows που σχετίζεται με τέτοια προβλήματα)

    Βέβαια αν έκανες επαναφορά και δεν είδες τίποτα τότε άχρηστο θα πάει το προσωρινό fix.

  7. den mporw na anoiksw to windows update

    pataw na anoiksw alla tipota

    ctrl+alt+del -> Αρχείο -> Νέα Εργασία (Εκτέλεση..) -> explorer.exe

    Αυτό ίσως φτιάξει ΠΡΟΣΩΡΙΝΑ το άνοιγμα προγραμμάτων.Θα βοηθήσει μόνο για να μπορείς να ανοίξεις ότι χρειάζεσαι για να κάνεις το restore,δεν είναι λύση μόνιμη.

  8. I did suggested the solution and it was IGNORED.

    partner.onTransactionResponse();

    this should be line 94

    Then i said the cause of the NPE.Guess what IGNORED again.

    npe is not about WHERE you return is about WHAT is called

    if i got a String str=null;

    and do this

    str.substring(3);

    BOOOOOM npe.str is null

    Seriously,bad eyes are bad.Bad reading skills are..well double bad.

    Have fun skipping answers.

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