Jump to content

Recommended Posts

Posted

Dragonhunter, as you see some people don't like your program (dmitri501 1 of them), you should upload the first release, for them and for the other people to test it, and then when you finish it, just update your topic with the finished one.

Posted

DragonHunter, for sake of God - I've already told you, unlock the topic, change the logs & news and lock it again to avoid this massive nonsense spamming. When the tool is released, the topic will be opened forever for discussion (and probably will be sticked imo).

 

LOCKED

  • 1 month later...
Posted

31 August - 2009:

Injection - Now we can see what packets we are receiving/sending

Injection - Fixed some errors from Lineage2

Dragon Packet Hacker - The Injector is fixed

Dragon Packet Hacker - Works now at all the L2J Servers

Dragon Packet Hacker - Can now crack the L2FIX Protections

Posted

A great improvement for the L2JDragon Packet Hacker

 

Packet Log from the L2JDragon Packet Hacker

(Received Packet, Lenght=1) 02 
(Received Packet, Lenght=1) b8 
(Received Packet, Lenght=2) ba 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) ba 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) ba 00 
(Received Packet, Lenght=1) 02 
(Received Packet, Lenght=32) 00 77 c9 07 2f 21 c6 00 00 ba 99 44 70 0b 11 fd 98 de be 0e dc b6 37 a6 d4 19 ae a3 cd 2f 39 ed 
(Received Packet, Lenght=1) 20 
(Received Packet, Lenght=2) 22 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 22 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 22 00 
(Received Packet, Lenght=1) 02 
(Received Packet, Lenght=56) 0b 77 c9 07 2f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 25 d7 6a c1 f5 0d 4e 94 19 dd 43 f2 c0 1b f6 86 8d e8 f8 a1 ce 25 f0 ed d2 4e b1 80 a9 36 a3 96 49 7e 
(Received Packet, Lenght=1) 38 
(Received Packet, Lenght=2) 3a 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 3a 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 3a 00 
(Received Packet, Lenght=1) 02 
(Received Packet, Lenght=32) 03 b7 76 83 33 9c a0 dc 9c 00 00 00 00 00 00 00 00 ea 03 00 00 00 00 00 00 00 00 00 00 00 00 00 
(Received Packet, Lenght=1) 20 
(Received Packet, Lenght=2) 22 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 22 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 22 00 
(Received Packet, Lenght=1) 02 
(Received Packet, Lenght=16) 04 01 01 01 4d a1 de cc 61 1e 00 00 00 01 00 00 
(Received Packet, Lenght=1) 10 
(Received Packet, Lenght=2) 12 00 
(Received Packet, Lenght=1) ff 
(Received Packet, Lenght=2) 12 00 
(Received Packet, Lenght=1) ff 

Posted
  On 8/31/2009 at 9:17 PM, Leeroy said:

We are still waiting btw..

As you can see it Logs every packet also login packets and game-server packets ;)

Posted

4 September - 2009:

Injection - Packet Filter against getting a log of 100mb and for getting big lenghts of packets

Injection - Does now also receive the sended packets by the client

 

Packet Log from the L2JDragon Packet Hacker

(Received Packet,len=2) 00 00 
(Received Packet,len=1) 02 
(Received Packet,len=184) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
(Received Packet,len=1) b8 
(Received Packet,len=2) ba 00 
(Received Packet,len=1) ff 
(Received Packet,len=2) ba 00 
(Received Packet,len=1) ff 
(Sended Packet,len=42) 2a 00 8c 52 41 80 df fa 91 34 63 b7 3f 40 45 99 54 b0 63 b7 3f 40 45 99 54 b0 22 6f 79 a5 fc a6 35 82 63 b7 3f 40 45 99 54 b0 
(Received Packet,len=2) ba 00 
(Received Packet,len=1) 02 
(Received Packet,len=32) 00 60 81 06 44 21 c6 00 00 1a b9 bc 3d e4 e3 f0 ad 4a bd d6 bb 2e 53 4f 8a 8a 8f 86 ca 7d a6 ff 
(Received Packet,len=1) 20 
(Received Packet,len=2) 22 00 
(Received Packet,len=1) ff 
(Received Packet,len=2) 22 00 
(Received Packet,len=1) ff 
(Sended Packet,len=178) b2 00 99 66 b8 56 a6 0e 48 25 b5 70 75 92 c0 aa 2d 4a 9b 65 6d 10 d3 0c 0d f9 75 d4 89 97 fb a6 5a 54 a2 25 04 64 56 ce 04 9c 45 43 cc d9 4b 21 a7 b3 36 3d a5 4a d8 f4 bc 17 5b dd da a5 4d 84 53 d7 ba 89 bd 89 1d 87 d7 37 4a 99 f3 74 d8 53 09 d0 df 74 b8 fa ca d7 e0 12 12 6a cc 7b 7d 33 85 6e 43 9c 7a 6c 1a 40 a6 eb 78 9f 89 22 96 ac cc e7 90 be 41 33 21 92 cf 57 b3 39 69 ac 96 28 75 9b 8f f3 3f c5 4e 20 6d 80 63 b7 3f 40 45 99 54 b0 80 71 b7 3e de 11 b2 ce 63 b7 3f 40 45 99 54 b0 28 35 18 38 28 5f 13 2f 63 b7 3f 40 45 99 54 b0 
(Received Packet,len=2) 22 00 
(Received Packet,len=1) 02 
(Received Packet,len=32) 0b 60 81 06 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 34 66 c3 ff 80 b0 e1 b0 d4 57 24 
(Received Packet,len=1) 20 
(Received Packet,len=2) 22 00 
(Received Packet,len=1) ff 
(Received Packet,len=2) 22 00 
(Received Packet,len=1) ff 
(Sended Packet,len=34) 22 00 5f 59 b8 c1 35 59 40 19 55 64 b0 46 1c ff cd 18 b1 64 18 3a d8 a3 7b 40 63 b7 3f 40 45 99 54 b0 
(Received Packet,len=2) 22 00 
(Received Packet,len=1) 02 
(Received Packet,len=16) 04 01 01 01 56 37 7d b3 61 1e 00 00 00 01 20 00 
(Received Packet,len=1) 10 
(Received Packet,len=2) 12 00 
(Received Packet,len=1) ff 
(Received Packet,len=2) 12 00 
(Received Packet,len=1) ff 
(Sended Packet,len=267) 0b 01 00 ea 02 00 00 09 07 54 56 03 09 0b 01 07 02 54 54 56 07 00 02 55 56 00 51 00 53 57 04 07 55 08 54 01 07 01 53 00 56 55 56 01 06 05 04 51 03 08 51 08 51 56 04 54 06 55 08 02 09 51 56 01 53 06 55 04 53 00 56 56 53 01 09 02 09 01 51 54 51 09 55 56 09 03 04 07 05 55 04 06 55 04 06 09 04 51 01 08 08 06 05 52 06 04 01 07 54 03 06 52 55 06 55 55 51 01 02 04 54 03 55 54 01 57 51 55 05 52 05 54 07 51 51 55 07 02 53 53 00 52 05 52 07 01 54 00 03 05 05 08 06 05 05 06 03 00 0d 08 01 07 09 03 51 03 07 53 09 51 06 07 54 0a 50 56 02 52 04 05 55 51 02 53 00 08 54 04 52 56 06 02 09 00 08 03 53 56 01 05 00 55 06 08 56 04 0d 06 07 52 06 07 04 0a 06 01 04 54 04 00 05 02 04 54 00 09 52 53 05 04 01 04 05 05 01 52 51 52 0d 06 51 08 09 54 53 00 0d 01 02 03 54 53 01 05 03 08 56 54 07 02 54 0b 06 dc 4f 61 4f 
(Sended Packet,len=49) 31 00 8e b1 0e ec 32 2f dc 84 4c 04 97 f8 59 5d 6c 8e 08 3d 82 66 b8 a1 52 1f d7 f0 63 7a 99 3d 3c 82 b6 be 30 a0 7e 02 f1 ce 06 21 b2 b2 13 7f 4e 
(Sended Packet,len=21) 15 00 8b d0 6f ff 21 5d ae 91 66 41 d2 d3 72 1e 2f b8 3e 65 da 
(Sended Packet,len=5) 05 00 56 05 ba 
(Sended Packet,len=107) 6b 00 85 de 61 f1 2f 53 a0 9f 92 ba 29 28 89 e5 d4 43 c5 57 54 36 4f 55 fc c8 5d 43 75 c9 e1 60 2e 5d 0c 3c ca b8 f9 6a ef 3b f8 73 1a ef f1 91 c4 f0 c2 0b 2d f8 5a 63 0a c6 f0 ec e6 ee 0b 5b c3 29 a1 c8 6b 1b e9 6f d4 ed 3e 27 ce 3e 4b b5 f0 ad d0 a2 1d 8d 53 2f dc e3 ee c6 55 54 f5 99 a8 3f b9 e2 5d cd 13 6f 9c a3 ae 
(Sended Packet,len=3) 03 00 1b 
(Sended Packet,len=31) 1f 00 87 ad aa c4 e5 ad e9 d5 a2 df bd 43 1d 50 d9 b0 c9 95 9d 0e d0 c2 c0 00 88 a1 32 33 92 
(Sended Packet,len=31) 1f 00 87 ad aa c4 e5 ad e9 d5 41 3c 5e a0 fe b3 3a 53 2a 76 7e ed 33 21 23 e3 88 a1 32 33 92 
(Sended Packet,len=23) 17 00 ce aa ad c3 e2 89 cd f1 40 06 64 9a c4 48 6d fa 7c 27 98 08 d6 
(Sended Packet,len=31) 1f 00 87 2e 29 47 66 90 d4 e8 2e 53 31 cf 91 b1 38 51 28 6d 65 f6 28 3a 38 f8 c1 e8 7b 7a db 
(Sended Packet,len=23) 17 00 ce 50 57 39 18 08 4c 70 93 d5 b7 49 17 a2 84 13 95 ce 71 e1 3f 
(Sended Packet,len=23) 17 00 ce 7f 78 16 37 cf 8b b7 4f 09 6b 95 cb 7e 58 cf 49 12 ad 3d e3 
(Sended Packet,len=23) 17 00 ce 64 63 0d 2c d8 9c a0 ad ea 88 76 28 9e b8 2f a9 f2 4d dd 03 
(Sended Packet,len=23) 17 00 ce 64 63 0d 2c d8 9c a0 82 c5 a7 59 07 b1 97 00 86 dd 62 f2 2c 
(Sended Packet,len=31) 1f 00 87 a1 a4 ca eb 36 72 4e 79 37 55 ab f5 68 e1 88 f1 22 2a b9 67 75 77 b7 7f 57 c4 c5 64 
(Sended Packet,len=23) 17 00 ce e1 e7 89 a8 44 00 3c 68 2f 4d b3 ed fa c9 5e d8 83 3c ac 72 
(Sended Packet,len=31) 1f 00 87 91 97 f9 d8 0b 4f 73 1a 66 04 fa a4 42 ca a3 da 13 1b 88 56 44 46 86 10 38 ab aa 0b 
(Sended Packet,len=23) 17 00 ce c0 c6 a8 89 59 1d 21 a7 e0 82 7c 22 79 3b ac 2a 71 ce 5e 80 
(Sended Packet,len=31) 1f 00 87 fc fa 94 b5 1b 5f 63 f8 84 e6 18 46 7f f7 9e e7 10 18 8b 55 47 45 85 e1 c9 5a 5b fa 
(Sended Packet,len=31) 1f 00 87 cf c9 a7 86 11 55 69 d1 ad cf 31 6f 43 cb a2 db 3b 33 a0 7e 6c 6e ae e9 c1 52 53 f2 
(Sended Packet,len=23) 17 00 ce b0 b6 d8 f9 53 17 2b fe b9 db 25 7b d0 bd 2a ac f7 48 d8 06 
(Sended Packet,len=23) 17 00 ce 8d 8b e5 c4 5d 19 25 cf 88 ea 14 4a ef 82 15 93 c8 77 e7 39 
(Sended Packet,len=31) 1f 00 87 cc ca a4 85 1c 58 64 9b e7 85 7b 25 51 d9 b0 c9 77 7f ec 32 20 22 e2 e2 ca 59 58 f9 
(Sended Packet,len=23) 17 00 ce 8d 8b e5 c4 5d 19 25 39 7d 1f e1 bf 1a 77 e0 66 3d 82 12 cc 
(Sended Packet,len=7) 07 00 e0 f8 dc 4d 83 
(Sended Packet,len=7) 07 00 e0 14 b9 2b e5 
(Sended Packet,len=31) 1f 00 87 c2 c5 ab 8a 99 dd e1 da a5 c7 39 67 13 9b f2 8b 35 3d ae 70 62 60 a0 64 4f dc dd 7c 
(Sended Packet,len=31) 1f 00 87 98 9f f1 d0 ae ea d6 8e f1 93 6d 33 bf 36 5f 26 b7 bf 2c f2 e0 e2 22 85 ae 3d 3c 9d 
(Sended Packet,len=23) 17 00 ce 1b 1c 72 53 46 02 3e 4b 0f 6d 93 cd 1b 8c 1b 9d c6 79 e9 37 
(Sended Packet,len=31) 1f 00 87 40 48 26 07 1d 58 64 ee 91 f3 0d 53 66 ef 86 ff ba b2 21 ff ed ef 2f 5a 71 e2 e3 42 
(Sended Packet,len=23) 17 00 ce dd da b4 95 ef ab 97 30 74 16 e8 b6 60 f7 60 e6 bd 02 92 4c 
(Sended Packet,len=23) 17 00 ce 83 84 ea cb 60 25 19 a5 e1 83 7d 23 fc 53 c4 42 19 a6 36 e8 
(Sended Packet,len=31) 1f 00 87 fa f2 9c bd 7b 3d 01 d0 92 f0 0e 50 ca 4c 25 5c bd b4 27 f9 eb e9 29 07 2c bf be 1f 
(Sended Packet,len=23) 17 00 ce 15 1d 73 52 07 42 7e 90 d4 b6 48 16 f4 61 f6 70 2b 94 04 da 
(Sended Packet,len=31) 1f 00 87 90 98 f6 d7 f4 b1 8d 8e f0 92 6c 32 2d ab c2 bb fa f3 60 be ac ae 6e 92 b8 2b 2a 8b 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 e1 a4 c6 38 66 02 7b ec 6a 31 8e 1e c0 
(Sended Packet,len=20) 14 00 82 69 9a 0b c5 f7 b3 72 b8 cb ee ec 4d 4f 8f e7 9e c5 
(Sended Packet,len=20) 14 00 82 69 9a 0b c5 f7 b3 72 ca b9 9c 9e 3f 3d fd 95 ec b7 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 98 dd bf 41 1f 7b 02 95 13 48 f7 67 b9 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 af ea 88 76 28 4c 35 a2 24 7f c0 50 8e 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 42 07 65 9b c5 a1 d8 4f c9 92 2d bd 63 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 59 1c 7e 80 de ba c3 54 d2 89 36 a6 78 
(Sended Packet,len=15) 0f 00 be 89 36 c9 17 07 f4 cb 66 4d de df 7e 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 7b 3e 5c a2 fc 98 e1 76 f0 ab 14 84 5a 
(Sended Packet,len=20) 14 00 8c 67 94 05 cb f9 bd 7c 4c 3f 1a 18 b9 bb 7b 13 6a 31 
(Sended Packet,len=20) 14 00 8c 67 94 05 cb f9 bd 7c 62 11 34 36 97 95 55 3d 44 1f 
(Sended Packet,len=20) 14 00 8c 67 94 05 cb f9 bd 7c 70 03 26 24 85 87 47 2f 56 0d 
(Sended Packet,len=20) 14 00 8c 67 94 05 cb f9 bd 7c 86 f2 d7 d5 74 76 b6 de a7 fc 
(Sended Packet,len=23) 17 00 ce db d3 bd 9c b8 fd c1 d6 94 f6 08 56 32 4b dc 5a 01 be 2e f0 
(Sended Packet,len=31) 1f 00 87 8e 86 e8 c9 db 9e a2 8e f7 95 6b 35 17 91 f8 81 82 8b 18 c6 d4 d6 16 c5 e8 7b 7a db 
(Sended Packet,len=23) 17 00 ce c4 cc a2 83 97 d2 ee a7 e5 87 79 27 73 75 e2 64 3f 80 10 ce 
(Sended Packet,len=20) 14 00 82 69 9a 0b c5 e8 ac 6d cc 88 ad af 0e 0c cc a4 dd 86 
(Sended Packet,len=23) 17 00 ce c6 ce a0 81 93 d6 ea 9a d8 ba 44 1a 02 01 96 10 4b f4 64 ba 
(Sended Packet,len=20) 14 00 82 69 9a 0b c5 ea ae 6f 15 57 72 70 d1 d3 13 7b 02 59 
(Sended Packet,len=23) 17 00 ce c6 ce a0 81 93 d6 ea 7d 3f 5d a3 fd e5 e6 71 f7 ac 13 83 5d 
(Sended Packet,len=31) 1f 00 87 59 51 3f 1e e5 a0 9c 30 49 2b d5 8b b4 32 5b 22 17 1e 8d 53 41 43 83 d0 fd 6e 6f ce 
(Sended Packet,len=23) 17 00 ce fd f5 9b ba be fb c7 0e 4c 2e d0 8e b6 95 02 84 df 60 f0 2e 
(Sended Packet,len=23) 17 00 ce ea e2 8c ad 52 17 2b f5 b7 d5 2b 75 4d 6e f9 7f 24 9b 0b d5 
(Sended Packet,len=21) 15 00 be 92 2d c9 17 0d fe e1 12 01 92 ac 0d 61 50 c7 41 1a a5 
(Sended Packet,len=20) 14 00 82 69 9a 0b c5 c6 82 43 ba 14 31 33 92 90 50 38 41 1a 
(Sended Packet,len=20) 14 00 82 69 9a 0b c5 3d 79 b8 5f fd d8 da 7b 79 b9 d1 a8 f3 
(Sended Packet,len=23) 17 00 ce 11 19 77 56 a5 e0 dc f6 b5 d7 29 77 7f 7e e9 6f 34 8b 1b c5 
(Sended Packet,len=31) 1f 00 87 42 4a 24 05 de 9b a7 98 e0 82 7c 22 ca 4c 25 5c 88 81 12 cc de dc 1c dc f0 63 62 c3 
(Sended Packet,len=23) 17 00 ce 0c 04 6a 4b 95 d0 ec b0 f3 91 6f 31 57 7b ec 6a 31 8e 1e c0 
(Sended Packet,len=31) 1f 00 87 f9 fe 90 b1 f7 b1 8d fc 84 e6 18 46 b3 35 5c 25 dc d5 46 98 8a 88 48 c6 ea 79 78 d9 
(Sended Packet,len=23) 17 00 ce 28 20 4e 6f 55 10 2c a2 e1 83 7d 23 61 9f 08 8e d5 6a fa 24 
(Sended Packet,len=23) 17 00 ce 9c 9b f5 d4 2a 6c 50 f3 b0 d2 2c 72 30 ce 59 df 84 3b ab 75 
(Sended Packet,len=23) 17 00 ce b7 b0 de ff c1 87 bb 03 40 22 dc 82 c0 3e a9 2f 74 cb 5b 85 
(Sended Packet,len=31) 1f 00 be 87 38 c7 19 01 f2 b4 79 33 a0 d4 75 78 49 ac 2a 15 aa 1a c4 87 74 4b 86 ab 38 39 98 
(Sended Packet,len=31) 1f 00 87 6c 64 0a 2b 34 73 4f a5 dd bf 41 1f 51 d8 b1 c8 d1 db 48 96 84 86 46 53 7f ec ed 4c 
(Sended Packet,len=23) 17 00 ce 7e 76 18 39 90 d7 eb ec ac ce 30 6e cc 51 c6 40 1b a4 34 ea 
(Sended Packet,len=31) 1f 00 87 d0 d9 b7 96 58 18 24 38 43 21 df 81 04 82 eb 92 1b 10 83 5d 4f 4d 8d 6e 41 d2 d3 72 
(Sended Packet,len=31) 1f 00 87 b0 b9 d7 f6 80 c7 fb c2 b9 db 25 7b 52 d4 bd c4 f7 fc 6f b1 a3 a1 61 a7 88 1b 1a bb 
(Sended Packet,len=23) 17 00 ce d7 df b1 90 8a cd f1 a7 e7 85 7b 25 57 f3 64 e2 b9 06 96 48 
(Sended Packet,len=23) 17 00 ce ef e6 88 a9 da 9d a1 ca 8a e8 16 48 10 b1 26 a0 fb 44 d4 0a 
(Sended Packet,len=23) 17 00 ce e6 ef 81 a0 d0 97 ab 2b 6b 09 f7 a9 f1 50 c7 41 1a a5 35 eb 
(Sended Packet,len=31) 1f 00 87 54 5c 32 13 29 6e 52 c7 bc de 20 7e 61 e6 8f f6 a1 aa 39 e7 f5 f7 37 5d 72 e1 e0 41 
(Sended Packet,len=31) 1f 00 87 77 7f 11 30 3c 7b 47 f5 8e ec 12 4c d4 53 3a 43 3f 34 a7 79 6b 69 a9 e4 cb 58 59 f8 
(Sended Packet,len=23) 17 00 ce b2 ba d4 f5 b8 ff c3 0c 4c 2e d0 8e ac 95 02 84 df 60 f0 2e 
(Sended Packet,len=31) 1f 00 87 4f 47 29 08 91 d6 ea 0e 44 26 d8 86 80 06 6f 16 1c 17 84 5a 48 4a 8a 91 be 2d 2c 8d 
(Sended Packet,len=31) 1f 00 87 80 88 e6 c7 58 1f 23 22 65 07 f9 a7 4b cd a4 dd 05 0e 9d 43 4a 48 88 76 58 cb ca 6b 
(Sended Packet,len=23) 17 00 ce 06 0e 60 41 ed aa 96 88 dc be 40 1e e5 ec 7b fd a6 19 89 57 
(Sended Packet,len=23) 17 00 ce f6 fe 90 b1 2d 6a 56 65 cb a9 57 09 3b 78 ef 69 32 8d 1d c3 
(Sended Packet,len=31) 1f 00 87 52 5a 34 15 28 6e 52 1a 5d 3f c1 9f 90 16 7f 06 bd b6 25 fb 06 04 c4 73 5d ce cf 6e 
(Sended Packet,len=23) 17 00 ce 1e 16 78 59 1c 5a 66 03 ad cf 31 6f d5 ca 5d db 80 3f af 71 
(Sended Packet,len=31) 1f 00 87 80 88 e6 c7 17 51 6d 17 50 32 cc 92 75 f3 9a e3 81 8b 18 c6 3b 39 f9 7c 52 c1 c0 61 
(Sended Packet,len=23) 17 00 ce 16 1e 70 51 61 27 1b 8c 22 40 be e0 2a 54 c3 45 1e a1 31 ef 
(Sended Packet,len=23) 17 00 ce ca c2 ac 8d 54 12 2e 82 2c 4e b0 ee 24 5a cd 4b 10 af 3f e1 
(Sended Packet,len=31) 1f 00 87 61 69 07 26 52 17 2b ea 90 f2 0c 52 61 e7 8e f7 09 03 90 4e b3 b1 71 4f 61 f2 f3 52 
(Sended Packet,len=23) 17 00 ce 06 0e 60 41 e6 a0 9c 42 15 77 89 d7 62 73 e4 62 39 86 16 c8 
(Sended Packet,len=23) 17 00 ce 2d 25 4b 6a 14 51 6d 9e df bd 43 1d aa bb 2c aa f1 4e de 00 
(Sended Packet,len=31) 1f 00 87 2a 22 4c 6d 4c 09 35 3d 58 3a c4 9a 4e c8 a1 d8 81 88 1b c5 d7 d5 15 e2 d3 40 41 e0 
(Sended Packet,len=23) 17 00 ce 61 69 07 26 03 46 7a 5f 01 63 9d c3 d9 cf 58 de 85 3a aa 74 
(Sended Packet,len=5) 05 00 b1 eb 54 
(Sended Packet,len=31) 1f 00 87 2f 26 48 69 96 d3 ef d2 b7 d5 2b 75 ed 6b 02 7b 79 70 e3 3d 2f 2d ed 2f 1e 8d 8c 2d 
(Sended Packet,len=23) 17 00 ce 49 41 2f 0e 2e 6b 57 0d 53 31 cf 91 fd 95 02 84 df 60 f0 2e 
(Sended Packet,len=31) 1f 00 87 24 2f 41 60 9d d8 e4 8b ee 8c 72 2c 89 0f 66 1f 24 2d be 60 72 70 b0 20 11 82 83 22 
(Sended Packet,len=23) 17 00 ce 81 89 e7 c6 d0 95 a9 25 7b 19 e7 b9 9c d3 44 c2 99 26 b6 68 
(Sended Packet,len=31) 1f 00 87 91 81 ef ce 4f 08 34 95 ff 9d 63 3d b2 35 5c 25 12 1b 88 56 44 46 86 d8 e9 7a 7b da 
(Sended Packet,len=23) 17 00 ce d7 de b0 91 bd f8 c4 7a 24 46 b8 e6 25 93 04 82 d9 66 f6 28 
(Sended Packet,len=23) 17 00 ce 98 91 ff de e4 a1 9d 4e 10 72 8c d2 11 a7 30 b6 ed 52 c2 1c 
(Sended Packet,len=23) 17 00 ce 62 69 07 26 4b 0e 32 da 84 e6 18 46 85 33 a4 22 79 c6 56 88 
(Sended Packet,len=23) 17 00 ce f9 f2 9c bd 36 70 4c b1 ef 8d 73 2d ee 58 cf 49 12 ad 3d e3 
(Sended Packet,len=23) 17 00 ce 74 78 16 37 97 d1 ed ff a0 c2 3c 62 a1 17 80 06 5d e2 72 ac 
(Sended Packet,len=23) 17 00 ce c3 cf a1 80 3e 78 44 63 3c 5e a0 fe 3d 8b 1c 9a c1 7e ee 30 
(Sended Packet,len=23) 17 00 ce a1 ac c2 e3 15 53 6f 53 0c 6e 90 ce 12 a4 33 b5 ee 51 c1 1f 
(Sended Packet,len=31) 1f 00 87 4f 5f 31 10 8b cc f0 a1 c5 a7 59 07 5a d9 b0 c9 18 12 81 5f 4d 4f 8f 21 11 82 83 22 
(Sended Packet,len=23) 17 00 ce 04 0a 64 45 5c 1a 26 48 17 75 8b d5 5d e5 72 f4 af 10 80 5e 
(Sended Packet,len=23) 17 00 ce 7e 71 1f 3e 7e 38 04 87 d8 ba 44 1a 92 2a bd 3b 60 df 4f 91 
(Sended Packet,len=23) 17 00 ce d3 dc b2 93 fc ba 86 1e 41 23 dd 83 0a b2 25 a3 f8 47 d7 09 
(Sended Packet,len=23) 17 00 ce 22 32 5c 7d ee a9 95 38 67 05 fb a5 2d 95 02 84 df 60 f0 2e 
(Sended Packet,len=23) 17 00 ce 0e 1e 70 51 c5 82 be 7c 23 41 bf e1 68 d0 47 c1 9a 25 b5 6b 
(Sended Packet,len=31) 1f 00 87 26 37 59 78 ee a9 95 42 2f 4d b3 ed 1a 84 ed 94 27 2c bf 61 73 71 b1 99 a9 3a 3b 9a 
(Sended Packet,len=23) 17 00 ce 14 04 6a 4b de 99 a5 51 0e 6c 92 cc 14 5a cd 4b 10 af 3f e1 
(Sended Packet,len=31) 1f 00 87 a3 b2 dc fd f7 b1 8d 84 ea 88 76 28 79 e7 8e f7 45 4e dd 03 09 0b cb 3d 0e 9d 9c 3d 
(Sended Packet,len=23) 17 00 ce 5b 4a 24 05 4f 09 35 13 57 35 cb 95 ac f9 6e e8 b3 0c 9c 42 
(Sended Packet,len=23) 17 00 ce 10 01 6f 4e 43 05 39 02 46 24 da 84 bc e9 7e f8 a3 1c 8c 52 
(Sended Packet,len=31) 1f 00 87 0c 1d 73 52 ad eb d7 87 e9 8b 75 2b c2 5d 34 4d 67 6d fe 20 2a 28 e8 47 74 e7 e6 47 
(Sended Packet,len=23) 17 00 ce 5c 4d 23 02 ff b9 85 e8 ac ce 30 6e 12 2a bd 3b 60 df 4f 91 
(Sended Packet,len=31) 1f 00 87 77 66 08 29 5d 18 24 a6 c8 aa 54 0a af 30 59 20 fa f0 63 bd b7 b5 75 08 3b a8 a9 08 
(Sended Packet,len=23) 17 00 ce 51 40 2e 0f eb ad 91 0e 4a 28 d6 88 b3 b8 2f a9 f2 4d dd 03 
(Sended Packet,len=20) 14 00 82 9f 58 c8 06 cf 92 53 18 f3 d5 d7 76 6c ac c4 bd e6 
(Sended Packet,len=23) 17 00 ce 38 29 47 66 1a 5f 63 a5 e1 83 7d 23 e7 9e 09 8f d4 6b fb 25 
(Sended Packet,len=20) 14 00 82 9f 58 c8 06 d7 8a 4b 6f 5d 78 7a db c1 01 69 10 4b 
(Sended Packet,len=43) 2b 00 a7 92 2d cd 13 0c ff 9f 72 72 e1 d6 77 23 12 b1 37 5a e5 43 9d d3 20 2b c6 c2 51 0f ae 80 b1 53 d5 f7 48 f8 26 6b 98 a7 4a 
(Sended Packet,len=19) 13 00 99 c3 7c ec 32 4f bc 83 95 a7 34 35 94 f9 c8 5f d9 
(Sended Packet,len=20) 14 00 82 9f 58 c8 06 d7 8a 4b 93 a0 85 87 26 3c fc 94 ed b6 
(Sended Packet,len=43) 2b 00 a7 92 2d cd 13 0c ff 9f a6 a7 34 03 a2 f6 c7 64 e2 8f 30 96 48 06 f5 fe c7 c2 51 0f ae 80 b1 53 d5 f7 48 f8 26 6b 98 a7 9e 
(Sended Packet,len=19) 13 00 99 c3 7c ec 32 4f bc 83 e1 d3 40 41 e0 8d bc 2b ad 
(Sended Packet,len=20) 14 00 82 9f 58 c8 06 d7 8a 4b c7 f4 d1 d3 72 68 a8 c0 b9 e2 
(Sended Packet,len=43) 2b 00 a7 92 2d cd 13 0c ff 9f 1a 1b 88 bf 1e 4a 7b d8 5e 33 8c 2a f4 ba 49 42 c7 c2 51 0f ae 80 b1 53 d5 f7 48 f8 26 6b 98 a7 22 
(Sended Packet,len=19) 13 00 99 c3 7c ec 32 4f bc 83 2d 1f 8c 8d 2c 41 70 e7 61 
(Sended Packet,len=7) 07 00 e0 ac fb 6a a4 
(Sended Packet,len=7) 07 00 e0 d6 9c 0c c2 
(Sended Packet,len=7) 07 00 e0 7a 0f 9e 50 
(Sended Packet,len=31) 1f 00 87 19 08 66 47 f6 b0 8c 42 2c 4e b0 ee 2f b0 d9 a0 fb f2 61 bf b5 b7 77 46 74 e7 e6 47 
(Sended Packet,len=31) 1f 00 87 18 09 67 46 fe b8 84 6f 00 62 9c c2 03 9c f5 8c d7 de 4d 93 99 9b 5b 4f 7d ee ef 4e 
(Sended Packet,len=31) 1f 00 87 11 00 6e 4f b7 f1 cd c5 ad cf 31 6f b8 27 4e 37 8f 85 16 c8 c2 c0 00 f7 c2 51 50 f1 
(Sended Packet,len=31) 1f 00 87 1f 0e 60 41 4d 0b 37 12 7a 18 e6 b8 6a f5 9c e5 69 63 f0 2e 24 26 e6 3c 09 9a 9b 3a 
(Sended Packet,len=31) 1f 00 87 60 71 1f 3e 26 60 5c 1e 76 14 ea b4 18 87 ee 97 09 03 90 4e 44 46 86 3b 0e 9d 9c 3d 
(Sended Packet,len=31) 1f 00 87 60 71 1f 3e 1f 59 65 3a 52 30 ce 90 3d a2 cb b2 59 53 c0 1e 14 16 d6 76 43 d0 d1 70 
(Sended Packet,len=31) 1f 00 87 60 71 1f 3e 1e 58 64 18 70 12 ec b2 1f 80 e9 90 66 6c ff 21 2b 29 e9 6a 5f cc cd 6c 
(Sended Packet,len=23) 17 00 ce 54 45 2b 0a db 9d a1 38 7a 18 e6 b8 64 e8 7f f9 a2 1d 8d 53 
(Sended Packet,len=23) 17 00 ce 28 39 57 76 69 2f 13 bd ff 9d 63 3d af 23 b4 32 69 d6 46 98 

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



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • Hello everyone, I would like some help adapting this file for a custom community board l2jFrozen:   package com.l2jfrozen.gameserver.communitybbs; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Map; import java.util.StringTokenizer; import javolution.util.FastMap; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.cache.HtmCache; import com.l2jfrozen.gameserver.communitybbs.Manager.BaseBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.ClanBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.PostBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.RegionBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.TeleBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.TopicBBSManager; import com.l2jfrozen.gameserver.communitybbs.Manager.shopBBSManager; import com.l2jfrozen.gameserver.handler.IBBSHandler; import com.l2jfrozen.gameserver.model.L2Clan; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.multisell.L2Multisell; import com.l2jfrozen.gameserver.network.L2GameClient; import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.ShowBoard; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; public class CommunityBoard { private static CommunityBoard _instance; private final Map<String, IBBSHandler> _handlers; protected final SimpleDateFormat fmt = new SimpleDateFormat("H:mm."); public CommunityBoard() { _handlers = new FastMap<>(); // null; } public boolean checkPlayerConditions(L2PcInstance activeChar, String command) { if (activeChar.isInOlympiadMode()) { activeChar.sendMessage("CommunityBoard use is prohibited at the Olympiad"); return false; } if (activeChar.isFlying() || activeChar.isMounted()) { activeChar.sendMessage("CommunityBoard use is prohibited at while flying or mounted!"); return false; } if (activeChar.inObserverMode()) { activeChar.sendMessage("CommunityBoard use is prohibited in ObserveMode!"); return false; } if (activeChar.isAlikeDead() || activeChar.isDead()) { activeChar.sendMessage("CommunityBoard use is prohibited While Dead"); return false; } if (activeChar.isInCombat()) { activeChar.sendMessage("CommunityBoard use is prohibited in Combat!"); return false; } if (activeChar.isCastingNow()) { activeChar.sendMessage("CommunityBoard use is prohibited while Casting!"); return false; } if (activeChar.isAttackingNow()) { activeChar.sendMessage("CommunityBoard use is prohibited while Attacking!"); return false; } if (activeChar.isInDuel()) { activeChar.sendMessage("CommunityBoard use is prohibited while Playing Duel!"); return false; } if (activeChar.isFishing()) { activeChar.sendMessage("CommunityBoard use is prohibited while Fishing!"); return false; } if (activeChar.isInStoreMode()) { activeChar.sendMessage("CommunityBoard use is prohibited in StoreMode!"); return false; } if (activeChar.isInJail() || activeChar.isCursedWeaponEquipped() || activeChar.isFlying() || activeChar.isInBoat() || activeChar.isProcessingTransaction() || activeChar.isStunned()) { activeChar.sendMessage("CommunityBoard use is prohibited right now!"); return false; } return true; } public static CommunityBoard getInstance() { if (_instance == null) { _instance = new CommunityBoard(); } return _instance; } /** * by Azagthtot * @param handler as IBBSHandler */ public void registerBBSHandler(final IBBSHandler handler) { for (final String s : handler.getBBSCommands()) { _handlers.put(s, handler); } } /** * by Azagthtot * @param client * @param command */ public void handleCommands(final L2GameClient client, final String command) { L2PcInstance activeChar = client.getActiveChar(); if (activeChar == null) return; if(!checkPlayerConditions(activeChar, command)) return; if (Config.COMMUNITY_TYPE.equals("full")) { String cmd = command.substring(4); String params = ""; final int iPos = cmd.indexOf(" "); if (iPos != -1) { params = cmd.substring(iPos + 1); cmd = cmd.substring(0, iPos); } final IBBSHandler bbsh = _handlers.get(cmd); if (bbsh != null) { bbsh.handleCommand(cmd, activeChar, params); } else { if (command.startsWith("_bbsclan")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsmemo")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsgetfav")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbstopics")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsposts")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbstop")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbshome")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbsloc")) { String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); //Custom Community Board text = text.replace("%CharName%", String.valueOf(activeChar.getName())); text = text.replace("%CharClass%", String.valueOf(activeChar.getClassId().name())); text = text.replace("%CharLevel%", String.valueOf(activeChar.getLevel())); if (activeChar.isNoble()) { text = text.replace("%nobless%", "Yes"); } else { text = text.replace("%nobless%", "No"); } L2Clan clan = activeChar.getClan(); if (clan != null) { text = text.replace("%CharClan%", String.valueOf(activeChar.getClan().getName())); } else { text = text.replace("%CharClan%", "No Clan"); } text = text.replace("%CharIP%", String.valueOf(activeChar.getClient().getConnection().getInetAddress().getHostAddress())); text = text.replace("%PlayerOnline%", String.valueOf(L2World.getInstance().getAllPlayers().size()* 1)); text = text.replace("%ServerTime%", fmt.format(new Date(System.currentTimeMillis()))); //Custom Community Board BaseBBSManager.separateAndSend(text, activeChar); } else if (command.startsWith("_bbstele")) { TeleBBSManager.getInstance().parsecmd(command, activeChar); } else if (command.startsWith("_bbsShop")) { shopBBSManager.getInstance().parsecmd(command, activeChar); } else if(command.startsWith("_bbsmultisell;")) { StringTokenizer st = new StringTokenizer(command, ";"); st.nextToken(); shopBBSManager.getInstance().parsecmd("_bbsShop;" + st.nextToken(), activeChar); L2Multisell.getInstance().SeparateAndSend(Integer.parseInt(st.nextToken()), activeChar, false, 0); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); sb = null; activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } } } else if (Config.COMMUNITY_TYPE.equals("old")) { RegionBBSManager.getInstance().parsecmd(command, activeChar); } else { activeChar.sendPacket(new SystemMessage(SystemMessageId.CB_OFFLINE)); } activeChar = null; } /** * @param client * @param url * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void handleWriteCommands(final L2GameClient client, final String url, final String arg1, final String arg2, final String arg3, final String arg4, final String arg5) { L2PcInstance activeChar = client.getActiveChar(); if (activeChar == null) return; if (Config.COMMUNITY_TYPE.equals("full")) { if (url.equals("Topic")) { TopicBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Post")) { PostBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Region")) { RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Notice")) { ClanBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + url + " is not implemented yet</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); sb = null; activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } } else if (Config.COMMUNITY_TYPE.equals("old")) { RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>The Community board is currently disable</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); sb = null; activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } activeChar = null; } }   And making it work in another l2jOrion project:   package l2jorion.game.community; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import l2jorion.Config; import l2jorion.game.community.manager.BaseBBSManager; import l2jorion.game.community.manager.ClanBBSManager; import l2jorion.game.community.manager.FavoriteBBSManager; import l2jorion.game.community.manager.FriendsBBSManager; import l2jorion.game.community.manager.MailBBSManager; import l2jorion.game.community.manager.PostBBSManager; import l2jorion.game.community.manager.RankBBSManager; import l2jorion.game.community.manager.RegionBBSManager; import l2jorion.game.community.manager.TopBBSManager; import l2jorion.game.community.manager.TopicBBSManager; import l2jorion.game.handler.ICommunityBoardHandler; import l2jorion.game.model.actor.instance.L2PcInstance; import l2jorion.game.network.L2GameClient; import l2jorion.game.network.SystemMessageId; import l2jorion.logger.Logger; import l2jorion.logger.LoggerFactory; public class CommunityBoardManager { protected static Logger LOG = LoggerFactory.getLogger(CommunityBoardManager.class); private Map<String, ICommunityBoardHandler> _handlers = new HashMap<>(); private final Map<Integer, String> _bypasses = new ConcurrentHashMap<>(); private static CommunityBoardManager _instance; public static CommunityBoardManager getInstance() { if (_instance == null) { _instance = new CommunityBoardManager(); } return _instance; } private CommunityBoardManager() { registerBBSHandler(new TopBBSManager()); registerBBSHandler(new FavoriteBBSManager()); registerBBSHandler(new RegionBBSManager()); registerBBSHandler(new ClanBBSManager()); registerBBSHandler(new TopicBBSManager()); registerBBSHandler(new MailBBSManager()); registerBBSHandler(new FriendsBBSManager()); registerBBSHandler(new TopicBBSManager()); registerBBSHandler(new PostBBSManager()); registerBBSHandler(new RankBBSManager()); LOG.info("CommunityBoardHandlers: Loaded " + _handlers.size() + " handlers"); } public void registerBBSHandler(ICommunityBoardHandler handler) { for (String bypass : handler.getBypassBbsCommands()) { if (_handlers.containsKey(bypass)) { continue; } _handlers.put(bypass, handler); } } public void onBypassCommand(L2GameClient client, String command) { final L2PcInstance player = client.getActiveChar(); if (player == null) { return; } if (Config.COMMUNITY_TYPE.equals("off")) { player.sendPacket(SystemMessageId.CB_OFFLINE); return; } /* * if (!AutoImageSenderManager.wereAllImagesSent(player)) { player.sendMessage("Community wasn't loaded yet, try again in few seconds."); player.sendPacket(new ExShowScreenMessage("Community wasn't loaded yet, try again in few seconds.", 2000, 2, false)); return; } */ String cmd = command.substring(4); String params = ""; final int iPos = cmd.indexOf(" "); if (iPos != -1) { params = cmd.substring(iPos + 1); cmd = cmd.substring(0, iPos); } ICommunityBoardHandler bypass = _handlers.get(cmd); if (bypass != null) { bypass.handleCommand(cmd, player, params); } else { if (command.startsWith("_bbshome")) { TopBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsgetfav") || command.startsWith("bbs_add_fav") || command.startsWith("_bbsdelfav_")) { FavoriteBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsloc")) { RegionBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsclan")) { ClanBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsmemo")) { TopicBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsmail") || command.equals("_maillist_0_1_0_")) { MailBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_friend") || command.startsWith("_block")) { FriendsBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbstopics")) { TopicBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsposts")) { PostBBSManager.getInstance().parseCmd(command, player); } else if (command.startsWith("_bbsshowrank")) { RankBBSManager.getInstance().parseCmd(command, player); } else { BaseBBSManager.separateAndSend("<html><body><br><br><center>The command: " + command + " isn't implemented.</center></body></html>", player); } } } public void handleWriteCommands(L2GameClient client, String url, String arg1, String arg2, String arg3, String arg4, String arg5) { final L2PcInstance player = client.getActiveChar(); if (player == null) { return; } if (Config.COMMUNITY_TYPE.equals("off")) { player.sendPacket(SystemMessageId.CB_OFFLINE); return; } if (url.equals("Topic")) { TopicBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("Post")) { PostBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("_bbsloc")) { RegionBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("_bbsclan")) { ClanBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("Mail")) { MailBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("Clan")) { ClanBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else if (url.equals("_friend")) { FriendsBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, player); } else { BaseBBSManager.separateAndSend("<html><body><br><br><center>The command: " + url + " isn't implemented.</center></body></html>", player); } } public ICommunityBoardHandler getCommunityHandler(String bypass) { if (_handlers.isEmpty()) { return null; } for (Map.Entry<String, ICommunityBoardHandler> entry : _handlers.entrySet()) { if (bypass.contains(entry.getKey())) { return entry.getValue(); } } return null; } public void addBypass(L2PcInstance player, String title, String bypass) { _bypasses.put(player.getObjectId(), title + "&" + bypass); } public String removeBypass(L2PcInstance player) { return _bypasses.remove(player.getObjectId()); } public Map<Integer, String> getAllBypass() { return _bypasses; } }  
  • Topics

ร—
ร—
  • Create New...