Jump to content
  • 0

Community board - blacksmith, dye manager, werehouse


sylwuu

Question

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...