Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous Commands #84

Merged
merged 10 commits into from
Feb 9, 2019
Merged

Miscellaneous Commands #84

merged 10 commits into from
Feb 9, 2019

Conversation

Lazrius
Copy link
Contributor

@Lazrius Lazrius commented Dec 6, 2018

Created a new shared project for all the random oddball commands that don't fit into other plugins.

First command is /refresh which automatically updates the timestamp on all character files for the currently active account. There was a bug with FLHook's HkFLIniWrite function due to slightly incorrect typing in the EXPORT function. Fixed for usage in this plugin, but it will require a rebuild of FLHook, obviously.

Edit: Added /freelancer - Command that gives the user a Freelancer IFF. Requested by Xalrok.


// We need to keep track of the first character name lest it loops forever.
wstring wscFirstCharacterName;
while (accountList)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

characterList? on like all of these variables we're using

wscFirstCharacterName = wscCharacterName;

// If this isn't the first name, we need to check that we've not looped over the list again
else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else if as one line


CAccount *acc = HkGetAccountByClientID(iClientID);
CAccountListNode *accountList = acc->pFirstListNode;
PrintUserCmdText(iClientID, L"Refreshing Accounts:");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refreshing characters*

Plugins/Public/MiscellaneousCommands/Main.cpp Outdated Show resolved Hide resolved
wstring wscFirstCharacterName;
while (accountList)
{
// We need to make sure the character name is not null (which is is sometimes because FLHook?)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bare in mind this is not FLHook code we're dealing with here - CAccount is FL code itself that we import.

@dsyalex dsyalex merged commit 7c80b87 into DiscoveryGC:master Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants