Jump to content

valanths1990

Members
  • Posts

    517
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by valanths1990

  1. ore eleos exw ola ta files ektos apo to pcinstance....

     

    v.1 kai v.2 ala den exei se kanena po ta 2 to PcInstance part :)

     

    ama to exete mou to dinete min m lete dose m afto kai to alo...

    nai re file kai emeis exoume ola ta files ektos apo to Achievement.java diladi to exw alla oxi olo.. an psinese gia trampa apla to les ;)
  2. mia pio pro ekdosh tou parapanw kodika

    public synchronized boolean setActiveClass(int classIndex)
    {
    +int[] armorType = 	
    +{
    +	Inventory.PAPERDOLL_RHAND, Inventory.PAPERDOLL_LHAND,
    +	Inventory.PAPERDOLL_LRHAND, Inventory.PAPERDOLL_LRHAND,
    +	Inventory.PAPERDOLL_CHEST, Inventory.PAPERDOLL_HEAD,
    +	Inventory.PAPERDOLL_LEGS, Inventory.PAPERDOLL_GLOVES,
    +	Inventory.PAPERDOLL_FEET, Inventory.PAPERDOLL_BACK,
    +	Inventory.PAPERDOLL_DHAIR, Inventory.PAPERDOLL_HAIR,
    +	Inventory.PAPERDOLL_LEAR, Inventory.PAPERDOLL_REAR,
    +	Inventory.PAPERDOLL_RFINGER, Inventory.PAPERDOLL_LFINGER,
    +	Inventory.PAPERDOLL_NECK, Inventory.PAPERDOLL_UNDER
    +};
    +
    +for (int items : armorType)
    +{
    +	L2ItemInstance parmorInstance = getInventory().getPaperdollItem(items);
    +	if (parmorInstance != null)
    +	{
    +		L2ItemInstance[] unequipped = getInventory().unEquipItemInBodySlotAndRecord(parmorInstance.getItem().getBodyPart());
    +		InventoryUpdate iu = new InventoryUpdate();
    +		for (L2ItemInstance element : unequipped)
    +		iu.addModifiedItem(element);
    +		sendPacket(iu);
    +		}
    +	}

  3. kane delete afta

    for(int i = 45; i > 10; i -= 5)
    			{
    				switch(i)
    				{
    					case 45:
    					case 30:
    					case 15:
    						_game.sendMessageToPlayers(false, i);
    						break;
    				}
    				try
    				{
    					Thread.sleep(5000);
    				}
    				catch(InterruptedException e)
    				{
    					if(Config.ENABLE_ALL_EXCEPTIONS)
    						e.printStackTrace();
    				}
    				//if(!proverkaDoTeleporta())
    				if(!checkStatus())
    					return;
    			}
    			for(int i = 5; i > 0; i--)

    kai vale afto: for(int i = 1; i > 0; i--)

    logika 8a sou doulepsei

  4. dokimase to etsi:

    if(_game != null)
    	{
    		if(_game._playerOne != null && _game._playerTwo != null)
    		{	
    			for(int i = 1; i > 0; i--)
    			{
    				_game.sendMessageToPlayers(false, i);
    				try
    				{
    					Thread.sleep(1000);
    				}
    				catch(InterruptedException e)
    				{
    					if(Config.ENABLE_ALL_EXCEPTIONS)
    						e.printStackTrace();
    				}
    			}
    
    			//Checking for openents and teleporting to arena
    			if(!checkStatus())
    				return;
    			//_game.removals();
    			//_game.portPlayersToArena();
    			_game.portPlayersToArena();
    			_game.removals();
    			try
    			{
    				Thread.sleep(5000);
    			}..........

    oi telitses shmainei pws exei kai sunexeia to code mhn tis valeis apla to ekana etsi gia na katalaveis pws na to kaneis :P

  5. loipon sto arxeio model/entity/OlympiadGameTask.java

    vres afto:

    //Waiting for teleport to arena
    			for(int i = 45; i > 10; i -= 5)
    			{
    				switch(i)
    				{
    					case 45:
    					case 30:
    					case 15:
    						_game.sendMessageToPlayers(false, i);
    						break;
    				}
    				try
    				{
    					Thread.sleep(5000);
    				}
    				catch(InterruptedException e)
    				{
    					if(Config.ENABLE_ALL_EXCEPTIONS)
    						e.printStackTrace();
    				}
    				//if(!proverkaDoTeleporta())
    				if(!checkStatus())
    					return;
    			}

    terma panw exei ta cases

    case 45

    case30 kai

    case 15

    an 8eleis na valeis parapanw seconds

    8a prepei na valeis ena extra case

    kai na to kaneis etsi:

    //Waiting for teleport to arena
    			for(int i = 60; i > 10; i -= 5)
    			{
    				switch(i)
    				{
    					case 60:
    					case 45:
    					case 30:
    					case 15:
    						_game.sendMessageToPlayers(false, i);
    						break;
    				}
    				try
    				{
    					Thread.sleep(5000);
    				}
    				catch(InterruptedException e)
    				{
    					if(Config.ENABLE_ALL_EXCEPTIONS)
    						e.printStackTrace();
    				}
    				//if(!proverkaDoTeleporta())
    				if(!checkStatus())
    					return;
    			}

     

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