Jump to content

Psyancy

Legendary Member
  • Posts

    1,560
  • Credits

  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Posts posted by Psyancy

  1. 9 hours ago, Dreamerdream said:

    Thank You m8 
     L2Teleportloction and TeleportLocationTable  changed the name right ? can you please tell me 
    Thank 

    
    private static void doTeleport(Player player, int val) {
            TeleportLocation list = TeleportLocationData.getInstance().getTemplate(val);
            if (list != null) {
                player.teleToLocation(list.getX(), list.getY(), list.getZ(), true);
            } else {
                System.out.println("No teleport destination with id:" + val);
            }
    
            player.sendPacket(ActionFailed.STATIC_PACKET);
        }
    
        public static TeleBBSManager getInstance() {
            return TeleBBSManager.SingletonHolder.INSTANCE;
        }
    
        private static class SingletonHolder {
            protected static final TeleBBSManager INSTANCE = new TeleBBSManager();
    
            private SingletonHolder() {
            }
        }
    }

    It depends on your source version mate, there are several changes all these years locations changed, names changed.

    If you find it hard to find something you can search in acis updates for the word you're looking for, example L2TeleportLocation and you will see the new class that it's added or renamed so you will know where to look.

  2. On 10/2/2020 at 5:11 PM, Dreamerdream said:

    Acis 

    Here is my gatekeeper on my pack, try this one. 

    It was copy pasted and adapted from other pack it's not the best quality but it works, you can improve it.

    package net.sf.l2j.gameserver.communitybbs.Manager;
    
    import java.util.StringTokenizer;
    
    import net.sf.l2j.gameserver.cache.HtmCache;
    import net.sf.l2j.gameserver.communitybbs.tasks.PlayerStatsUpdateTask;
    import net.sf.l2j.gameserver.data.xml.TeleportLocationData;
    import net.sf.l2j.gameserver.model.actor.instance.Player;
    import net.sf.l2j.gameserver.model.location.TeleportLocation;
    import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
    
    /**
     * 
     * @author Designatix
     *
     */
    public class GatekeeperBBSManager extends BaseBBSManager
    {
    	public void parsecmd(String command, Player activeChar)
    	{
    		if (command.startsWith("_bbsgatekeeper"))
    		{
    			String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/1.htm");
    			content = content.replace("%CharName%", String.valueOf(activeChar.getName()));
    			separateAndSend(content, activeChar);
    			
    			StringTokenizer st = new StringTokenizer(command, ";");
    			st.nextToken();
    			String secondCommand = st.nextToken();
    			if (secondCommand.equals("giran")) 
    			{
    				showGiranTeleports(activeChar);
    			}
    			else if (secondCommand.equals("aden")) 
    			{
    				showAdenTeleports(activeChar);
    			}
    			else if (secondCommand.equals("dion")) 
    			{
    				showDionTeleports(activeChar);
    			}
    		    else if (secondCommand.equals("gludio")) 
    		    {
    		    	showGludioTeleports(activeChar);
    		    }
    		    else if (secondCommand.equals("heine")) 
    		    {
    		    	showHeineTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("oren")) 
    		    {
    		        showOrenTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("rune")) 
    		    {
    		        showRuneTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("goddard")) 
    		    {
    		        showGoddardTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("schuttgart")) 
    		    {
    		        showSchuttgartTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("talkingisland")) 
    		    {
    		        showTalkingIslandTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("elvenvillage")) 
    		    {
    		        showElvenTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("darkelvenvillage")) 
    		    {
    		        showDarkElvenTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("dwarvenvillage")) 
    		    {
    		        showDwarvenTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("orcvillage")) 
    		    {
    		        showOrcTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("huntersvillage")) 
    		    {
    		        showHuntersTeleports(activeChar);		
    		    }
    		    else if (secondCommand.equals("gludin")) 
    		    {
    		        showGludinTeleports(activeChar);		
    		    }
    		}
    		
    		else
    		{
    			super.parseCmd(command, activeChar);
    		}
    	}
          
    	public static void doTeleport(Player player, int val)
    	{
    		TeleportLocation list = TeleportLocationData.getInstance().getTeleportLocation(val);
    		if (list != null)
    		{
    			if (player.isAlikeDead())
    				return;
    			
    			// Retrieve price list. Potentially cut it by 2 depending of current date.
    			int price = list.getPrice();
    			
    			// Delete related items, and if successful teleport the player to the location.
    			if (player.destroyItemByItemId("Teleport ", (list.isNoble()) ? 6651 : 57, price, player, true))
    				player.teleToLocation(list, 20);
    		}
    		else
    			_log.warning("No teleport destination with id:" + val);
    		
    		player.sendPacket(ActionFailed.STATIC_PACKET);
    	}
    	
    	private static void showGiranTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/giran.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showAdenTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/aden.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showDionTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/dion.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showGludioTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/gludio.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showHeineTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/heine.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showOrenTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/oren.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showRuneTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/rune.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showGoddardTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/goddard.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showSchuttgartTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/schuttgart.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showTalkingIslandTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/talkingisland.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showElvenTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/elven.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showDarkElvenTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/darkelven.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showDwarvenTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/dwarven.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showOrcTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/orc.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showHuntersTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/hunters.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    
    	private static void showGludinTeleports(Player activeChar)
    	{
    		String content = HtmCache.getInstance().getHtm("data/html/CommunityBoard/gatekeeper/gludin.htm");		
    		
    	    content = content.replaceAll("%toppvp%", PlayerStatsUpdateTask.pvpList());
    	    content = content.replace("%lastUpdate%", PlayerStatsUpdateTask.getLastUpdate());
    	    separateAndSend(content, activeChar);		
    	}
    	
    	@Override
    	protected String getFolder()
    	{
    		return "stats/";
    	}
    	
    	public static GatekeeperBBSManager getInstance()
    	{
    		return SingletonHolder.INSTANCE;
    	}
          
    	private static class SingletonHolder
    	{
    		protected static final GatekeeperBBSManager INSTANCE = new GatekeeperBBSManager();
    	}
    }

     

  3. 23 minutes ago, L2EternalRage said:

    Im working on FiveM last 2 years i have seen alot of things all my resources are legal with license i have big experience in this if you not respect my opinion do not waiting from me to help in this board ! Do whatever you want but respect your members im doing business here if this forum get closed i will lose money.

    So dramatic. Anyway as i said i'm leaving this for Maxtor. Maybe i'm wrong, he's the one to decide.

  4. OpenIV is a multi-purpose editor and archive manager for PC versions of Grand Theft Auto V, Grand Theft Auto IV/EFLC and Max Payne 3 and you will need it in order to add some addons on your server.

     

     

    D74623 openiv 4

     

    You can download it from here:

    This is the hidden content, please

     

    Credits: GooD-NTS

    • Upvote 1
  5. Hello Cheaters.

    MaxCheaters.com team decided to create a new Board for FiveM since it's a very active game.

    On these sections you can find and/or share server files, cars, clothes, etc and make or find guides for FiveM.

     

    The new categories added:

    FiveM Shares

    1. ESX Framework
    2. VRP Framework
    1. ESX Scripts
    2. VRP Scripts

    FiveM Guides

     FiveM Development Help 

     

    And there are more new things to come. Stay tuned!

    • Thanks 1
  6. 4 hours ago, L2timeless said:

    Everybody got an .com domain. Just because you advised me, I will buy .fu domain.

     

    It's just that it looks very unprofessional and making people think that if you cannot invest 5$ for a proper domain you would probably won't spend money on a good project base and a good machine to build it.

    • Like 1
  7. 11 minutes ago, Hann1bal said:

    Πιστεύω πως ναι, αλλά μετά το compile δεν μου είναι σε φάκελο "workspace" όπως το βίντεο. Ο φάκελος όμως που πήρα είναι ο directory φάκελος που δείχνει στο eclipse.

    To workspace einai apla to workspace pou vazeis esi den exei na kanei me ta sources, mporeis na exeis allou ta sources kai allou to workspace, to thema einai na pareis to build apo ton swsto fakelo sta compiled files.

×
×
  • Create New...