Jump to content

ZaNteR

Members
  • Posts

    1,031
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by ZaNteR

  1. I adopted it for latest L2J BETA 6253 and 9998 but when i use it nothing happens, i dont even get console errors.

    package custom.DeLevelManager;
    import com.l2jserver.gameserver.cache.HtmCache;
    import com.l2jserver.gameserver.datatables.ItemTable;
    import com.l2jserver.gameserver.model.skills.L2Skill;
    import com.l2jserver.gameserver.model.actor.L2Npc;
    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
    import com.l2jserver.gameserver.model.quest.Quest;
    import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo;
    import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
    import com.l2jserver.gameserver.network.serverpackets.UserInfo;
    
    /**
     * @author `Heroin
     * Made For Maxcheaters.com
     */
    public class DeLevelManager extends Quest
    {
    	private static final int npcid = 36650; // npc id
    	private static final int MinLevel = 10; // Minimum Level, (e.g if you set 10, players wont be able to be level 9).
    	private static final int ItemConsumeId = 57; // Item Consume id
    	private int levels ; // Item Consume id
    	private static final int ItemConsumeNumEveryLevel = 100; // Item ItemConsumeNumEveryLevel
    	private static String htm = "data/scripts/custom/DeLevelManager/1.htm"; //html location
    	private static String ItemName = ItemTable.getInstance().createDummyItem(ItemConsumeId).getItemName();
    	
    	public DeLevelManager(int questId, String name, String descr)
    	{
    		super(questId, name, descr);
    		addFirstTalkId(npcid);
    		addTalkId(npcid);
    		addStartNpc(npcid);
    	}
    	
    	@Override
    	public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
    	{
    		if (event.startsWith("dlvl"))
    		{
    			Dlvl(event, npc, player, event);
    		}
    
    		return "";
    	}
    	
    	private void Dlvl(String event, L2Npc npc, L2PcInstance player, String command)
    	{
    		
    		try
    		{
    			String val = command.substring(5);
    			int pointer = Integer.parseInt(val);
    			int k = player.getLevel();
    			levels = k - pointer;
    			if (player.getInventory().getItemByItemId(ItemConsumeId) == null)
    			{
    				player.sendMessage("You don't have enough items!");
    				return;
    			}
    			if (val == null)
    			{
    				player.sendMessage("Something went wrong!");
    				return;
    			}
    			if (pointer < 10)
    			{
    				player.sendMessage("Incorrect Level Number!");
    				return;
    			}
    			if (pointer < MinLevel)
    			{
    				player.sendMessage("Incorrect Level Number!");
    				return;
    			}
    			if (player.getLevel() <= pointer)
    			{
    				player.sendMessage("Your level is already lower.");
    				return;
    			}
    			if (player.getInventory().getItemByItemId(ItemConsumeId).getCount() < ItemConsumeNumEveryLevel*levels)
    			{
    				
    				player.sendMessage("You don't have enough items!");
    				return;
    			}
    			if (player.getInventory().getItemByItemId(ItemConsumeId).getCount() >= ItemConsumeNumEveryLevel)
    			{
    				k = player.getLevel();
    				final byte lvl = Byte.parseByte(pointer + "");	
    				player.getStat().setLevel(lvl);
    				player.sendMessage("Congratulations! You are now "+pointer+" level.");
    				for(L2Skill sk : player.getAllSkills())
    				{
    					player.removeSkill(sk);
    				}
    				player.broadcastStatusUpdate();
    				player.broadcastUserInfo();
    				player.sendPacket(new UserInfo(player));
    				player.sendPacket(new ExBrExtraUserInfo(player));
    				player.giveAvailableAutoGetSkills();
    				player.giveAvailableSkills(true, true);
    				player.sendSkillList();
    				levels = k - pointer;
    				player.destroyItemByItemId("DlvlManager", ItemConsumeId, ItemConsumeNumEveryLevel*levels, player, true);
    			}
    		}
    		catch (Exception e)
    		{
    			player.sendMessage("Something went wrong try again.");
    		}
    	}
    	
    	
    	
    	@Override
    	public String onFirstTalk(L2Npc npc, L2PcInstance player)
    	{
    		final int npcId = npc.getId();
    		if (player.getQuestState(getName()) == null)
    		{
    			newQuestState(player);
    		}
    		if (npcId == npcid)
    		{
    			String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htm);
    			html = html.replaceAll("%player%", player.getName());
    			html = html.replaceAll("%itemname%", ItemName);
    			html = html.replaceAll("%price%", ""+ItemConsumeNumEveryLevel+"");
    			
    			NpcHtmlMessage npcHtml = new NpcHtmlMessage(0);
    			npcHtml.setHtml(html);
    			player.sendPacket(npcHtml);
    		}
    		return "";
    	}
    	
    	public static void main(final String[] args)
    	{
    		new DeLevelManager(-1, DeLevelManager.class.getSimpleName(), "custom");
    		System.out.println("De Level Manager by `Heroin has been loaded successfully!");
    	}
    }
    
  2. I dont really know anymore, i feel nostalgic about the past. The first server i played seriously was x35 C3 (The Game), i would like something like that. However now i dont have the time or the patience for such low rates. The newer updates added a lot more to work for thus requiring additional time to invest.

     

    On the other hand the high rate servers offer an unbalanced but fast gameplay wich i enjoy more right now. But high rates have usually bad communities (QQers, Smartasses etc.)

     

    I guess what i would like now its a high rate server where i get top items fast but to have things to do after my char is full, maybe an achievements thing that doesnt involve items. Maybe i should develop such a server. :D

  3. Diladi kata tin logiki sou epeidi den m aresoun ta revithia eimai revithofovikos?

    Ase to ti lew egw, egw exw tin diki mou apopsi, genika ama peis oti se enoxlei kati to opoio exei na kanei me lathrometanastes i metanastes sou vazoun tin tampela tou ratsisti aytomata.

    Den milisa gia xrisi augi, ama diavaseis to reply mou ayto to politiko sistima pou exoume den me antiprosopevei pleon.

  4. Prosopika exw arxisei na xanw elpida gia ayton ton topo kai tous anthrwpous tou. Exoume ftasei se parakmi san koinwnia genika.

    Ama peis oti eisai patriotis sou vazoun tin tampela fasistas i toulaxiston etsi exei perasei.

    Ama peis oti den sou aresei i omofilofilia eisai ratsistis kai homofovikos. (as erthoun oi lougres na mou klasoun poy tha tous fovithw kiolas lol)
    No offence o kathenas borei na kanei oti goustarei sto krevati tou arkei na min me enoxlisei.

    Ama peis oti den antexeis tous vrwmiarides lathrometanastes pou apo tote pou irthan i egklimatikotia exei ftasei sta ipsi eisai ratsistis. Oi perisoteroi den dexontai oute na prosarmostoun stin koinonia mas, en antithesi theloun emeis na prosarmostoume ston diko tous tropo zwis.

    O thesmos ethnos, oikogeneia kai thriskeia den simainoun kai polla pleon.

    Oi manades mas, kai oi giagiades mas, vlepoun oli mera tourkika san xaivania.

    O stratos mas einai 8 mines aggaries, na filas adeia ktiria kai opla sapia pou den doulevoun. Min ksexasw oti ama mas kanoun oi tourkoi epithesi egw proswpika tha tous epitethw me tin gwnia kai ton fakelo tou krevatiou mou.

    Olo to politiko sistima einai GTPK. Kaneis den aksizei kai ama iparxei kapoios pou aksizei pragmatika den tha borei na kanei tipota giati the prepei na parei adeia apo anothen. Oti kai na psifisetai ta idia skata kai xeirotera tha eimaste.

    Sta epomena 20-50 xronia (kai polla lew) tha exoume ginei xwra tis mesis anatolis/tritou kosmou etsi opos pame.

    Aytoi eimaste kata tin gnwmi mou.
     

  5. I believe there have been some bad practises from the side of server owners/developers. For example they give in on players complaints and requests too easily resulting on various trends and unrealistic expectasions to form.

     

    For example here are some l2 cliches:

    If a server doesnt have a scheme buffer it sux

    If a server doesnt have pop up class change it sux

    If a server doesnt have vote reward it sux

    If a server doesnt have an event engine it sux

    If a server has easy farming it gets boring fast and it sux

    If a server has hard farming is boring and it sux

    If a server has medium farming it sux because its not easy

    If a server doesnt have 1h+ buffs it sux

    If a h5 server doesnt return cancel buffs after some seconds it sux

    If you try something original (like changing aspects of gameplay) it sux

    If a server doesnt have a premium website but has dedicated server it sux (I remember old l2zeus had a invision free forum, try doing that now :troll: )

     

    Thats just from the top of my head im sure there are more.

×
×
  • Create New...