Jump to content

Edeilson X Lorraine

Membro
  • Content Count

    64
  • Joined

  • Last visited

Community Reputation

6 Normal

About Edeilson X Lorraine

  • Rank
    Muito Noob
  • Birthday 05/04/1995

Recent Profile Visitors

650 profile views
  1. as systextures tem no topico do l2jbrasil junto com os npc
  2. baixe o java mas o mysql certo que fucionara 100%
  3. ela tem tudo nao vao precisa mudar nada ! mas vou procura uma internet e upa ela porque estou sem internet agora ! mas postarei sim !
  4. ok so vou pega umas coisa aki no mercado ja volto
  5. Rev Free !! Proteçao HWID 100% ======================== Mods ================= Npc Crest Hero em 7 em 7 dias Anucio PvP Corigido Anucio Login Hero Teleport em pt Show HP + CP Ao Morrer Area Flagzone Npc Bug Report NPC Change pwd Pvp no título [0] [0] Ant phx Ant Ddos =============== Comandos =============== /usntuck direto para giran Item Clan Full Set TT . menu Entre Outro que nao consigo Lembra !! Um Ano Fazendo e Refazendo Agora eu parei resolvi posta pra nois free viu gente e de voces baixo so por on e cabo Faça Otimo Aproveito ! ==================================== Fotos Dentro do L2 http://www.mediafire.com/file/jd24d1na5b4fxa6/Fotos+l2jrep.rar System Protocol : 840 , 846 http://www.mediafire.com/file/55dsn7aw6yb56rx/System.rar/file Server Atualizado http://www.mediafire.com/file/88tpyn75cu86pg1/L2Life+75x.rar Obs.: Use por sua conta e risco. Aprecie com moderação
  6. opa consegui add o mod pwd mas porem o efeito nao sai 

    o boneco fica deitado n sai

  7. Mudar area PVP automaticamente /* * 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 . */ package ai.RandomPvpZone; import ai.AbstractNpcAI; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.zone.L2ZoneType; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.util.Rnd; /** * @author Ezequiel Adaptacion CaFi */ public class RandomPvpZone extends AbstractNpcAI { // zonas id private final int zoneid1 = 100000; private final int zoneid2 = 100001; private final int zoneid3 = 100002; private final int zoneid4 = 100003; // tiempo de cada zone 30 min private final int tiempocadazona = 1800000; private int zonechoose; private long time; public RandomPvpZone(String name, String descr) { super(name, descr); // agregamos las zonas addEnterZoneId(zoneid1, zoneid2, zoneid3, zoneid4); addExitZoneId(zoneid1, zoneid2, zoneid3, zoneid4); time = System.currentTimeMillis(); zonechoose = zoneid1; } public String onEnterZone(L2PcInstance character, L2ZoneType zone) { if (zone.getId() == luckyzone()) { character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE); character.broadcastUserInfo(); character.updatePvPFlag(1); } return super.onEnterZone(character, zone); } public String onExitZone(L2PcInstance character, L2ZoneType zone) { if (zone.getId() == luckyzone()) { character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE); character.broadcastUserInfo(); character.updatePvPFlag(0); } return super.onExitZone(character, zone); } private int luckyzone() { if (System.currentTimeMillis() > (time + tiempocadazona)) { // elije una zona random zonechoose = Rnd.get(zoneid1, zoneid4); time = System.currentTimeMillis(); } return zonechoose; } public static void main(String[] args) { new RandomPvpZone(RandomPvpZone.class.getSimpleName(), "ai/RandomPvpZone"); } } --- /dev/null +++ b/L2J_DataPack/dist/game/data/zones/randompvpzone.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +
  8. Queria adptar para l2jfrozen amigo si puder esta min ajudando agradesso
  9. Alguem adapta pramin fazendo favo ? Queria para l2jfrozen quem puder esta min ajudando agradesso 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.
×
×
  • Create New...