Jump to content

xJustMe

Members
  • Posts

    16
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by xJustMe

  1. private void doClanTeleport(L2PcInstance player, int val) 
    	{
    
            L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val);
            
    		if(!player.isClanLeader() && player.getClan() != null) 
    		{
    			player.sendMessage("Solo El lider de Clan Puede Usar El Teleport");
    			return;
    		}
    	    if(player.getClan() == null) 
    	    {
    	    	player.sendMessage("No Estas en un clan");
    			return;
    	    }
    		
      
    		for (L2PcInstance member : player.getClan().getOnlineMembers(""))
    			{
    
    
    				if ((member == null) || (member == player))
    				{
    					continue;
    				}
              
    				if (member.isInDuel() && ((member.getDuelId() != member.getDuelId())))
    				{
    					continue;
    				}	
    
    				if (!member.isInsideRadius(player, 1000, false, false))
    				{
    					player.sendMessage("El Jugador " + member.getName() + " Esta muy Lejos y no sera teleportado.");
    					continue;
    				}
    				
    				if (player.getClanId() == member.getClanId() && member.getLevel() >= 76 && member.getClan() != null && player.getClan() != null && member.getClanId() == player.getClanId())
    				{
    					
    					member.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ());	
    					member.sendMessage("Entrando A una Zona De Clan");	
    					player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ()); 
    					
    				}
    				else
    				{
    					
    					player.sendMessage("No Cumples Los Requisitos.");
    					return;
    				}
    				
    			}
    		}

     

    Should be like this I think. 🙂

    EDIT:
    Also, player (clan leader) teleportation is in wrong place, because he will be teleported as many times as there is online members.

  2. CharInfo.java

     

    	final Player tmp = getClient().getPlayer();
            if (tmp != null && tmp.isInSameParty(_player))
            {
                writeC(1); //1 for blue circle, 2 for red circle
            }
    	else 
    	{
    		writeC((Config.PLAYER_SPAWN_PROTECTION > 0 && _player.isSpawnProtected()) ? TeamType.BLUE.getId() : _player.getTeam().getId());
    	}

     

     

    Thats atleast for acis.

     

    EDIT:
    Also you need to add broadcastCharInfo in Party.java on member leave, otherwise ppl will still have circles even if you leave party.

     

  3. Here is my problem: I downloaded rb status for epilogue , changed imports, tryed to start but I realised that there is no

    import com.l2jfree.gameserver.instancemanager.GrandBossManager;

     

    So i changed to this one

    import com.l2jfree.gameserver.instancemanager.GrandBossSpawnManager;

     

    Now I get this error:

    1. ERROR in \BossRespawn.java (at line 59)

    long delay = GrandBossSpawnManager.getInstance().getStatsSet(boss).getLong("respawn_time");

    The method getStatsSet(int) is undefined for the type GrandBossSpawnManager

     

    Please someone help me, I really need this npc for gracia final :/

     

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