sylwuu Posted December 22, 2020 Posted December 22, 2020 (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 December 22, 2020 by sylwuu
0 -Invoke Posted December 22, 2020 Posted December 22, 2020 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; } 1
0 sylwuu Posted December 22, 2020 Author Posted December 22, 2020 I've tested it on dye and it works Thank you very much
0 -Invoke Posted December 22, 2020 Posted December 22, 2020 Just now, sylwuu said: I've tested it on dye and it works Thank you very much you are welcome
Question
sylwuu
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 sylwuu3 answers to this question
Recommended Posts