Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

feat(engine): wandering npcs now teleport if stuck for 5 min - #996

Merged
Pazaz merged 1 commit into
2004Scape:mainfrom
tannerdino:wander_teleport
Nov 13, 2024
Merged

feat(engine): wandering npcs now teleport if stuck for 5 min#996
Pazaz merged 1 commit into
2004Scape:mainfrom
tannerdino:wander_teleport

Conversation

@tannerdino

@tannerdinotannerdino commented Nov 13, 2024

Copy link
Copy Markdown
Collaborator

Osrs is 500 ticks + some change; it's not usually exactly 500 ticks. I think they probably only teleport on the 1/8 chance to wander. Last wander also resets on defaultMode, so you can keep an npc stuck by splashing and logging on an alt every few minutes. For these reasons we cannot reuse lastMovement.

Added startLevel just incase an npc gets teleported and trapped on a level different than their respawn.

2024-11-12.23-47-29.mp4

@Pazaz
Pazaz merged commit 2b44e93 into 2004Scape:mainNov 13, 2024
Pazaz added a commit that referenced this pull request Nov 16, 2024
We've reached 1000 PRs! Sincerest appreciation to all contributors that
are working on this.
## Content Changes
### Features
* #968
* #991
### Fixes
* #989
* #990
* #998
* #1000
* #1003
## Engine Changes
### Features
* #992
* #994
* #996
* #1001
* Automatic image quantization. We use the original packed sprites, so
this code only runs when custom images are added to the data folder.
### Fixes
* #993
* #995
* #1002
* Jagfile decompression could fail using standard libbz2 due to a
packing oversight. The client was unaffected.
* Removed quotes from constants referenced in scripts.
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tannerdino@Pazaz