Jump to content

Kara

Banned
  • Posts

    2,100
  • Joined

  • Last visited

  • Days Won

    46
  • Feedback

    100%

Everything posted by Kara

  1. I'm just objective. Even if my best friend post something silly i'll judge him. First of all you posted as [Share]. Second why would u introduce ur self? If you want sell services just open a topic in marketplace.
  2. _npc.isChampion() ? 1 : 0 is like saying if (_npc.isChampion()) { writeC(1); } else { writeC(0); } So since all mob seem with blue aura which i guess is 1 its like all are considered champions. The 0x00 you mention has nothing to do. 0x00 is equal to 0. it has no difference. Check your isChampion() method and the variable it carries and check if by default has set to true. A default boolean has value false always. Yours might be _isChampion = true and make all monsters champions at least from the code's pov as i see.
  3. I don't understand anything from what you say. I asked if you added champion your self and if you have set _champion boolean by default as true cause all npc seem to have aura even tho you have set only champions to have aura.
  4. Did you add the champion system your self or is implemented by default inside pack? It's like isChampion() return true for all npc.
  5. As far i read by others writeC(); can accept more than 2 and no just 0 - 1 so boolean cannot be used. In that case you need use a int. Still the check you did is useless, use it like this: public static int CHAMPION_AURA_TYPE; CHAMPION_AURA_TYPE = npcs.getProperty("ChampionAuraType", 0); and in writeC simply add your config.
  6. L2JMOD_CHAMPION_ENABLE_AURA = L2JModSettings.getInt("ChampionEnableAura", 0); if ((L2JMOD_CHAMPION_ENABLE_AURA != 0) && (L2JMOD_CHAMPION_ENABLE_AURA != 1) && (L2JMOD_CHAMPION_ENABLE_AURA != 2)) { L2JMOD_CHAMPION_ENABLE_AURA = 0; } Where did you find this ? It's like SweetS wrote this code. First of all why this variable is Integer and not boolean. Second why the !=0 and the !=1 and the !=2 since it only work as True or False. Why it has 3 stages? All you need is a boolean variable like this: public static boolean L2JMOD_CHAMPION_ENABLE_AURA; L2JMOD_CHAMPION_ENABLE_AURA = L2JModSettings.getBoolean("ChampionEnableAura", false);
  7. Why they banned you Sanctus`
  8. The server itself says its no custom and the system it's bigger than interlude client. I wonder what they've added in there to manage make the system that big. I really wonder what the system contains cause i can't download 1.5 GB on my ssd for no reason.
  9. Stop posting each update on a different post. There is even rule saying that and you keep making triple posts.
  10. Someone is on his period today. Still if your best solution is to set 5 years for sieges to start to disable them i give up.
  11. Thanks for asking, my eyes are perfect tho unlike yours.
  12. Language please. He wants siege to be weekly and you advice him to change it directly from the SQL?
  13. And he will do it manually each time he want the siege to be weekly. Nice one Melron.
  14. Why you need to take old features. Why don't you re-create them. Lack of knowledge? If yes then consider that faction has many "check" such as AOE skills which you have to eliminate.
  15. Didn't you have a "project" 1 year ago? What happened all of sudden you can't setup properly the java in eclipse? Window -> Preferences -> Ant -> Runtime -> Add Home entries -> Add external -> java8jdk -> libs - > tools.jar -> apply.
  16. That some basic knowledge of java. Obviously the variable name (i refer to activeChar) wont be the same. In your case is player.teleToLocation(). Now after that you can add the line you can get from BSOE which broadcast the animation.
  17. How it has no activeChar.teleToLocation I already seen it 3 times and i didn't even hit Control + F.
  18. Go in L2TeleportInstance.java find the line that teleport the player, it should look like "activeChar.teleToLocation" or something and add a line to broadcast the soe animation.
  19. Index: java/com/l2jserver/gameserver/model/actor/L2Character.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/L2Character.java (revision 2) +++ java/com/l2jserver/gameserver/model/actor/L2Character.java (working copy) /** * Mother class of all character objects of the world (PC, NPC...)<br> * L2Character:<br> @@ -4420,6 +4420,11 @@ final int curY = super.getY(); final int curZ = super.getZ(); + if (isPlayer()) + { + getActingPlayer().setLastXY(curX, curY); + } + // Calculate distance (dx,dy) between current position and destination // TODO: improve Z axis move/follow support when dx,dy are small compared to dz double dx = (x - curX); Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 2) +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -14483,4 +14514,47 @@ return _hasCharmOfCourage; } + + final int[] _lastXY = new int[2]; + + public void setLastXY(int x, int y) + { + _lastXY[0] = x; + _lastXY[1] = y; + } + + public boolean isAfk() + { + return (getX() == _lastXY[0]) && (getY() == _lastXY[1]); + } + + /** Methods to put inside your event when it start and it stop */ + + Future<?> _task; + + public void stopAfk() + { + if (_task != null) + { + _task.cancel(true); + _task = null; + } + } + + public void startAfk() + { + stopAfk(); + + _task = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> + { + L2World.getInstance().getPlayers().stream().filter(p -> p.isAfk()).forEach(p -> + { + p.sendMessage("You have been detected as afk."); + // Tasks here. + }); + + }, 60000, 60000); + } } \ No newline at end of file I made you a short code that you can use. *Note: Make sure to put your boolean method or what you have that checks if player is inside event. Ex. p -> p.isAfk() && p.isInEvent()
  20. String dbName = "jdbc:mysql://localhost/xdemSucks"; String dbUser = "root"; String dbPass = "12345"; String path="C:\test.sql"; String executeCmd = "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump -u " + dbUser + " -p" + dbPass + " --add-drop-database -B " + dbName + " -r " + path; Runtime.getRuntime().exec(executeCmd); Something like that maybe? idk.
  21. I love how the title has nothing to do with the content. Title: Fake Players with Behaviour. Content: Help me add roboto engine in sunrise.
  22. Welcome back. Why don't you ask maxtor to make you global mod again ? The current staff is ew. @Maxtor Please make him global mod again <3
  23. Δεν πειθεις.
×
×
  • 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