Jump to content

Jeremy_

Members
  • Posts

    257
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Jeremy_

  1. Hello, I would like to present you an amazing Triple faction server with many features and content updates.

     

    Starting date: 01-04-2014 - 05:00pm GMT+2 (17:00h)

     

    Triple faction mode is made by me and the server will be running on my brothers company.

    Chronicle: Interlude.

    WebSite: http://l2claw.comlu.com/

    Facebook Page: https://www.facebook.com/L2Claw

     

    Some things to know:

     

    - Three Factions (Sparta, Saiyans and Trolls)

     

    - Automatized map system with many different maps.

    Some with capture the flags mode, others with raidboss killing mode, antharas mode and many more.

     

    - Epic castle sieges and olympiads.

     

    - Unique enchant system related to pvp kills.

     

    - Anti farm, anti dualbox protections!

     

    - Unique events.

     

    And much much more. That will take ages to write about everything. ^^

    Well, I promise, there will be new updates every week or day (depends on me).

    Just come and you will say - l2java and other servers isn't so good as mine.

  2. Hello there, this is my latest share which with some editing by yourself can do many things. A player pays a fee set by you, and he places and a trap with a selected message. If someone steps on the trap, this message displays at the announcements. That means you can write something humiliating. Also by using %player in your message, the victim's name is being displayed in the message. If you have some basic knowledge you can make it do more stuff. For example, if user steps on the trap and he is not in combat, the player will be teleported to a location that the owner has set, or be paralyzed for some seconds.

     

    Coded and tested on l2jpes. (interlude)

     

    ### Eclipse Workspace Patch 1.0
    #P gameserver
    Index: java/com/l2jpes/gameserver/handler/voicedcommandhandlers/TrapCmd.java
    ===================================================================
    --- java/com/l2jpes/gameserver/handler/voicedcommandhandlers/TrapCmd.java	(revision 0)
    +++ java/com/l2jpes/gameserver/handler/voicedcommandhandlers/TrapCmd.java	(working copy)
    @@ -0,0 +1,69 @@
    +/*
    + * 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 <http://www.gnu.org/licenses/>.
    + */
    +package com.l2jpes.gameserver.handler.voicedcommandhandlers;
    +
    +import com.l2jpes.Config;
    +import com.l2jpes.gameserver.custom.TrapEvent;
    +import com.l2jpes.gameserver.handler.IVoicedCommandHandler;
    +import com.l2jpes.gameserver.model.actor.instance.L2PlayerInstance;
    +
    +/**
    + * @author Pauler
    + */
    +public class TrapCmd implements IVoicedCommandHandler
    +{
    +
    +	private String[] commands = {
    +		"settrap"
    +	};
    +	
    +	@Override
    +	public boolean useVoicedCommand(String command, L2PlayerInstance activeChar, String[] commandParams)
    +	{
    +		if (!TrapEvent.checkIfUserHasTooManytraps(activeChar)) {
    +			if (activeChar.getInventory().getInventoryItemCount(Config.TRAP_COST_ID, 0) >= Config.TRAP_COST_QUANTITY) {
    +				if (!activeChar.isInCombat()) {
    +					if (commandParams != null && commandParams.length != 0) {
    +						activeChar.getInventory().destroyItemByItemId("Buying Traps.", Config.TRAP_COST_ID, Config.TRAP_COST_QUANTITY, activeChar, activeChar);
    +						
    +						activeChar.sendMessage("You placed a trap.");
    +						
    +						String message = "";
    +						
    +						for (String string: commandParams) {
    +							message = message + " " + string;
    +						}
    +						
    +						TrapEvent.placetrap(activeChar, message);
    +					}else
    +						activeChar.sendMessage("You have to write a message after the command");
    +				}else
    +					activeChar.sendMessage("You cannot be in combat while you are placing a trap.");
    +			}else
    +				activeChar.sendMessage("You don't have enough items.");
    +		}else
    +			activeChar.sendMessage("You have already placed too many traps.");
    +		
    +		return false;
    +	}
    +
    +
    +	@Override
    +	public String[] getVoicedCommandList()
    +	{
    +		return commands;
    +	}
    +	
    +}
    Index: java/com/l2jpes/Config.java
    ===================================================================
    --- java/com/l2jpes/Config.java	(revision 5)
    +++ java/com/l2jpes/Config.java	(working copy)
    @@ -223,6 +223,12 @@
    	public static int ALT_FISH_CHAMPIONSHIP_REWARD_4;
    	public static int ALT_FISH_CHAMPIONSHIP_REWARD_5;
    
    +	/** Traps */
    +	public static int TRAP_COST_ID;
    +	public static int TRAP_COST_QUANTITY;
    +	public static int TRAP_RADIUS;
    +	public static int MAX_TRAPS_PER_USER;
    +	
    	// --------------------------------------------------
    	// HexID
    	// --------------------------------------------------
    @@ -875,6 +881,11 @@
    			ALT_FISH_CHAMPIONSHIP_REWARD_4 = events.getProperty("AltFishChampionshipReward4", 200000);
    			ALT_FISH_CHAMPIONSHIP_REWARD_5 = events.getProperty("AltFishChampionshipReward5", 100000);
    
    +			TRAP_COST_ID = events.getProperty("TrapCostId", 57);
    +			TRAP_COST_QUANTITY = events.getProperty("TrapCostQuantity", 1000);
    +			TRAP_RADIUS = events.getProperty("TrapRadius", 20);
    +			MAX_TRAPS_PER_USER = events.getProperty("MaxTrapsPerUser", 5);
    +			
    			// FloodProtector
    			ExProperties security = load(FLOOD_PROTECTOR_FILE);
    			loadFloodProtectorConfig(security, FLOOD_PROTECTOR_ROLL_DICE, "RollDice", "42");
    Index: java/com/l2jpes/gameserver/custom/Trap.java
    ===================================================================
    --- java/com/l2jpes/gameserver/custom/Trap.java	(revision 0)
    +++ java/com/l2jpes/gameserver/custom/Trap.java	(working copy)
    @@ -0,0 +1,55 @@
    +/*
    + * 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 <http://www.gnu.org/licenses/>.
    + */
    +package com.l2jpes.gameserver.custom;
    +
    +import com.l2jpes.gameserver.model.actor.instance.L2PlayerInstance;
    +
    +/**
    + * @author Pauler
    + */
    +public class Trap
    +{
    +	private L2PlayerInstance _owner;
    +	private int _x, _y, _z;
    +	private String _message;
    +	
    +	public Trap(L2PlayerInstance owner, String message) {
    +		_owner = owner;
    +		_x = owner.getX();
    +		_y = owner.getY();
    +		_z = owner.getZ();
    +		_message = message;
    +	}
    +	
    +	public L2PlayerInstance getOwner() {
    +		return _owner;
    +	}
    +	
    +	public int getX() {
    +		return _x;
    +	}
    +	
    +	public int getY() {
    +		return _y;
    +	}
    +	
    +	public int getZ() {
    +		return _z;
    +	}
    +	
    +	public String getMessage() {
    +		return _message;
    +	}
    +}
    Index: java/com/l2jpes/gameserver/handler/VoicedCommandHandler.java
    ===================================================================
    --- java/com/l2jpes/gameserver/handler/VoicedCommandHandler.java	(revision 13)
    +++ java/com/l2jpes/gameserver/handler/VoicedCommandHandler.java	(working copy)
    @@ -20,6 +20,7 @@
    
    import com.l2jpes.Config;
    import com.l2jpes.gameserver.handler.voicedcommandhandlers.L2JPesCmd;
    +import com.l2jpes.gameserver.handler.voicedcommandhandlers.TrapCmd;
    
    public class VoicedCommandHandler
    {
    @@ -35,7 +36,7 @@
         {
             _datatable = new TIntObjectHashMap<>();
             registerVoicedCommandHandler(new L2JPesCmd());
    -        
    +        registerVoicedCommandHandler(new TrapCmd());
         }
    
         private void registerVoicedCommandHandler(IVoicedCommandHandler handler)
    Index: config/events.properties
    ===================================================================
    --- config/events.properties	(revision 5)
    +++ config/events.properties	(working copy)
    @@ -245,4 +245,21 @@
    AltFishChampionshipReward2 = 500000
    AltFishChampionshipReward3 = 300000
    AltFishChampionshipReward4 = 200000
    -AltFishChampionshipReward5 = 100000
    \ No newline at end of file
    +AltFishChampionshipReward5 = 100000
    +
    +#=============================================================
    +#                     Traps By Pauler
    +#=============================================================
    +
    +#The id of the item you need to give
    +#to set a trap.
    +TrapCostId = 57
    +
    +#The quantity of this item.
    +TrapCostQuantity = 1000
    +
    +#The max distance between you and the trap to activate it.
    +TrapRadius = 20
    +
    +#Max traps that a user can place.
    +MaxTrapsPerUser = 5
    Index: java/com/l2jpes/gameserver/GameServer.java
    ===================================================================
    --- java/com/l2jpes/gameserver/GameServer.java	(revision 13)
    +++ java/com/l2jpes/gameserver/GameServer.java	(working copy)
    @@ -20,6 +20,7 @@
    import com.l2jpes.gameserver.cache.CrestCache;
    import com.l2jpes.gameserver.cache.HtmCache;
    import com.l2jpes.gameserver.communitybbs.Manager.ForumsBBSManager;
    +import com.l2jpes.gameserver.custom.TrapEvent;
    import com.l2jpes.gameserver.datatables.AccessLevels;
    import com.l2jpes.gameserver.datatables.AdminCommandAccessRights;
    import com.l2jpes.gameserver.datatables.ArmorSetsTable;
    @@ -181,6 +182,10 @@
    		GmListTable.getInstance();
    		RaidBossPointsManager.getInstance();
    
    +		Util.printSection("Custom");
    +		TrapEvent.getInstance();
    +		_log.info("Trap Event has started.");
    +		
    		Util.printSection("Community server");
    		if (Config.ENABLE_COMMUNITY_BOARD) // Forums has to be loaded before clan data
    			ForumsBBSManager.getInstance().initRoot();
    Index: java/com/l2jpes/gameserver/custom/TrapEvent.java
    ===================================================================
    --- java/com/l2jpes/gameserver/custom/TrapEvent.java	(revision 0)
    +++ java/com/l2jpes/gameserver/custom/TrapEvent.java	(working copy)
    @@ -0,0 +1,80 @@
    +/*
    + * 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 <http://www.gnu.org/licenses/>.
    + */
    +package com.l2jpes.gameserver.custom;
    +
    +import com.l2jpes.Config;
    +import com.l2jpes.gameserver.Announcements;
    +import com.l2jpes.gameserver.ThreadPoolManager;
    +import com.l2jpes.gameserver.model.L2World;
    +import com.l2jpes.gameserver.model.actor.instance.L2PlayerInstance;
    +
    +import java.util.List;
    +import java.util.concurrent.CopyOnWriteArrayList;
    +
    +/**
    + * @author Pauler
    + */
    +public class TrapEvent
    +{
    +	public static List<Trap> placedtraps;
    +	
    +	public static void getInstance() {
    +		placedtraps = new CopyOnWriteArrayList<>();
    +		
    +		ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable() {
    +			
    +			@Override
    +			public void run() {			
    +				for (Trap trap:placedtraps) {
    +					for (L2PlayerInstance player: L2World.getInstance().getAllPlayers().values()) {
    +						if (player.isInsideRadius(trap.getX(), trap.getY(), Config.TRAP_RADIUS, false) && player != trap.getOwner()) {
    +							player.sendMessage("You stepped on a trap.");
    +							
    +							String message = trap.getMessage();
    +							message = message.replaceAll("%player", player.getName());
    +							
    +							Announcements.announceToAll(message);
    +							
    +							removetrap(trap);
    +						}
    +					}
    +				}	
    +			}
    +			
    +		}, 10000, 1000);
    +	}
    +	
    +	public static boolean checkIfUserHasTooManytraps(L2PlayerInstance player) {
    +		int placedtrapsByUser = 0;
    +		
    +		for (Trap trap:placedtraps) {
    +			if (trap.getOwner() == player)
    +				placedtrapsByUser++;
    +		}
    +		
    +		if (placedtrapsByUser < Config.MAX_TRAPS_PER_USER)
    +			return false;
    +		
    +		return true;
    +	}
    +	
    +	public static void placetrap(L2PlayerInstance player, String message) {
    +		placedtraps.add(new Trap(player, message));
    +	}
    +	
    +	public static void removetrap(Trap trap) {
    +		placedtraps.remove(trap);
    +	}
    +}
    
    

     

    If I stop being so lazy, I will upload a video.

    Good idea! Keep Sharing...! Thanks You :)

  3. Hello mxc community.

    First of all i want to inform you, that i'm not new member here. I had an account before, but i made this one to start my new services + projects.

     

    My Services & contact info:

    fz56o5.jpg

     

    If you want to send me something via email :

    sterling@vgzone.org

     

    OR pm me via message here.

     

    ---------------------------------------------------------------------------

    Customers:

     

     

     

     

     

    Trusted! I Exchange 50Euro's :)

  4. It's surely already shared. Just use search (uncle google) :)

     

    1st result, old like sh1t :D

     

    http://trac.assembla.com/l2jroh/browser/L2JSaver/src/l2jsaver/Vago/GotoLeader.java?rev=10

    ### Eclipse Workspace Patch 1.0
    #P aCis_gameserver
    Index: java/net/sf/l2j/gameserver/handler/customcommandhandlers/GoToLeader.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/handler/customcommandhandlers/GoToLeader.java	(revision 0)
    +++ java/net/sf/l2j/gameserver/handler/customcommandhandlers/GoToLeader.java	(working copy)
    @@ -0,0 +1,53 @@
    +/*
    + * 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 <http://www.gnu.org/licenses/>.
    + */
    +package net.sf.l2j.gameserver.handler.customcommandhandlers;
    +
    +import net.sf.l2j.gameserver.handler.ICustomCommandHandler;
    +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
    +
    +/**
    + * @author Devlin
    + *
    + */
    +public class GoToLeader implements ICustomCommandHandler
    +{
    +	private static String[] VOICED_COMMANDS = { "gotoleader" };
    +	
    +	@Override
    +	public boolean useCustomCommand(String command, L2PcInstance activeChar)
    +	{
    +		if (command.equals("gotoleader"))
    +		{
    +			if (activeChar.getClan() != null)
    +			{
    +				L2PcInstance clanLeader = activeChar.getClan().getLeader().getPlayerInstance();
    +				
    +				if (clanLeader == null)
    +					return false;
    +
    +				activeChar.teleToLocation(clanLeader.getX(), clanLeader.getY(), clanLeader.getZ(), 0);
    +				return true;
    +			}
    +		}
    +		
    +		return true;
    +	}
    +
    +	@Override
    +	public String[] getCustomCommandList()
    +	{
    +		return VOICED_COMMANDS;
    +	}
    +}
    \ No newline at end of file
    Index: java/net/sf/l2j/gameserver/handler/CustomCommandHandler.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/handler/CustomCommandHandler.java	(revision 81)
    +++ java/net/sf/l2j/gameserver/handler/CustomCommandHandler.java	(working copy)
    @@ -21,6 +21,7 @@
    import net.sf.l2j.Config;
    import net.sf.l2j.gameserver.handler.customcommandhandlers.EventCommands;
    import net.sf.l2j.gameserver.handler.customcommandhandlers.GlobalEventCommands;
    +import net.sf.l2j.gameserver.handler.customcommandhandlers.GoToLeader;
    import net.sf.l2j.gameserver.handler.customcommandhandlers.HappyHour;
    import net.sf.l2j.gameserver.handler.customcommandhandlers.OlympiadTime;
    import net.sf.l2j.gameserver.handler.customcommandhandlers.Topstats;
    @@ -53,6 +54,8 @@
    
    		registerCustomCommandHandler(new EventCommands());
    		registerCustomCommandHandler(new GlobalEventCommands());
    +		
    +		registerCustomCommandHandler(new GoToLeader());
    	}
    
    	public void registerCustomCommandHandler(ICustomCommandHandler handler)

     

    A fast code without checks and such.

    Ty Mate ;)

  5. L2JPes

    Interlude Experimental Open Source Project

     

    L2JPes stands for Pauler's Experimental Source and it is an interlude open source project based on aCis 290 revision. (We will change to 300 when it is available to public.) I created this project to test some things I have in mind, spend some time coding while I am on vacation and expand my l2j knowledge. We won't have any website or forum any time soon, except if I see interest you. Everyone, is free to report any bugs here, or contribute with his own way.

     

    Also, if someone is interested in being a developer for this project, and he is confident enough, send me a PM.

     

    Why interlude?

    I already got this question many times, and the answer is that I am more familiar with that chronicle than the rest.

     

    SVN: https://xp-dev.com/svn/L2JPes/trunk/interlude/

    Timeline: https://xp-dev.com/trac/l2jpes/timeline

     

    Regards.

    Good Luck Pauler!

  6. Did you even unzip it?

    To see what is the name of the file? .sys .exe or something?

    Maybe it is a video file which is not supported by your phone that's why you cant watch it.

    What phone you have?

    hmm.. i have take a lot of videos but... read better..... when i take this video my mobile turning off (low Memory RAM) and video saved..... but is unfinished!!! file category .3gp (all mobile videos saved as .3gp) This.

     

    BUMP!!!!!!!!!!!!!! HELP!

  7. Θέλεις το skill από raidboss έτσι όπως είναι να το βάλεις σε ένα class?

    Δοκίμασε απλά να το βάλεις στο template του class από db/xml(ανάλογα το pack),ώστε να μαθαίνει κι αυτό το skill μαζί με τα άλλα.

    to skill to mathenei kanonika file :P apla den fenete to animation tou ... fenete ena KENO apla ... :/

  8. [GR]

    geia sas paidia :)

    den ta elega pos exw ena provlima...

    alla thelw na rotiso pos mporo na kanw PX. to skill tou Anakim.

    na to valw pano se enan character kai na fenete to animation tou ;) (exei pollu g@m@to animation.)

    TO ID EINAI 4314 LVL 9. DOKIMASTE KAI ESEIS AN THELETE.

    Wriste kai i photo...

    Kapos Etsi Thelw!

    shot00007fy7.jpg

    kai etsi shot00014yw7.jpg

×
×
  • Create New...