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
Methods
add()
ts
add(serial: SerialOrEntity): boolean
Adds an item to the ignore list, causing functions like findType
to ignore them.
Parameters
Parameter | Type | Description |
---|---|---|
serial | SerialOrEntity |
Returns
boolean
true
if the value was added, false
if it already exists
contains()
ts
contains(serial: SerialOrEntity): boolean
Whether the entity exists in the ignore list.
Parameters
Parameter | Type | Description |
---|---|---|
serial | SerialOrEntity |
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
Parameter | Type | Description |
---|---|---|
serial | SerialOrEntity |
Returns
boolean
true
if the value was removed, false
if it didn't exist