Jump to content

hopakos

Members
  • Posts

    79
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by hopakos

  1. just pm eddy and he will tell you about. i know this guy is 100% trustable
  2. Thx for this gr8 share thx a lot
  3. Nice post. You can just make a txt file and change the extension to .bat and paste this! ---> @echo off & cls color 0B ECHO LoL ping checker ECHO by HopakoS :Start ECHO. ECHO [1] Router ECHO [2] EUNE ECHO [3] EUW ECHO [4] NA ECHO [5] EXIT ECHO. CHOICE /C 12345 /M "Select your server: " IF ERRORLEVEL 5 GOTO End IF ERRORLEVEL 4 GOTO checkNA IF ERRORLEVEL 3 GOTO checkEUW IF ERRORLEVEL 2 GOTO checkEUNE IF ERRORLEVEL 1 GOTO Router :checkEUW ECHO CHECKING PING FOR EUW ping 95.172.65.1 ECHO Completed Succesfully GOTO Start :checkEUNE ECHO CHECKING PING FOR EUNE ping riot.de ECHO Completed Succesfully GOTO Start :checkNA ECHO CHECKING PING FOR NA ping riot.ca ECHO Completed Succesfully GOTO Start :Router ECHO CHECKING PING FOR ROUTER ping 192.168.1.1 ECHO Completed Succesfully GOTO Start :End
  4. yoohooo Thx elfo for this !! i never seen playing/learn Coding!
  5. Haters everywhere, Well all i can say is avoid spend your time with those losers( i don't wanna say names, always we see same names on every post/topic on this forum) I am gonna see your work and for sure i am gonna join. If server is good the people will stay else they will leave (as L2Avellan Fall). And i know you are not the real L2Old-School because i knew those people from real life. Good Luck with it.
  6. Welcome, Nice to meet you. If you need any help with java/php coding make topic and put my name i would like to help.
  7. package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.Config; import net.sf.l2j.gameserver.datatables.ItemTable; import net.sf.l2j.gameserver.instancemanager.ZoneManager; import net.sf.l2j.gameserver.model.L2Party; import net.sf.l2j.gameserver.model.actor.L2Character; import net.sf.l2j.gameserver.model.zone.L2ZoneType; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.InventoryUpdate; import net.sf.l2j.gameserver.network.serverpackets.ItemList; import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.network.serverpackets.StatusUpdate; import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; /** * @author `Heroin Adapter Gandalf PartyTeleporter, Lucas Fernandes */ public class L2PartyTeleporterInstance extends L2NpcInstance { private static final int npcid = Config.NPC_ID_PT_TELEPORTER; // npc id // ------------------------------------- // Teleport Location Coordinates X,Y,Z. // Use /loc command in game to find them. private static final int locationX = Config.NPC_PT_TELEPORTER_X; // npc id private static final int locationY = Config.NPC_PT_TELEPORTER_Y; // npc id private static final int locationZ = Config.NPC_PT_TELEPORTER_Z; // 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 = Config.NPC_PT_ZONEID; // Here you have to set your zone Id // ------------------------------------- private static final int MinPtMembers = Config.NPC_PT_MINPT_MEMBERS; // Minimum Party Members Count For Enter on Zone. private static final int ItemConsumeId = Config.NPC_PT_ITEMCONSUME_ID; // Item Consume id. private static final int ItemConsumeNum = Config.NPC_PT_ITEMCOMSUME_QT; // Item Consume Am.ount. private static final boolean ShowPlayersInside = Config.NPC_PT_SHOWINSIDE_PLAYERS; // If you set it true, NPC will show how many players are inside area. private static final boolean ShowPartiesInside = Config.NPC_PT_SHOWINSIDE_PARTIES; // If you set it true, NPC will show how many parties are inside area. private static String ItemName = ItemTable.getInstance().getTemplate(ItemConsumeId).getName(); // Item name, Dont Change this private String htmContent; public L2PartyTeleporterInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(L2PcInstance player, String command) { player.sendPacket(ActionFailed.STATIC_PACKET); StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); // Get actual command if (actualCommand.equalsIgnoreCase("partytp")) { TP(player); } super.onBypassFeedback(player, command); } public int getPartiesInside(int zoneId)// Calculating parties inside party area. { int i = 0; for (L2ZoneType zone : ZoneManager.getInstance().getZones(locationX, locationY, locationZ)) { if (zone.getId() == zoneId) { for (L2Character character : zone.getCharactersInside()) { if ((character instanceof L2PcInstance) && (!((L2PcInstance) character).getClient().isDetached()) && (((L2PcInstance) character).getParty() != null) && ((L2PcInstance) character).getParty().isLeader((L2PcInstance) character)) { i++; } } } } return i; } public int getPlayerInside(int zoneId)// Calculating players inside party area. { int i = 0; for (L2ZoneType zone : ZoneManager.getInstance().getZones(locationX, locationY, locationZ)) { if (zone.getId() == zoneId) { for (L2Character character : zone.getCharactersInside()) { if ((character instanceof L2PcInstance) && (!((L2PcInstance) character).getClient().isDetached())) { i++; } } } } return i; } private static 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 static void proccessTP(L2PcInstance player) // Teleporting party members to zone { for (L2PcInstance member : player.getParty().getPartyMembers()) { member.teleToLocation(locationX, locationY, locationZ, 1);// Location X, Y ,Z } } private static void TP(L2PcInstance player) // 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; } 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.destroyItemByItemId("Party_Teleporter", ItemConsumeId, ItemConsumeNum, ppl, true); } // 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 void showChatWindow(L2PcInstance player) { final int npcId = Config.NPC_ID_PT_TELEPORTER; if (npcId == npcid) { // Send a Server->Client NpcHtmlMessage containing the text of the L2Npc to the L2PcInstance NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile("data/html/mods/PartyTeleporter.htm"); html.replace("%objectId%", getObjectId()); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%player%", player.getName());// Replaces %player% with player name on html html.replace("%itemname%", ItemName);// Item name replace on html html.replace("%price%", player.getParty() != null ? "" + (ItemConsumeNum * player.getParty().getMemberCount()) + "" : "0");// Price calculate replace html.replace("%minmembers%", "" + MinPtMembers);// Mimum entry party members replace html.replace("%allowed%", isAllowedEnter(player) ? "<font color=00FF00>Allowed</font>" : "<font color=FF0000>not allowed</font>");// Condition checker replace on html html.replace("%parties%", ShowPartiesInside ? "<font color=FFA500>Parties Inside: " + getPartiesInside(ZoneId) + "</font><br>" : "");// Parties inside html.replace("%players%", ShowPlayersInside ? "<font color=FFA500>Players Inside: " + getPlayerInside(ZoneId) + "</font><br>" : "");// Players Inside player.sendPacket(html); return; } player.sendPacket(ActionFailed.STATIC_PACKET); } private static boolean isAllowedEnter(L2PcInstance player) // Checks if player & his party is allowed to teleport. { return player.getParty() != null && (player.getParty().getMemberCount() >= MinPtMembers) && PartyItemsOk(player); } } net.sf.l2j.gameserver.model.actor.instance.L2PartyTeleporterInstance I have make some Corrections in this File Dont use it like a javascript. I have add the HTML FILES TO ----> "data/html/mods/PartyTeleporter.htm") If you wants it somewere else just change the dir.
  8. Thanks to all for the answers i check them all one by one
  9. Well i am starting this topic to find out good companies to work with i already got DNS on Pointer.gr. i got no problem with them except that they ask 2e/month for the "Unlimited Network Traffic" I don't know if it is good price that's why i am asking our community here.
  10. There was The old republic clan in this server i was there. i remember and i hope your server will be stable and balanced. i will join to see your futures.
  11. Omg man i was playing there with name bereal loong time ago and you remove my ban!
  12. Good luck tho
  13. Oh Gosh! so true....
  14. Hello mate.! Sometimes helping is better than wiki!!! It's like you say close the school's and let the students to study wiki!. --> https://www.codecademy.com/ <-- Spend time that worth! I have some questions ---> How to add pvp countable inside arena zones. How to close resurrection if dead char inside boss-zone and the alive char(who try to res the dead one) is outside of Boss-zone. (but if both of players are inside boss-zone resurrection must be OK) How to make Grand boss when re-spawned to change Respawn_time to 0(at SQL) <!-- I think tryskell should change this in aCis project --> i must put the codes into my l2jserver.jar via eclipse i just don't know good java Lang but i wanna learn. If you just send me the codes i will figure it out were to put them. I am using aCis rev 3.15 with many adapts from other L2jProjects.
  15. Thx man really you helped me a lot i just change the script with a using script of a working guard(tested one outeside of aden castle town) and it's just fine. you just take me 1 step higher! LineageMonster.orc_champion changed to LineageNPC.a_guard_FDarkelf
  16. I can't check becouse Images is dead
  17. You just dont help like that . :/
  18. I dont understand what you mean by "script" i use the ert_guard_f_a.ukx from animation and from System/npcgrp.dat i add the code is an already Gurd ID. <!--(Gurds ID) LineageMonster.orc_champion ert_guard_f_a.ert_guard_f_a_m00 4 ert_guard_f_a.ert_guard_f_aa ert_guard_f_a.ert_guard_f_as 0 10 4416 6 4410 10 4411 10 4412 12 4413 12 1.000000 0 3 ItemSound.sword_mid_9 ItemSound.sword_big_2 ItemSound.spear_4 4 MonSound.Hit_Shell_2 MonSound.Hit_normal_3 MonSound.Hit_Metal_Clang_1 MonSound.Hit_Wet_1 3 MonSound.v_lizard_dmg_1 MonSound.v_lizard_dmg_2 MonSound.v_lizard_dmg_3 0 1 0 LineageEffect.p_u002_a 0 50.000000 250.000000 70.000000 0 1 -->
  19. I Have checked all your Ert * NPC And i can say that you did an excellent Job with make this Npcs they are all so Beautiful but in this one i has a problem It's like frozen but when i talk to it sometimes it become normal and sometimes not. They only different i did Is to add in hes Rhand ID 277 --> Dark elven Bow (D) Because i just didn't know the ID of the item you give.
  20. I have the Same problem using Acis. <set name="radius" val="6"/> <set name="height" val="23"/> <set name="rHand" val="0"/> <set name="lHand" val="0"/>
  21. Very beutifull share ;)
  22. Very nice and helpfull post. Thx >:D Do you know how to make arenazones pvp countable;
×
×
  • 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