-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GiR_Zippo
committed
Jul 15, 2024
1 parent
e84df8a
commit f2c3597
Showing
7 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using HypnotoadPlugin.Offsets; | ||
using System.Threading.Tasks; | ||
using System.Threading; | ||
using System; | ||
|
||
namespace HypnotoadPlugin.GameFunctions; | ||
|
||
public static class MiscGameFunctions | ||
{ | ||
public static void CharacterLogout() | ||
{ | ||
Party.Instance.AcceptPartyInviteEnable(); | ||
Api.Framework.RunOnTick(delegate | ||
{ | ||
Chat.SendMessage("/logout"); | ||
}, default(TimeSpan), 10, default(CancellationToken)); | ||
} | ||
|
||
public static void GameShutdown() | ||
{ | ||
Party.Instance.AcceptPartyInviteEnable(); | ||
Api.Framework.RunOnTick(delegate | ||
{ | ||
Chat.SendMessage("/shutdown"); | ||
}, default(TimeSpan), 10, default(CancellationToken)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters