mirror of
https://github.com/bdnugget/rs-sdk.git
synced 2026-11-07 09:07:30 +00:00
fixes
This commit is contained in:
1 parent
347ea327aa
commit
caafd63ab5
3 files changed
+8
-1
No files matched your search
@@ -0,0 +1,2 @@
|
||||
[install]
|
||||
auto = true
|
||||
@@ -73,6 +73,8 @@ export interface NearbyNpc {
|
||||
animId: number;
|
||||
spotanimId: number;
|
||||
optionsWithIndex: NpcOption[];
|
||||
/** Convenience array of option text strings */
|
||||
options: string[];
|
||||
}
|
||||
|
||||
export interface NearbyPlayer {
|
||||
@@ -105,6 +107,8 @@ export interface NearbyLoc {
|
||||
z: number;
|
||||
distance: number;
|
||||
optionsWithIndex: LocOption[];
|
||||
/** Convenience array of option text strings */
|
||||
options: string[];
|
||||
}
|
||||
|
||||
export interface GameMessage {
|
||||
|
||||
@@ -320,9 +320,10 @@ export async function skipTutorial(sdk: BotSDK, maxAttempts: number = 30): Promi
|
||||
return isOnTutorialIsland(s.player.worldX, s.player.worldZ);
|
||||
};
|
||||
|
||||
const bot = new BotActions(sdk);
|
||||
let attempts = 0;
|
||||
while (isInTutorial() && attempts < maxAttempts) {
|
||||
await sdk.sendSkipTutorial();
|
||||
await bot.skipTutorial();
|
||||
await sleep(1000);
|
||||
attempts++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user