Ir para conteúdo
  • Cadastre-se

Chepi Matlu Martinez

Membro
  • Total de itens

    32
  • Registro em

  • Última visita

Tudo que Chepi Matlu Martinez postou

  1. Ola, alguem sabe como fazer LIMIET player for grand boss ejemplo: Valakas so pode entrar max 40 players. O limit for party, 2 party for clan
  2. Hi guys we got this code for the NPC besieged guard to be spawn at the time of the siege Castle.java public void spawnSiegeGuardsOrMercenaries() { if (_ownerId > 0) { for (ItemInstance item : _droppedTickets) { // Retrieve MercenaryTicket information. final MercenaryTicket ticket = getTicket(item.getItemId()); if (ticket == null) continue; // Generate templates, feed them with ticket information. final NpcTemplate template = NpcData.getInstance().getTemplate(ticket.getNpcId()); if (template == null) continue; try { final L2Spawn spawn = new L2Spawn(template); spawn.setLoc(item.getPosition()); spawn.setRespawnState(false); SpawnTable.getInstance().addSpawn(spawn, false); Npc merc = spawn.doSpawn(false); merc.setIsImmobilized(ticket.isStationary()); merc.setCastle(this); _siegeGuards.add(merc); } catch (Exception e) { LOGGER.error("Couldn't spawn npc ticket {}. ", e, ticket.getNpcId()); } // Delete the ticket item. item.decayMe(); } _droppedTickets.clear(); } else { // TODO Territory based spawn try (Connection con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement ps = con.prepareStatement("SELECT npcId,x,y,z,heading,respawnDelay FROM castle_siege_guards where castle_id=?")) { ps.setInt(1, _castleId); try (ResultSet rs = ps.executeQuery()) { while (rs.next()) { final int npcId = rs.getInt("npcId"); final NpcTemplate template = NpcData.getInstance().getTemplate(npcId); if (template == null) continue; try { int distToTower = -1; ControlTower towerToAdd = _siege.getControlTowers().get(0); final int x = rs.getInt("x"); final int y = rs.getInt("y"); final int z = rs.getInt("z"); final int heading = rs.getInt("heading"); final int respawnDelay = rs.getInt("respawnDelay"); L2Spawn spawn = new L2Spawn(template); spawn.setLoc(x,y,z,heading); spawn.setRespawnDelay(respawnDelay); for (ControlTower ctrlTower : _siege.getControlTowers()) { int dx = x - ctrlTower.getX(); int dy = y - ctrlTower.getY(); int dz = z - ctrlTower.getZ(); long a = (long) Math.sqrt(dx * dx + dy * dy + dz * dz); if ((distToTower>a) || (distToTower==-1)) { distToTower=(int) a; towerToAdd=ctrlTower; } } towerToAdd.registerGuard(spawn); SpawnTable.getInstance().addSpawn(spawn, false); Npc guard = spawn.doSpawn(false); spawn.setRespawnState(true); guard.setCastle(this); _siegeGuards.add(guard); } catch (Exception e) { LOGGER.error("Could not spawn Npc " + Integer.toString(npcId)); } } } } catch (Exception e) { LOGGER.error("Exception: loadSiegeClan(): " + e.getMessage(), e); } } } /** * Despawn neutral guards or player-based mercenaries. */ public void despawnSiegeGuardsOrMercenaries() { if (_ownerId > 0) { for (Npc npc : _siegeGuards) { L2Spawn spawn = npc.getSpawn(); if (spawn != null) { spawn.setRespawnState(false); SpawnTable.getInstance().deleteSpawn(spawn, true); } npc.deleteMe(); } _siegeGuards.clear(); } else { for (Npc npc : _siegeGuards) { L2Spawn spawn = npc.getSpawn(); if (spawn != null) { spawn.setRespawnState(false); SpawnTable.getInstance().deleteSpawn(spawn, true); } npc.deleteMe(); } _siegeGuards.clear(); } } throws the following errors at me [Hidden Content] [Hidden Content] help me? :01:
  3. Quest noblesse , quest sub? Cual base e rev?
  4. rev optima paa colocar serve x45 farm??
  5. Mamo ja baxie eu geodata e mesmo error sale mesmo message person model
  6. Mano e rev de 0 baxie y test char normal fala logo sale The person model. Nao tem geodata Naida rev de 0
  7. mano tou usando rev 384 pero tou error poq cuando char NORMAL fala global sale message de the person is in messae refause mode char no e adm e char normal preciso ajuda nao sei poq cuando falo indiica " THE PERSON IS IN MESSAGE REFAUSE MODE"
  8. como podo fazer effecto de um rb al skill hero valor alguem sabe?
  9. Pack tem bug geodata, en geoengeine.java precisa actualicao to rev 32
  10. COMO EDITO SETS AMOR FAKE PLAYERS, TEM SET GRADO A, QUERO COLOCA SETS GRADO D
  11. como fico para colocar sub class e skilles nao acumulen so main clase 1 sub
  12. Coloco isso en L2Npcbuffer? Quero colocar em meu npc L2NpcBuffer ficar sub classe. ficar gatto classemaster, entende? I do not speak very Brazilian, what I mean is that in my own npc buffer want to put that instance can perform and perform sub classe 1 2 3 profresion! all that in the same npc L2NPCBUFFERINSTANCE
  13. Oi, galera queriam saber sim e possible criar em l2npcbufferinstance colocar ae mesmo trocar sub classe em mesmo npc buffer! alguem me pode ajudar?
  14. Chepi Matlu Martinez

    skill

    Insano intente add skilles de vc id 4314 anakim, funciona sim pero quero colocar esse efecto em hero valor, pero nao funciona cuando cologo skill.mu em id hero valor
  15. Oi, alguem me pode ajudar em editar efecto hero valor con efecto raid boss anakim? asim mostra do video [Hidden Content]
  16. Oí galera, alguem tem este modo para Frozen? Tou precisando [Hidden Content]
×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.