Jump to content

Question

Posted

Hello, i made a code and basically capture tokens from bypass using StringTokenizer tk = new StringTokenizer(command, " ");

and the bypass is like

%objectId%_something $var1 $var2 $var3 

 

the problem is that i use 3 boxes to fill (3 variables) and if a player inside box he use space to write 2 words it capture the 2nd word as another token so it end up like

4 token instead of 3.

 

How can i avoid this? Like if a player writes in box "Something Something" this will be captured as 1 token instead of 2 tokens ?

 

Thanks a lot.

Recommended Posts

  • 0
Posted (edited)

Did you try it? It's not working + eclipse can't compile this character.

use type casting

(char)161
Edited by melron
  • 0
Posted

Can you give an example or tell us how this one will help this problem?

 

This guy didnt want to cancel the proccess when one more token found , contrary he want the unexpected tokens as one string with spaces inside.

i believe trim is useless, correct me if im wrong

Yes, this will fix the problem.

Example:

TextBox 1: asd

TextBox 2: sss ddd

TextBox 3: ddd 2 uuu

 

Bypass will look like this: "npc_%objectId%_test asd ¡ sss ddd ¡ ddd 2 uuu".

.trim() is needed so spaces at the beginning and at the end of the token will be removed, for example "asd " will be turned into "asd", " sss ddd " into "sss ddd".

  • 0
Posted

The bypass command line have limited length. Use RequestBBSwrite packet. He don't have problems with spaces, etc.

And how ill use the bbswrite? Cause i changed bypass to bypass -h still when i write bigger than 15 char in box it no accept it.

  • 0
Posted

And how ill use the bbswrite? Cause i changed bypass to bypass -h still when i write bigger than 15 char in box it no accept it.

 

You need to learn the Community Board style for inputs form. They uses another link style for buttons.

  • 0
Posted

You need to learn the Community Board style for inputs form. They uses another link style for buttons.

yea that what im asking lel,, the style in request bypass is example bypass -h blabla

 

in community is ?

  • 0
Posted

yea that what im asking lel,, the style in request bypass is example bypass -h blabla

 

in community is ?

 

Open commynity Mail section and you find the answer. Don't be lazy.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • I didn't use AI for this, I used untitledui, they have ready templates and blocks. And no, it's not shadcn, untitledui has their own design system.   For example, for the hero I used an iteration of this https://www.untitledui.com/react/marketing/hero-header-sections/hero-abstract-angles-04
    • A misaligned badge or a heavy shadow is not evidence of AI. If anything, small inconsistencies are usually proof of years of manual modifications layered over an old codebase. AI-generated UIs tend to be overly clean, symmetrical, and generic because models optimize for visual patterns, not long-term product evolution. What you’re calling “AI design” is actually a very common style in older gaming communities: strong gradients, metallic buttons, glow effects, dense information blocks, and high visual emphasis on rankings/votes/sponsors.    Also, good UI is contextual. A toplist platform for MMORPG servers is optimized differently than a modern SaaS dashboard or a portfolio site. Here, visibility, CTR, sponsor highlighting, fast scanning, and information density matter more than minimalist whitespace trends from Dribbble. And honestly, if the UI was actually generated by AI, it probably would’ve looked more modern and generic — not like a platform that clearly evolved piece by piece over many years 😄   The funny thing is that a lot of these new “AI web designers” can’t even write 20 lines of CSS by hand without ChatGPT holding their hand 😄    They see a shadow, a gradient, or a rounded border and instantly scream “AI-generated” because their entire understanding of design now comes from prompting tools instead of actually building interfaces from scratch. And honestly, @Elfo was right — your own website looks far more AI-generated you built it with Tailwind/shadcn-style aesthetics and probably Next.js ,m i right friend? you built it with Tailwind/shadcn-style aesthetics...  You literally scanned the entire site just to find a tiny shadow behind a button as “proof” 😂 Real developers know the difference between a handcrafted project that evolved over many years, and a generic AI-generated template pumped out in 30 seconds.       Anyway, no hard feelings. Different tastes, different opinions 🙂
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..