Skip to content

Conversation

@clementop
Copy link
Contributor

  • Handles 3 'examine' packet codes
  • Parses examine data files
  • Import item messages from osrsbox-db
    This PR only includes messages for items which exists in the 435 cache and also share the same name.

public constructor() {
logger.info('Parsing examine data...');
this.items = parseData('data/config/examine-item-data.yaml');
this.npcs = new Map<number, Examine>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are some examines for "monsters" in osrsbox-db, however the ID numbers do not correspond with 435 cache id numbers. For this reason, I've excluded these from this initial PR. Not sure how we want to approach these.

logger.info('Parsing examine data...');
this.items = parseData('data/config/examine-item-data.yaml');
this.npcs = new Map<number, Examine>();
this.objects = new Map<number, Examine>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know of any source of examine messages for scenery objects.

Copy link
Contributor

@TheBlackParade TheBlackParade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add the packet sizes inside incoming-packet-sizes.ts

@clementop
Copy link
Contributor Author

Please also add the packet sizes inside incoming-packet-sizes.ts

Done.

Copy link
Contributor

@TheBlackParade TheBlackParade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful, thank you~

@TheBlackParade TheBlackParade merged commit 53ac89c into runejs:master May 31, 2020
@clementop clementop deleted the examine branch June 1, 2020 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants