Jump to content

NuclearCitizen

Members
  • Posts

    8
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About NuclearCitizen

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

NuclearCitizen's Achievements

Apprentice

Apprentice (3/16)

  • Week One Done Rare
  • Dedicated Rare
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

1

Reputation

  1. Hey guys. I am trying to make my !global chat to be seen everywhere in the world. Can somebody help me with the code here? package net.sf.l2j.gameserver.handler.chathandlers; import net.sf.l2j.gameserver.data.xml.MapRegionData; import net.sf.l2j.gameserver.enums.FloodProtector; import net.sf.l2j.gameserver.enums.SayType; import net.sf.l2j.gameserver.handler.IChatHandler; import net.sf.l2j.gameserver.model.World; import net.sf.l2j.gameserver.model.actor.Player; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; public class ChatShout implements IChatHandler { private static final SayType[] COMMAND_IDS = { SayType.SHOUT }; @Override public void handleChat(SayType type, Player player, String target, String text) { if (!player.getClient().performAction(FloodProtector.GLOBAL_CHAT)) return; final CreatureSay cs = new CreatureSay(player, type, text); final int region = MapRegionData.getInstance().getMapRegion(player.getX(), player.getY()); for (Player worldPlayer : World.getInstance().getPlayers()) { if (region == MapRegionData.getInstance().getMapRegion(worldPlayer.getX(), worldPlayer.getY())) worldPlayer.sendPacket(cs); } } @Override public SayType[] getChatTypeList() { return COMMAND_IDS; } }
  2. Hey guys. This is probably a dumb question but here it goes. It's my first time using acis and while trying to make a gatekeeper I got kinda stuck. I have added the custom npc in the xml/npcs. I have added the teleports in the xml/teleports.xml (screen 1) but what confuses me is how do I connect the html actions with each of these teleports since there is no teleport id. (screen 2). The goto "x" are ids that were inside database: teleports table, which doesn't exist on aCis Screen 1: https://prnt.sc/nTD9HMPpF8n8 Screen 2: https://prnt.sc/f8mww4_nbUgj solved
  3. I checked everything multiple times trying to solve this but I will gladly show you the server properties (Scrn 1=login/Scrn 2=Gserver). Something that does trouble me though is that in the configs it says "# WARNING: External/Internal IPs are now inside "ipconfig.xml" file." which is weird because it is either outdated from previous pack versions, or I am missing something. I searched every folder and there's only IPconfig.xsd which should only be the structure for the xml file. However people can still join normally (until the problem comes up). https://prnt.sc/t_M8jnYxyMJE https://prnt.sc/YH9vH049bbHy Also in the gameserver console, when the server starts I do get this which I have no idea how I could change. https://prnt.sc/C0xopNurFYm2
  4. Hello Destorion and thank you for the reply. Yes everything is fine in the l2.ini. For example, everyone can join the server after I open or restart it. It's only after some 5 or 10 minutes that if anyone tries to login, at the exact same moment I see my console saying that the gserver connection was lost. So I thought maybe something is changing in my IP and what not. I tried to use no-ip, same results. I am really lost on this one right now
  5. Hello Devs. I am currently setting up my L2 server using L2Jserver pack. I host the server from my pc so other people and friends can join and help me while in development state. Once the server got up, everything worked fine. After 5 or 10 minutes another guy was about to join the server and told me that the server is down, even though there were a few people online at that moment. Long story short, what's happening is that the server runs fine but after a few minutes if somebody tries to login (or just restarts the game) the login console shows that it has lost connection to the gameserver. I have checked hexids, db connection and everything like 10 times but no luck. It is weird because the server never actually closes. It's just that the login loses touch of the gameserver and then shows it as "Down". I really need some help. https://prnt.sc/kUaN76zJS3r9 Thank you in advance.
×
×
  • Create New...