Skip to content

Classes

IgnoreList

The IgnoreList class manages a list of ignored entities within the ClassicUO web client. Use this class to ignore certain entities (Items/Mobiles) from various search functions like searchEntity or findType

Example

ts
let entity: Item | Mobile;
while ((entity = client.findType(0xeed))) {
  console.log(`Found item: ${entity.serial}`);
  ignoreList.add(entity); // Add it to the ignoreList so it won't get picked next
}

ignoreList.clear(); // Clear the list when we're done, this is cross-script

Properties

values
ts
values: number[];

Methods

add()
ts
add(serial: SerialOrEntity): boolean

Adds an item to the ignore list, causing functions like findType to ignore them.

Parameters
ParameterTypeDescription
serialSerialOrEntity
Returns

boolean

true if the value was added, false if it already exists


clear()
ts
clear(): void

Clears the list


contains()
ts
contains(serial: SerialOrEntity): boolean

Whether the entity exists in the ignore list.

Parameters
ParameterTypeDescription
serialSerialOrEntity
Returns

boolean

true if in the list or false


remove()
ts
remove(serial: SerialOrEntity): boolean

Removes an item from ignore list, allowing them to be found again.

Parameters
ParameterTypeDescription
serialSerialOrEntity
Returns

boolean

true if the value was removed, false if it didn't exist


replace()
ts
replace(values: number[]): void

Replaces the current list with a new one

Parameters
ParameterTypeDescription
valuesnumber[]