Jump to content
  • 0

Community board - blacksmith, dye manager, werehouse


Question

Posted (edited)

Hello,

I'm curently working on community board with stuff like from top mid rate servers.

Buffer, Gm Shop (except sell option) and Gatekeeper weren't issue but i stuck at services like blacksmith, dye manager and warehouse.


I tryied to bypass command from exisiting npcs like for augmentation:
"bypass -h npc_%objectId%_Augment 1"


but after button click nothing happends.

Maybe someone more experienced could direct me on proper path how to handle this 🙂

 

Edit: I'm using latest l2jserver distribution

Edited by sylwuu

3 answers to this question

Recommended Posts

  • 0
Posted

The above things u mentioned such as wh, blacksmith and dyes are using packets, and since community board is not an npc u cant use npc commands.

 

You need to send packets, for example in order to press add dye lets say,  u need to create a command in community board handler and to register it also. You can create a new or add inside an existing CB file in handlers.

 

I am gonna give u a hand here as an example. I hope i helped. 

 

Register the commands: 

	private static final String[] COMMANDS =
	{
		"_bbsaug",
		"_bbsdisaug",
		"_bbsdraw",
		"_bbsundraw",
	};

 

Examples: 

	@Override
	public boolean parseCommunityBoardCommand(String command, PlayerInstance player)
	{
		if (command.equals("_bbsaug"))
		{
			player.sendPacket(ExShowVariationMakeWindow.STATIC_PACKET);
			player.sendPacket(SystemMessageId.SELECT_THE_ITEM_TO_BE_AUGMENTED);
			player.cancelActiveTrade();
		}
		else if (command.equals("_bbsdisaug"))
		{
			player.sendPacket(ExShowVariationCancelWindow.STATIC_PACKET);
			player.sendPacket(SystemMessageId.SELECT_THE_ITEM_FROM_WHICH_YOU_WISH_TO_REMOVE_AUGMENTATION);
			player.cancelActiveTrade();
		}
		else if (command.equals("_bbsdraw"))
		{
			player.sendPacket(new HennaEquipList(player));
		}
		else if (command.equals("_bbsundraw"))
		{
			player.sendPacket(new HennaRemoveList(player));
		}
	}
	
	@Override
	public String[] getCommunityBoardCommands()
	{
		return COMMANDS;
	}

 

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


  • Posts

    • Γεια σε ολους, προσπαθω εδω και 2 μερες να κανω αυτο το πραγμα να λειτουργει. το καταφερα για ενα διαστημα 5 ωρων. αλλα φαινεται οτι το discord μου κανει block to dll. ή κατι αλλο που δεν μπορω να ειμαι σιγουρος για το τι φταιει... αν καποιος γνωριζει κατι ας στειλει ενα pm να το δουμε μαζι.  *το source το εφιαξα εγω. https://youtu.be/kMvrbo9VBZc  ενα βιντεο που δειχνει πως δουλευε πριν σταματησει να δουλευει...   
    • thank you, please move to the desired category
    • wrong section, you need move this post to https://maxcheaters.com/forum/72-marketplace-l2packs-files/
    • Unlock Unlimited Access with GoProxy's Residential Proxies!   Experience seamless, secure, and unrestricted connectivity worldwide with GoProxy's Unlimited Residential Proxies. Our service offers access to a global network of rotating residential IPs, ensuring top performance for your large-scale data collection, streaming, and more.     ✔️Unlimited Traffic & IPs: Enjoy unrestricted access with our rotating residential proxies, delivering high performance through a vast global IP pool. ✔️High Success Rate: Achieve a 99.96% success rate with a rapid 0.6-second response time, ensuring efficient and reliable operations. ✔️Flexible Sessions: Customize IP rotation to fit your project needs, with options for automatic rotation and sticky sessions lasting up to 60 minutes. ✔️Global Coverage: Access IPs from over 120 countries, making it ideal for businesses requiring high bandwidth without region-specific constraints.     All plans include unlimited traffic and IPs, unlimited concurrent requests, and access to real residential IP addresses. Elevate your online operations with GoProxy's Unlimited Residential Proxies—your smart choice for large-scale projects.   👉 Learn more and get started today: GoProxy Unlimited Proxies
  • Topics

×
×
  • Create New...