-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
Merge base master into fork master
… don't fit into other plugins.
|
||
// We need to keep track of the first character name lest it loops forever. | ||
wstring wscFirstCharacterName; | ||
while (accountList) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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:"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refreshing characters*
wstring wscFirstCharacterName; | ||
while (accountList) | ||
{ | ||
// We need to make sure the character name is not null (which is is sometimes because FLHook?) |
There was a problem hiding this comment.
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.
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.