gia sas exo afto edo to npc ston server mou kai den doulebi prospa8isa na to ftiakso
alla mou leei in game "You don't have a clan." alaksa ligo ton kodika kai den mou perni
to item. Ebala pano mou to item me count 1 kai bugare to npc dld mporousa na kano tin
clan level up i na paro point i na paro skill xoris na exo ta aparetita item pou 8elei. Telos
panton an mporei kapios as me boi8isi efxaristo poli
edo einai o kodikas xoris piragma
(ton kodika ton brika edo sto maxcheaters)
/*
* 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.actor.instance;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate;
/**
* @author Devlin
*
*/
public class L2ClanManagerInstance extends L2NpcInstance
{
public L2ClanManagerInstance(int objectId, L2NpcTemplate template)
{
super(objectId, template);
}
@Override
public void showChatWindow(L2PcInstance player, int val)
{
player.sendPacket(ActionFailed.STATIC_PACKET);
String filename = "data/html/mods/clanManager.htm";
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile(filename);
html.replace("%objectId%", String.valueOf(getObjectId()));
player.sendPacket(html);
}
public int itemId = 9800;
public int itemCountLevelUp = 15;
public int itemCountReputationPoints = 15;
public int itemCountClanSkills = 20;
public int clanLevel = 8;
public int clanReputationScore = 1000;
public int[] clanSkills = { 370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391 };
@Override
public void onBypassFeedback(L2PcInstance player, String command)
{
if (command.equals("clanLevelUp"))
{
if (player.getClan() == null)
{
player.sendMessage("You don't have a clan.");
return;
}
if (!player.isClanLeader())
{
player.sendMessage("You aren't the leader of your clan.");
return;
}
if (player.getInventory().getItemByItemId(itemId).getCount() > itemCountLevelUp)
{
player.sendMessage("You don't have enough items.");
return;
}
player.getClan().changeLevel(player.getClan().getLevel() + clanLevel);
player.getClan().broadcastClanStatus();
player.getInventory().destroyItemByItemId("Init.", itemId, itemCountLevelUp, player, player);
player.sendMessage("Your clan's level has been changed to "+player.getClan().getLevel());
}
else if (command.equals("clanReputationPoints"))
{
if (player.getClan() == null)
{
player.sendMessage("You don't have a clan.");
return;
}
if (!player.isClanLeader())
{
player.sendMessage("You aren't the leader of your clan.");
return;
}
if (player.getInventory().getItemByItemId(itemId).getCount() > itemCountReputationPoints)
{
player.sendMessage("You don't have enough items.");
return;
}
player.getClan().addReputationScore(clanReputationScore);
player.getClan().broadcastClanStatus();
player.getInventory().destroyItemByItemId("Init.", itemId, itemCountReputationPoints, player, player);
player.sendMessage("Your clan's reputation score has been changed to "+player.getClan().getReputationScore());
}
else if (command.equals("clanSkills"))
{
if (player.getClan() == null)
{
player.sendMessage("You don't have a clan.");
return;
}
if (!player.isClanLeader())
{
player.sendMessage("You aren't the leader of your clan.");
return;
}
if (player.getInventory().getItemByItemId(itemId).getCount() > itemCountClanSkills)
{
player.sendMessage("You don't have enough items.");
return;
}
for (int s : clanSkills)
{
L2Skill clanSkill = SkillTable.getInstance().getInfo(s, SkillTable.getInstance().getMaxLevel(s));
player.getClan().addNewSkill(clanSkill);
player.getClan().broadcastClanStatus();
player.getInventory().destroyItemByItemId("Init.", itemId, itemCountClanSkills, player, player);
player.sendMessage("Your clan has learned all clan skills.");
}
}
}
}
I am planning on making adminer optional which would also make php and apache2 optional, I just haven't had time yet. That script I made for myself and I know that I want adminer 😛
"
and also be asked about opening 3306 or XXXX and listen to *
thanks "
Could you explain this a bit more? I am not sure I should offer the option to open port 3306 as that is a bad thing unless you know what you are doing, and if you know what you are doing it is a simple thing to open it yourself after.
Listen to * is this for login / gameserver or Mariadb?
🎉 ¡Llega EuroLatinL2! 🎉
🌍 Un servidor Interlude x20 con esencia retail y ajustes justos para una experiencia única.
🧠 Desarrollado por profesionales rusos, EuroLatinL2 está basado en el cliente original de Lineage II Interlude. Buscamos revivir lo mejor de la vieja escuela con un balance perfecto entre nostalgia y jugabilidad moderna.
🛡️ ¿Qué hace diferente a EuroLatinL2?
✨ Rates Mid x20 – Equilibrados para un progreso fluido, sin perder el desafío.
🧪 Experiencia 100% retail con leves ajustes para mantener el interés.
⚔️ Raid Bosses épicos ajustados al nivel 80.
💡 Nada de GM Shop, sin buffs OP, sin teleport personalizados.
⛩️ Solo tiendas y contenido original de Lineage II.
🧙 Buffer básico (solo Prophet), duración de 60 minutos.
🔄 Sistema de héroes cada 15 días y Olimpiadas 2h por día.
🛒 Sistema de donaciones solo para servicios estéticos y premium (sin pay-to-win).
🧬 Sistema de skins para armas y armaduras (solo apariencia).
💤 AutoFarm disponible solo con adena/premium, opcional.
🔥 ¿Quieres volver a disfrutar Lineage II como en sus mejores tiempos?
💬 Completa quests, forma grupos reales, derrota jefes con estrategia, y recolecta recetas (¡incluso para Soulshots!).
⏳ ¡La apertura está muy cerca!
🚪 No te quedes fuera de esta aventura. Vive Lineage II como debe ser.
🌐 Sitio oficial: https://eurolatin.eu
📣 ¡Comparte con tu clan y prepárate para la nostalgia!
#Lineage2 #Interlude #EuroLatinL2 #L2Classic #PvE #PvP #NostalgiaL2
Question
L2 Supra
gia sas exo afto edo to npc ston server mou kai den doulebi prospa8isa na to ftiakso
alla mou leei in game "You don't have a clan." alaksa ligo ton kodika kai den mou perni
to item. Ebala pano mou to item me count 1 kai bugare to npc dld mporousa na kano tin
clan level up i na paro point i na paro skill xoris na exo ta aparetita item pou 8elei. Telos
panton an mporei kapios as me boi8isi efxaristo poli
edo einai o kodikas xoris piragma
(ton kodika ton brika edo sto maxcheaters)
5 answers to this question
Recommended Posts