Jump to content
deproxmonrox

L2jLuna ServerManager 1.0.0 Em Breve

Recommended Posts


Precisando de Dedicado ou VPS?

Conheça a L2JCenter

Maninho, independente se for usar só pra você ou compartilhar, Continue sim!

 

Você está fazendo um belo trabalho e está muito bom sim, e adicione o máximo de coisas que você conseguir e que você Puder no caso né

 

Parabéns Mesmo, te daria 10 Likes mas só pode 1 kkk'

Share this post


Link to post
Share on other sites

Acham que devo continuar com o projeto? e add mais funçoes... #

Quero dicas de funçoes.. # Projeto totalmente em Python.# *=* ^^

Atenção ainda tah pela metade Rs ^^ #

 

Qla9V17.png

 

Muito interessante. Será postado para download?

Posta pelo menos um BETA pra gente com entrega de doação e com botão para ligar e desligar o servidor.

 

Uma outra coisa boa para add aí seria

BAN CHAR: xxxxxx

KICK CHAR: xxxxx

JAIL CHAR: xxxxx

ADD RECOMENDED CHAR: xxxx

 

Daora seu programa!

Share this post


Link to post
Share on other sites

Muito interessante. Será postado para download?

Posta pelo menos um BETA pra gente com entrega de doação e com botão para ligar e desligar o servidor.

 

Uma outra coisa boa para add aí seria

BAN CHAR: xxxxxx

KICK CHAR: xxxxx

JAIL CHAR: xxxxx

ADD RECOMENDED CHAR: xxxx

 

Daora seu programa!

Sim a versão 0.1 Sim... vai ser liberada.

Share this post


Link to post
Share on other sites

Mano uma dica : Concentre apenas em coisas padrões ou seja sem custom .

 

Uma dúvida isso funcionará pelo telnet correto ?

 

Se puder desenvolva multi plataforma ou seja se precisar compilar para Linux , Android ...

Share this post


Link to post
Share on other sites

Bom, eu não tinha visto este tópico antes, como fui responder um tópico nessa mesma área acabei me deparando com esse tópico e resolvi postar, mesmo com o criador tendo sido banido, a idéia eu já tive alguns anos antes..

 

Só aproveitando o embalo do tópico, afinal é um assunto que vale a pena ressucitar, eu até fiz um aplicativo desse antes desse tópico ser criado, eu fiz meu L2JManager em 2013 porém em 2014 eu achei melhor fazer uma versão com software server (pra rodar no dedicado) e um software cliente (pra rodar no pc do admin) pra poder fazer uma maneira mais segura pois se você fizer a ponte telnet direta entre o aplicativo e o vps abre espaço pra brechas pois o telnet do lineage não é encriptado, na minha forma eu fiz uma ponte segura com comando encriptado por uma senha específica...

 

seguem prints

 

L2JManager (2013)

E0379Q2.png

5dLUfX4.gif

L2JAdmin (2014)

 

EllHf4t.png

m69l9Md.png

 

print do funcionamento versão cliente e server, junto com iniciação do método de criptografia quando eu tava desenvolvendo o aplicativo (em 2014)LNBBbwB.jpg

Apresentação do L2JManager em vídeo (nov 2013)

 

Apresentação do L2JAdmin em vídeo (maio 2014)

 

eu pausei o mesmo pois faltou terminar a parte no core de adicionar mais funções via telnet para o aplicativo poder fazer uma administração remota completa, se alguém se habilitar a criar a parte java da coisa, podemos ver uma forma de implementar isso a algum projeto ja existente que esteja em destaque na comunidade, como já tem anos que eu não mexo com java, pra mim fica meio difícil retomar os trabalhos neste software, vocês que tão mais ativos do que eu na área tão mais por dentro do assunto que eu que quase não mexo mais com java a mais de 3 anos..

Edited by Wallace Carvalho
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...




     



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • 1. Create a new java file on data/scripts/custom/PartyTeleporter/PartyTeleporter.java package custom.PartyTeleporter; import com.l2jserver.gameserver.cache.HtmCache; import com.l2jserver.gameserver.datatables.ItemTable; import com.l2jserver.gameserver.instancemanager.ZoneManager; import com.l2jserver.gameserver.model.L2Party; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.zone.L2ZoneType; import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.network.serverpackets.ItemList; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.network.serverpackets.StatusUpdate; /** * @author `Heroin * Made For Maxcheaters.com * PartyTeleporter */ public class PartyTeleporter extends Quest { private static final int npcid = 36650; // npc id //------------------------------------- //Teleport Location Coordinates X,Y,Z. //Use /loc command in game to find them. private static final int locationX = -56742; // npc id private static final int locationY = 140569; // npc id private static final int locationZ = -2625; // npc id //------------------------------------- //------------------------------------- // Select the id of your zone. // If you dont know how to find your zone id is simple. // Go to data/zones/(your zone file).xml and find your zone // E.g: <zone name="dion_monster_pvp" id="6" type="ArenaZone" shape="NPoly" minZ="-3596" maxZ="0"> /**The id of your zone is id="6" */ /**---------------------------------------------------------------------------*/ /**WARNING: If your zone does not have any id or your location is not on any zone in data/zones/ folder, you have to add one by your self*/ // required to calculate parties & players /**---------------------------------------------------------------------------*/ private static final int ZoneId = 155; //Here you have to set your zone Id //------------------------------------- private static final int MinPtMembers = 2; // Minimum Party Members Count For Enter on Zone. private static final int ItemConsumeId = 57; // Item Consume id. private static final int ItemConsumeNum = 100; // Item Consume Am.ount. private static final boolean ShowPlayersInside = true; //If you set it true, NPC will show how many players are inside area. private static final boolean ShowPartiesInside = true; //If you set it true, NPC will show how many parties are inside area. //------------------------------------- private static String htm = "data/scripts/custom/PartyTeleporter/1.htm"; //html location. private static String ItemName = ItemTable.getInstance().createDummyItem(ItemConsumeId).getItemName(); //Item name, Dont Change this public PartyTeleporter(int questId, String name, String descr) { super(questId, name, descr); addFirstTalkId(npcid); addTalkId(npcid); addStartNpc(npcid); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { if (event.startsWith("partytp")) { TP(event, npc, player, event); } return ""; } @SuppressWarnings("deprecation") public int getPartiesInside(int zoneId)//Calculating parties inside party area.     {         int i = 0;         for (L2ZoneType zone : ZoneManager.getInstance().getAllZones())             if (zone.getId() == zoneId)             {                 for (L2Character character : zone.getCharactersInside().values())                     if (character instanceof L2PcInstance && (!((L2PcInstance) character).getClient().isDetached()) &&                     ((L2PcInstance) character).getParty() != null &&                     ((L2PcInstance) character).getParty().isLeader((L2PcInstance) character))                         i++;             }         return i;     } @SuppressWarnings("deprecation") public int getPlayerInside(int zoneId)//Calculating players inside party area.     {         int i = 0;         for (L2ZoneType zone : ZoneManager.getInstance().getAllZones())             if (zone.getId() == zoneId)             {                 for (L2Character character : zone.getCharactersInside().values())                     if (character instanceof L2PcInstance && (!((L2PcInstance) character).getClient().isDetached()))                         i++;             } return i; } private boolean PartyItemsOk(L2PcInstance player) //Checks if all party members have the item in their inventory. //If pt member has not enough items, party not allowed to enter. { try { for (L2PcInstance member : player.getParty().getPartyMembers()) { if (member.getInventory().getItemByItemId(ItemConsumeId) == null) { player.sendMessage("Your party member "+member.getName()+" does not have enough items."); return false; } if (member.getInventory().getItemByItemId(ItemConsumeId).getCount() < ItemConsumeNum) { player.sendMessage("Your party member "+member.getName()+" does not have enough items."); return false; } } return true; } catch (Exception e) { player.sendMessage("Something went wrong try again."); return true; } } private void proccessTP(L2PcInstance player) // Teleporting party members to zone { for (L2PcInstance member : player.getParty().getPartyMembers()) { member.teleToLocation(locationX, locationY, locationZ);//Location X, Y ,Z } } private void TP(String event, L2Npc npc, L2PcInstance player, String command) // Teleport player & his party { try { L2Party pt = player.getParty(); if (pt == null) { player.sendMessage("You are not currently on party."); return; } if (!pt.isLeader(player)) { player.sendMessage("You are not party leader."); return; } if (pt.getMemberCount() < MinPtMembers) { player.sendMessage("You are going to need a bigger party " + "in order to enter party area."); return; } if (!PartyItemsOk(player)) { return; } else { proccessTP(player); for (L2PcInstance ppl : pt.getPartyMembers()) { if (ppl.getObjectId() != player.getObjectId())//Dont send this message to pt leader. { ppl.sendMessage("Your party leader asked to teleport on party area!");//Message only to party members } ppl.sendMessage(ItemConsumeNum+" "+ItemName+" have been dissapeared.");//Item delete from inventory message ppl.getInventory().destroyItemByItemId("Party_Teleporter", ItemConsumeId, ItemConsumeNum, ppl, true);//remove item from inventory ppl.sendPacket(new InventoryUpdate());//Update ppl.sendPacket(new ItemList(ppl, false));//Update ppl.sendPacket(new StatusUpdate(ppl));//Update } //Sends message to party leader. player.sendMessage(ItemConsumeNum*player.getParty().getMemberCount()+" "+ItemName+" dissapeard from your party."); } } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { final int npcId = npc.getNpcId(); if (player.getQuestState(getName()) == null) { newQuestState(player); } if (npcId == npcid) { String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htm); html = html.replaceAll("%player%", player.getName());//Replaces %player% with player name on html html = html.replaceAll("%itemname%", ItemName);//Item name replace on html html = html.replaceAll("%price%", player.getParty()!=null ? ""+ItemConsumeNum*player.getParty().getMemberCount()+"": "0");//Price calculate replace html = html.replaceAll("%minmembers%", ""+MinPtMembers);//Mimum entry party members replace html = html.replaceAll("%allowed%", isAllowedEnter(player) ? "<font color=00FF00>allowed</font>" : "<font color=FF0000>not allowed</font>");//Condition checker replace on html html = html.replaceAll("%parties%", ShowPartiesInside ? "<font color=FFA500>Parties Inside: "+getPartiesInside(ZoneId)+"</font><br>": "");//Parties inside html = html.replaceAll("%players%", ShowPlayersInside ? "<font color=FFA500>Players Inside: "+getPlayerInside(ZoneId)+"</font><br>": "");//Players Inside NpcHtmlMessage npcHtml = new NpcHtmlMessage(0); npcHtml.setHtml(html); player.sendPacket(npcHtml); } return ""; } private boolean isAllowedEnter(L2PcInstance player) //Checks if player & his party is allowed to teleport. { if (player.getParty() != null) { if( player.getParty().getMemberCount() >= MinPtMembers && PartyItemsOk(player))//Party Length & Item Checker { return true; } else { return false; } } else { return false; } } public static void main(final String[] args) { new PartyTeleporter(-1, PartyTeleporter.class.getSimpleName(), "custom"); System.out.println("Party Teleporter by `Heroin has been loaded successfully!"); } }   2.Create a new htm file on data/scripts/custom/PartyTeleporter/1.htm <html> <title>%player%</title> <body><center> <img src="L2UI_CH3.herotower_deco" width=256 height=32></center><br> You have to be a party leader in order to ask from me to teleport you and your party inside party area.<br> Minimum Number Of Party Members: <font color="LEVEL">%minmembers%</font>.<br> You are currently %allowed% to enter party area with your party.<br> Party Teleport will cost you total: <font color="LEVEL">%price% %itemname%</font><br> <center> %parties% %players% <table><tr> <td><button value="Teleport Me & My Party!" action="bypass -h Quest PartyTeleporter partytp" width=180 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td> </tr></table> <br><br> <center> <img src="L2UI_CH3.herotower_deco" width=256 height=32></center> </body></html> 3. Add script on scripts.cfg file: custom/PartyTeleporter/PartyTeleporter.java 4. Run this query on your database or install the NPC by yourself. INSERT INTO `npc` VALUES ('36650', '13173', 'PartyTeleporter', '1', 'MaxCheaters.com', '1', 'LineageNPC.clear_npc', '8.00', '19.00', '85', 'male', 'L2Npc', null, null, null, null, null, '40', '43', '30', '21', '20', '20', '0', '0', null, null, null, null, '230', '1', '0', '333', '0', '0', '0', '60.00000', '120.00000', '1', '1', '0', '0'); How to Modify:   Check Variables on code: private static final int npcid = 36650; // npc id //------------------------------------- //Teleport Location Coordinates X,Y,Z. //Use /loc command in game to find them. private static final int locationX = -56742; // npc id private static final int locationY = 140569; // npc id private static final int locationZ = -2625; // npc id //------------------------------------- //------------------------------------- // Select the id of your zone. // If you dont know how to find your zone id is simple. // Go to data/zones/(your zone file).xml and find your zone // E.g: <zone name="dion_monster_pvp" id="6" type="ArenaZone" shape="NPoly" minZ="-3596" maxZ="0"> /**The id of your zone is id="6" */ /**---------------------------------------------------------------------------*/ /**WARNING: If your zone does not have any id or your location is not on any zone in data/zones/ folder, you have to add one by your self*/ // required to calculate parties & players /**---------------------------------------------------------------------------*/ private static final int ZoneId = 155; //Here you have to set your zone Id //------------------------------------- private static final int MinPtMembers = 2; // Minimum Party Members Count For Enter on Zone. private static final int ItemConsumeId = 57; // Item Consume id. private static final int ItemConsumeNum = 100; // Item Consume Am.ount. private static final boolean ShowPlayersInside = true; //If you set it true, NPC will show how many players are inside area. private static final boolean ShowPartiesInside = true; //If you set it true, NPC will show how many parties are inside area. //------------------------------------- private static String htm = "data/scripts/custom/PartyTeleporter/1.htm"; //html location. Alguem adapta pramin fazendo favo ?
    • tenho minha soucer mais nao estou conseguindo colocar no eclipse para mexer ......  
    • ne kk   tem como me ajudar? eu nao estou conseguindo colocar minha soucer no eclipse de jeito nenhum aff
    • Isso vc consegue alterar no core, caso tenha acesso...
    • Blz, obrigado mesmo assim kk
×
×
  • Create New...