Jump to content

[SHARE] Java NPC Buffer


Recommended Posts

The NPC.sql is correct; if I change it to a different class, like L2NPC, it'll spawn, but it just becomes a regular NPC, not the buffer.

 

And yeah, those lines are there.

 

Sorry for troubling you all with this problem... =/

Link to comment
Share on other sites

yep

Thanks for your answer, I download it...

Iread 3 times all the Java files and I cant find where it heals HP because I want to remove it)

Maybe I am Blind?

where it is?

Link to comment
Share on other sites

That's what i did and I can say that you have donwa great job! But Just look::

if (currentCommand.startsWith("givebuffs"))
	{
		String targettype = st.nextToken();
		String scheme_key = st.nextToken();
		int cost = Integer.parseInt(st.nextToken());

		if (cost == 0 || cost <= player.getInventory().getAdena()) 
		{
			L2Character target = player;
			if (targettype.equalsIgnoreCase("pet"))
				target = player.getPet();

			else if (target != null)
			{			
				for (L2Skill sk : CharSchemesTable.getInstance().getScheme(player.getObjectId(), scheme_key))
				{
					sk.getEffects(this, target);
				}	
				player.reduceAdena("NPC Buffer", cost, this, true);
			}
			else
			{
				player.sendMessage("Incorrect Pet");
				// go to main menu
				NpcHtmlMessage html = new NpcHtmlMessage(1);
				html.setFile(PARENT_DIR+"menu.htm");
				sendHtmlMessage(player, html);
			}				
		}
		else
		{
			player.sendMessage("Not enough adena");
			showGiveBuffsWindow(player, targettype);
		}




	}

 

Link to comment
Share on other sites

  • 3 weeks later...

can i ask something ? is there a way to make this buffer without the schemes ? just a window with htm buttons for buffs and non-closed window while clicking each buff.. ? i mean a core buffer without schemes ^^

 

thanks :)

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

no work for me :(

and i dont know then what do with the .java files this i cannot apply patch it write me error. at the begin

 

 

 

check it out 2gshm39.jpg

 

insert it by hand rofl...

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.



  • Posts

    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
    • This is dedication! 2 years working on a problem. Congratulations!
    • You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.   It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.   If you got a solution, I would happy to integrate it.   You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.   https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads  
  • Topics

×
×
  • Create New...