Skip to content

Commit

Permalink
bank hear fix
Browse files Browse the repository at this point in the history
If you are around an entity that you own and you are trying to open a bank next to a bank, the "bank" command is perceived as a pet command and the bank does not open. There is no problem when you type "bank" after mounting the mount, but "bank" does not work when you dismount. (Issue Sphereserver#1331)

tested.
  • Loading branch information
canerksk committed Nov 7, 2024
1 parent f051889 commit 6d847ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3914,3 +3914,6 @@ Added: 'H' shortcut for variables to get the value as hexadecimal.

13-10-2024, Jhobean
- Added: @PetRelease trigger work like @petdesert and return 1 to prevent the pet from being released.

07-11-2024, canerksk
- Fixed: If you are around an entity that you own and you are trying to open a bank next to a bank, the "bank" command is perceived as a pet command and the bank does not open. There is no problem when you type "bank" after mounting the mount, but "bank" does not work when you dismount. (Issue #1331)
9 changes: 9 additions & 0 deletions src/game/clients/CClientEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,15 @@ void CClient::Event_Talk_Common(lpctstr pszText) // PC speech
break;
}
*/
// NPC's with special key words ?
if (pChar->m_pNPC)
{
if (pChar->m_pNPC->m_Brain == NPCBRAIN_BANKER)
{
if (FindStrWord(pszText, "BANK") > 0)
break;
}
}
}

if ( !pChar )
Expand Down

0 comments on commit 6d847ac

Please sign in to comment.