Skip to content

Commit

Permalink
fix: Bank.WalkOpen() should open the bank on NPCs again
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Feb 6, 2024
1 parent 310972a commit e2f7488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion osr/mm2ms.simba
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(*
# MM2MS
# Minimap to MainScreen
Methods to handle MM2MS (Minimap to MainScreen). Extends SRL's MM2MS.
*)
{$DEFINE WL_MM2MS_INCLUDED}
Expand Down
4 changes: 2 additions & 2 deletions osr/walker/objects/walkerobjects.simba
Original file line number Diff line number Diff line change
Expand Up @@ -2375,7 +2375,7 @@ begin
MainScreen.CloseInterface();
end;

Result := rsNPC.Click() or (MainScreen.IsUpText('Bank') and ChooseOption.Select(['Bank B', 'Bank E']));
Result := rsNPC.SelectOption(['Bank B', 'Bank E']) or (MainScreen.IsUpText('Bank') and ChooseOption.Select(['Bank B', 'Bank E']));

if not Result then
Exit;
Expand All @@ -2401,7 +2401,7 @@ begin
MainScreen.CloseInterface();
end;

Result := rsNPC.WalkClick() or (MainScreen.IsUpText('Bank') and ChooseOption.Select(['Bank B', 'Bank E']));
Result := rsNPC.SelectOption(['Bank B', 'Bank E']) or (MainScreen.IsUpText('Bank') and ChooseOption.Select(['Bank B', 'Bank E']));

if not Result then
Exit;
Expand Down

0 comments on commit e2f7488

Please sign in to comment.