Jump to content

vmlinuz

Members
  • Posts

    285
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by vmlinuz

  1. Watt = Volts X Amper σε Watt

    Ena 700 trofodokiko apodidei 700 watt den katanalonei!

    ama tha deis sto plai exei ena sxediagramma me to poso reuma trabaei opote

    Se periptosi pou broume to reuma pou katanalonei 1Am 5 Am klp tha to polaplasiasete epi to 220V pou einai i tasi sta dixtia xamilis tasis tis DEH kai tha breis tin katanalwsi

    An exeis Amperopensa alpa tha tin baleis sto kalodio kai tha sou bgalei mia endiksi auti i endiksi X220 einai ta watt katanalosis

    Px o foritos pou exei exei 1,5 amper x 220 = 330 watt to poli mexri kai 500-700 ena pc analogos me tis katanaloseis kai fisika tin isxu pou mporei na apodosei

    Enas server pou exei i7 kai HDD to polu na katanalonei 200Watt to polu X 24 wres 4,8Kwatt X31 meres = 150 Kwatt peripou opo antistixi sta 0,25 i kilowatora opote einai kapou sta 40euro to polu ton mina :)

    Eimai enaeritis stin deh kai oi ipologismoi mou einai me mia anoxi -+ 10%

    Elpizo na boithisa :)

  2. Hey everyone,

     

    I saw Fanky's code which isn't working and I coded this code from scratch.

     

    Description : Every X minutes (seconds in config) an announcement appears which says how many players are online.

    ### Eclipse Workspace Patch 1.0
    #P Coding Time!
    Index: java/net/sf/l2j/gameserver/model/entity/AnnounceOnlinePlayers.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/model/entity/AnnounceOnlinePlayers.java	(revision 0)
    +++ java/net/sf/l2j/gameserver/model/entity/AnnounceOnlinePlayers.java	(working copy)
    @@ -0,0 +1,52 @@
    +/*
    + * 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 net.sf.l2j.gameserver.model.entity;
    +
    +import net.sf.l2j.Config;
    +import net.sf.l2j.gameserver.Announcements;
    +import net.sf.l2j.gameserver.ThreadPoolManager;
    +import net.sf.l2j.gameserver.model.L2World;
    +
    +/**
    + * 
    + * @author Debian
    + *
    + */
    +
    +public class AnnounceOnlinePlayers
    +{
    +    public static void getInstance()
    +    {
    +        ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
    +        {
    +            @Override
    +            @SuppressWarnings("synthetic-access")
    +            public void run()
    +            {
    +                Announce();
    +            }
    +        }, 0,Config.ANNOUNCE_ONLINE_PLAYERS_DELAY * 1000);
    +     }
    +    @SuppressWarnings("static-access")
    +    private static void Announce()
    +    {
    +        int NumberofPlayers = L2World.getInstance().getAllPlayersCount();
    +
    +        if (NumberofPlayers == 1)
    +            Announcements.getInstance().announceToAll(NumberofPlayers + " player is online.");
    +        else
    +            Announcements.getInstance().announceToAll(NumberofPlayers + " players are online.");
    +    }
    +}
    \ No newline at end of file
    Index: java/net/sf/l2j/gameserver/GameServer.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/GameServer.java	(revision 270)
    +++ java/net/sf/l2j/gameserver/GameServer.java	(working copy)
    @@ -89,6 +89,7 @@
    import net.sf.l2j.gameserver.model.L2World;
    import net.sf.l2j.gameserver.model.PartyMatchRoomList;
    import net.sf.l2j.gameserver.model.PartyMatchWaitingList;
    +import net.sf.l2j.gameserver.model.entity.AnnounceOnlinePlayers;
    import net.sf.l2j.gameserver.model.entity.Castle;
    import net.sf.l2j.gameserver.model.entity.Hero;
    import net.sf.l2j.gameserver.model.olympiad.Olympiad;
    @@ -273,6 +274,9 @@
    		if (Config.ALLOW_WEDDING)
    			CoupleManager.getInstance();
    
    +		if (Config.ALLOW_ANNOUNCE_ONLINE_PLAYERS)
    +		    AnnounceOnlinePlayers.getInstance();
    +		
    		Util.printSection("System");
    		TaskManager.getInstance();
    
    Index: config/events.properties
    ===================================================================
    --- config/events.properties	(revision 270)
    +++ config/events.properties	(working copy)
    @@ -229,4 +229,13 @@
    AltLottery3NumberRate = 0.2
    
    # How much adena receive characters who pick two or less of the winning number
    -AltLottery2and1NumberPrize = 200
    \ No newline at end of file
    +AltLottery2and1NumberPrize = 200
    +
    +#=============================================================
    +#                  Announce Online Players
    +#=============================================================
    +# Enable this feature.
    +AllowAnnounceOnlinePlayers = True
    +
    +# Announcement Delay (in seconds)
    +AnnounceOnlinePlayersDelay = 300
    \ No newline at end of file
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java	(revision 270)
    +++ java/net/sf/l2j/Config.java	(working copy)
    @@ -262,6 +262,10 @@
    	public static float ALT_LOTTERY_3_NUMBER_RATE;
    	public static int ALT_LOTTERY_2_AND_1_NUMBER_PRIZE;
    
    +	/** Announce Online Players */
    +	public static boolean ALLOW_ANNOUNCE_ONLINE_PLAYERS;
    +	public static int ANNOUNCE_ONLINE_PLAYERS_DELAY;
    +	
    	// --------------------------------------------------
    	// HexID
    	// --------------------------------------------------
    @@ -994,6 +998,8 @@
    				ALT_LOTTERY_4_NUMBER_RATE = Float.parseFloat(events.getProperty("AltLottery4NumberRate", "0.2"));
    				ALT_LOTTERY_3_NUMBER_RATE = Float.parseFloat(events.getProperty("AltLottery3NumberRate", "0.2"));
    				ALT_LOTTERY_2_AND_1_NUMBER_PRIZE = Integer.parseInt(events.getProperty("AltLottery2and1NumberPrize", "200"));
    +				ALLOW_ANNOUNCE_ONLINE_PLAYERS = Boolean.parseBoolean(events.getProperty("AllowAnnounceOnlinePlayers", "True"));
    +				ANNOUNCE_ONLINE_PLAYERS_DELAY = Integer.parseInt(events.getProperty("AnnounceOnlinePlayersDelay", "300"));
    			}
    			catch (Exception e)
    			{

     

    For any problems, pm me!

     

    Kind regards,

     

    Debian

    Φοβερο +1 απο μενα :)

  3. Εδώ έχεις κάνει τίποτα ?

    # ================================================================
    #                      Debug, Dev & Test config
    # ================================================================
    
    # Don't load quests
    NoQuests = False
    
    # Don't load spawntable
    NoSpawns = False
    
    # Debug messages (by default False, easily "flood" your GS logs)
    Debug = False
    Developer = False
    PacketHandlerDebug = False

  4. prepi na kanis tris database 1 l2jcs 2 l2jgs 3 l2jls oxi l2jdb gia database milai to error

    τι δουλειά έχει η database με το heal.java όλο το πρόβλημα είναι heal.java που βρίσκετε στο scripts.

    Μπορεί αμα θέλει να βρει το αρχείο scripts.cgf που συνήθως είναι στον φάκελο data: και βρει το hadlers\effectehandlers\heal και να βάλει ένα # από μπροστά για να το απενεργοποιήσει μέχρι να βρει που είναι το λάθος στον κώδικα

    Από ότι βλέπω το error έχει να κάνει μάλλον με το που κασταρει κάποιο skill να του καιει spiritshots κάτι τέτοιο με τα λίγα που ξέρω...

    Ελπίζω να βοήθησα και αν κάπου κάνω λάθος ας με διορθώσει ένας γνώστης :)

  5. <?xml version="1.0" encoding="UTF-8"?>
    <list>
      <!-- Custom No Store Zones -->
         <!-- Giran zones coords -->
         <zone name="Giran northern coridor west" type="NoStoreZone" shape="Cuboid" minZ="-3400" maxZ="-3550">
             <node X="81446" Y="143530" />
             <node X="81635" Y="147720" />
         </zone>
         <zone name="Giran northern coridor east" type="NoStoreZone" shape="Cuboid" minZ="-3350" maxZ="-3450">
             <node X="83790" Y="143495" />
             <node X="84000" Y="147230" />
         </zone>
         <zone name="Giran western coridor (up to the Dusk Priestess)" type="NoStoreZone" shape="Cuboid" minZ="-3650" maxZ="-3400">
             <node X="77080" Y="148525" />
             <node X="81780" Y="148720" />
         </zone>
         <zone name="Giran southern coridor" type="NoStoreZone" shape="Cuboid" minZ="-3550" maxZ="-3400">
             <node X="81435" Y="149530" />
             <node X="81640" Y="152920" />
         </zone>
         <zone name="Giran northern path" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3400">
             <node X="80930" Y="147680" />
             <node X="82940" Y="147875" />
         </zone>
         <zone name="Giran western path" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3400">
             <node X="80930" Y="147680" />
             <node X="81115" Y="149540" />
         </zone>
         <zone name="Giran southern path" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3400">
             <node X="80925" Y="149340" />
             <node X="82940" Y="149535" />
         </zone>
         <zone name="Giran large temple area (gatekeeper and Priest of Dawn area)" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3350">
             <node X="82735" Y="147000" />
             <node X="84320" Y="149780" />
         </zone>
         <zone name="Giran olympiad manager" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3400">
             <node X="81985" Y="147450" />
             <node X="82205" Y="147710" />
         </zone>
         <zone name="Giran manor manager" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3400">
             <node X="81865" Y="149530" />
             <node X="82030" Y="149680" />
         </zone>
         <zone name="Giran auctioneer and gabrielle" type="NoStoreZone" shape="Cuboid" minZ="-3500" maxZ="-3400">
             <node X="81205" Y="149520" />
             <node X="81510" Y="149830" />
         </zone>
         <zone name="Giran path to taurin" type="NoStoreZone" shape="Cuboid" minZ="-3550" maxZ="-3450">
             <node X="81055" Y="146820" />
             <node X="81455" Y="147000" />
         </zone>
         <zone name="Giran path to warehouse" type="NoStoreZone" shape="Cuboid" minZ="-3550" maxZ="-3450">
             <node X="81620" Y="146465" />
             <node X="82035" Y="146680" />
         </zone>
         <zone name="Giran Taurin" type="NoStoreZone" shape="Cuboid" minZ="-3550" maxZ="-3450">
             <node X="80655" Y="146350" />
             <node X="80855" Y="146460" />
         </zone>
         <zone name="Giran Collob " type="NoStoreZone" shape="Cuboid" minZ="-3550" maxZ="-3450">
             <node X="79200" Y="149455" />
             <node X="79300" Y="149645" />
         </zone>
         <zone name="Aden olympiad manager square" type="NoStoreZone" shape="Cuboid" minZ="-2250" maxZ="-2150">
             <node X="146841" Y="26541" />
             <node X="148071" Y="27425" />
         </zone>
         <zone name="Aden central stairs" type="NoStoreZone" shape="Cuboid" minZ="-2250" maxZ="-1950">
             <node X="147273" Y="25941" />
             <node X="147645" Y="26538" />
         </zone>
         <zone name="Aden temple square" type="NoStoreZone" shape="Cuboid" minZ="-2050" maxZ="-1950">
             <node X="146233" Y="25938" />
             <node X="148729" Y="25553" />
         </zone>
    </list>

×
×
  • Create New...