Jump to content

Recommended Posts

Posted (edited)

nt9niPq.png

Hello again Cheaters i rework and redesign an already shared code of my friend @melron (Official code : HERE)

 - Using multi-word search.

 - Cleanup parts of the code.

 - Code not include part of "item.getIcon()" you can find many shared ways to get icon for each item.

 

Updates:
 - Add idea/part of the code of @Creamy G Colin
 - Add check of empty seach (was throwing error on GS console)

 - Add info if its Quest Item

 


Coded for aCis 385 revision
Code : Here

Edited by StinkyMadness
  • Like 4
  • Thanks 7
  • Upvote 2
Posted

i think multi word search must be like:

			String[] parts = search.toLowerCase().split(" ");
			for (Item item : ItemData.getInstance().getTemplates()){
			boolean add = false;
			for (String part : parts) {
			if (item.getName().toLowerCase().contains(part)){
			add = true;
			}else{
			add = false;
			break;
			}
			}
			}
			if(add) items.add(item);

 

Posted
15 hours ago, wongerlt said:

i think multi word search must be like:


			String[] parts = search.toLowerCase().split(" ");
			for (Item item : ItemData.getInstance().getTemplates()){
			boolean add = false;
			for (String part : parts) {
			if (item.getName().toLowerCase().contains(part)){
			add = true;
			}else{
			add = false;
			break;
			}
			}
			}
			if(add) items.add(item);

 

 

GTFO

Posted
19 hours ago, StinkyMadness said:

Why my way its not working ?

if i try search example "Bow Draconic" or "Drac Bow" then not working.

with me code it will work

 

Posted
38 minutes ago, wongerlt said:

if i try search example "Bow Draconic" or "Drac Bow" then not working.

with me code it will work

 

You have no reason to search "Drac Bow" -.- also without testing as i read your part with "Drac Bow" it will show you and "Draconic Armor" too.. right me if i'm wrong..

Posted
7 minutes ago, StinkyMadness said:

You have no reason to search "Drac Bow" -.- also without testing as i read your part with "Drac Bow" it will show you and "Draconic Armor" too.. right me if i'm wrong..

in item name must include all search words so draconic armor not show. its good if u not remember part of item name.

Posted (edited)
On 9/27/2019 at 7:18 PM, wongerlt said:

i think multi word search must be like:


			String[] parts = search.toLowerCase().split(" ");
			for (Item item : ItemData.getInstance().getTemplates()){
			boolean add = false;
			for (String part : parts) {
			if (item.getName().toLowerCase().contains(part)){
			add = true;
			}else{
			add = false;
			break;
			}
			}
			}
			if(add) items.add(item);

 

 

I think you didnt even test this code... isnt working at all. Here is one that could work.

package test;

import java.util.Arrays;
import java.util.stream.Collectors;

public class workspace 
{
	public static void main(String[] args) 
	{
		final String[] items = new String[] { "Draconic Bow", "Draconic Bow - Focus", "Arcana Mace", "Arcana Mace - Acumen" };
		final String search = "drac bo";

		Arrays.asList(items).stream().filter(names -> matches(names.toLowerCase(), search.toLowerCase())).collect(Collectors.toList()).forEach(System.out::println);

	}

	public static boolean matches(String string1, String string2) 
	{
		for (char c : string2.toCharArray())
			if (string1.indexOf(c) == -1)
				return false;
		return true;
	}
}

 

good.thumb.PNG.fb3cb9d37097d44b41dedb28e5cb6110.PNG

 

and if you need extra debug mode...

debug.thumb.PNG.eb5be07e4d527f51bd22b7175d9fd583.PNG

 

take the lines you need and create it

Edited by Creamy G Colin
Posted
5 minutes ago, Creamy G Colin said:

This is > interlude client.... and if not, requires client modification.. so? ....

Please refer to my article in general discussion, Mimesis and Necrophilia.

 

Quote

 Interlude, like fecal matter, is beneath us. Obsessing over your feces and talking/playing/prodding/poking your stool is not only extremely unhealthy and abnormal but it serves as a complete halt to progress. Normal men bury it in a hole and keep on going. Or flush it down your toilet. Furthermore this can be related to the dead. It is not healthy or normal to keep a corpse in your bathtub and put makeup on it and dress it up just so you can take a selfie on instagram tagging the faux morticians page. This is what Interlude devs are essentially doing.

Working on interlude is a sign of depression. Forever living in the past.

 

Posted (edited)
4 minutes ago, GLO said:

Please refer to my article in general discussion, Mimesis and Necrophilia.

 

 

 

What a brain. You came here to judge interlude users/devs? rly nigga? in a share about interlude Server Side? rly nigga? I could say the exact same thing about lineage 2 client devs. What's up?

Edited by Creamy G Colin
Posted
11 minutes ago, Creamy G Colin said:

 

What a brain. You came here to judge interlude users/devs? rly nigga? in a share about interlude Server Side? rly nigga? I could say the exact same thing about lineage 2 client devs. What's up?

Good developers should focus on inventing the car not improving the carriage.

 

Max potential of interlude

article-2196619-14C3F441000005DC-572_634

 

 

Posted (edited)
9 minutes ago, GLO said:

Good developers should focus on inventing the car not improving the carriage.

 

Max potential of interlude

article-2196619-14C3F441000005DC-572_634

 

 

 

Alright Mr smart guy. i wont answer to you anymore since im not even working on l2 anymore... i just rly wanna see what @Tryskell have to say about your thoughts

Edited by Creamy G Colin
Posted
47 minutes ago, Creamy G Colin said:

 

Alright Mr smart guy. i wont answer to you anymore since im not even working on l2 anymore... i just rly wanna see what @Tryskell have to say about your thoughts

 

It's pointless to speak with that sort of people. Whatever people like GLO can say, Classic isn't Interlude.

 

I could say developping on Classic is totally pointless, because you lost your time running after something which always change of shape. Simply wait 5-10 Classic chronicles to see how clunky your Classic L2J project will be, with half missing functionalities. See L2J to understand what I mean, they simply had to stop on High Five to take a breath.

 

GoD simply changed all quests. Latest Lineage 2 chronicle also deleted all GoD quests with a 30min 1-85.

 

People were saying Interlude was dead with Classic, but the fact is there is still more Interlude shares/servers than Classic.

 

More time passes by, less accurate and more shitty your Classic server will be.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock