Are you selling those legend plates?
Are you selling those legend plates?
Any chance that you implent the ReadStatus think to your scripts? it looks like a real nice to have feature @Aussiedroid
Reworked CHAT FUNCTIONS in TARGET.
Hi Aussiedroid,
Long time coming perhaps, but here it is...
I've been able to create a function which allows the user to easily edit the chat contents.
Function: initSendChat() - accepts a predefined chat string, grabs one character at a time to send to chat window
// START Chat Functions
include "EDChatMacros.tmh"
// GLOBAL VARs can go into EDSettings file once tested
int myChar;
int myChar2 = " ";
int myresult = 0;
// End GLOBAL
int initSendChat(int myTextToSend) {
// Accepts a chat macro defined in EDChatMacros.tmh file
// Usage example:
// initSendChat(chat_ClearChatBox);
int myTextLength = strlen(myTextToSend);
int myCounter = 0;
ActKey(PULSE+KEYON+QuickCommsPanel);
Sleep(500);
while (myCounter < myTextLength) {
strsub(myChar2, myTextToSend, myCounter, myCounter);
initStr2Char();
ActKey(PULSE+KEYON+myChar);
Sleep(33);
myCounter = myCounter + 1;
}
ActKey(PULSE+KEYON+QuickCommsPanel);
Sleep(250);
}
Function: initStr2Char() - this does the conversion...one character at a time. (convert "X" to 'X')
int initStr2Char() {
if (!strcmp(myChar2, "a")) myChar = 'a';
if (!strcmp(myChar2, "b")) myChar = 'b';
if (!strcmp(myChar2, "c")) myChar = 'c';
if (!strcmp(myChar2, "d")) myChar = 'd';
if (!strcmp(myChar2, "e")) myChar = 'e';
if (!strcmp(myChar2, "f")) myChar = 'f';
if (!strcmp(myChar2, "g")) myChar = 'g';
if (!strcmp(myChar2, "h")) myChar = 'h';
if (!strcmp(myChar2, "i")) myChar = 'i';
if (!strcmp(myChar2, "j")) myChar = 'j';
if (!strcmp(myChar2, "k")) myChar = 'k';
if (!strcmp(myChar2, "l")) myChar = 'l';
if (!strcmp(myChar2, "m")) myChar = 'm';
if (!strcmp(myChar2, "n")) myChar = 'n';
if (!strcmp(myChar2, "o")) myChar = 'o';
if (!strcmp(myChar2, "p")) myChar = 'p';
if (!strcmp(myChar2, "q")) myChar = 'q';
if (!strcmp(myChar2, "r")) myChar = 'r';
if (!strcmp(myChar2, "s")) myChar = 's';
if (!strcmp(myChar2, "t")) myChar = 't';
if (!strcmp(myChar2, "u")) myChar = 'u';
if (!strcmp(myChar2, "v")) myChar = 'v';
if (!strcmp(myChar2, "w")) myChar = 'w';
if (!strcmp(myChar2, "x")) myChar = 'x';
if (!strcmp(myChar2, "y")) myChar = 'y';
if (!strcmp(myChar2, "z")) myChar = 'z';
if (!strcmp(myChar2, "A")) myChar = 'A';
if (!strcmp(myChar2, "B")) myChar = 'B';
if (!strcmp(myChar2, "C")) myChar = 'C';
if (!strcmp(myChar2, "D")) myChar = 'D';
if (!strcmp(myChar2, "E")) myChar = 'E';
if (!strcmp(myChar2, "F")) myChar = 'F';
if (!strcmp(myChar2, "G")) myChar = 'G';
if (!strcmp(myChar2, "H")) myChar = 'H';
if (!strcmp(myChar2, "I")) myChar = 'I';
if (!strcmp(myChar2, "J")) myChar = 'J';
if (!strcmp(myChar2, "K")) myChar = 'K';
if (!strcmp(myChar2, "L")) myChar = 'L';
if (!strcmp(myChar2, "M")) myChar = 'M';
if (!strcmp(myChar2, "N")) myChar = 'N';
if (!strcmp(myChar2, "O")) myChar = 'O';
if (!strcmp(myChar2, "P")) myChar = 'P';
if (!strcmp(myChar2, "Q")) myChar = 'Q';
if (!strcmp(myChar2, "R")) myChar = 'R';
if (!strcmp(myChar2, "S")) myChar = 'S';
if (!strcmp(myChar2, "T")) myChar = 'T';
if (!strcmp(myChar2, "U")) myChar = 'U';
if (!strcmp(myChar2, "V")) myChar = 'V';
if (!strcmp(myChar2, "W")) myChar = 'W';
if (!strcmp(myChar2, "X")) myChar = 'X';
if (!strcmp(myChar2, "Y")) myChar = 'Y';
if (!strcmp(myChar2, "Z")) myChar = 'Z';
if (!strcmp(myChar2, "0")) myChar = '0';
if (!strcmp(myChar2, "1")) myChar = '1';
if (!strcmp(myChar2, "2")) myChar = '2';
if (!strcmp(myChar2, "3")) myChar = '3';
if (!strcmp(myChar2, "4")) myChar = '4';
if (!strcmp(myChar2, "5")) myChar = '5';
if (!strcmp(myChar2, "6")) myChar = '6';
if (!strcmp(myChar2, "7")) myChar = '7';
if (!strcmp(myChar2, "8")) myChar = '8';
if (!strcmp(myChar2, "9")) myChar = '9';
if (!strcmp(myChar2, " ")) myChar = ' ';
if (!strcmp(myChar2, ".")) myChar = '.';
if (!strcmp(myChar2, ",")) myChar = ',';
if (!strcmp(myChar2, "/")) myChar = '/';
if (!strcmp(myChar2, "'")) myChar = '\'';
if (!strcmp(myChar2, "!")) myChar = '!';
if (!strcmp(myChar2, ":")) myChar = ':';
if (!strcmp(myChar2, ";")) myChar = ';';
if (!strcmp(myChar2, "@")) myChar = '@';
if (!strcmp(myChar2, "#")) myChar = '#';
if (!strcmp(myChar2, "$")) myChar = '$';
if (!strcmp(myChar2, "%")) myChar = '%';
if (!strcmp(myChar2, "^")) myChar = '^';
if (!strcmp(myChar2, "&")) myChar = '&';
if (!strcmp(myChar2, "*")) myChar = '*';
if (!strcmp(myChar2, "-")) myChar = '-';
if (!strcmp(myChar2, "+")) myChar = '+';
if (!strcmp(myChar2, "=")) myChar = '=';
if (!strcmp(myChar2, "_")) myChar = '_';
if (!strcmp(myChar2, "<")) myChar = '<';
if (!strcmp(myChar2, ">")) myChar = '>';
if (!strcmp(myChar2, "?")) myChar = '?';
if (!strcmp(myChar2, "~")) myChar = '~';
// if (!strcmp(myChar2, "")) myChar = ''; // Add more punctuation chars here if needed
}
...and lastly, your chat definitions...
File: EDChatMacros.tmh
// Define your chat variables here.
// NOTE: Just change the text between the quotes
// DO NOT change the macro names (everything starting with "chat_")
define chat_ClearChatBox "/clear" // Do not modify this one
define chat_HostileAttack "You're a disgrace! Die! Time to see the Rebuy!"
define chat_HostileMock "I fart in your general direction :/"
define chat_HostileDemand "How much cargo is your life worth? Hand it over!"
define chat_HostileScanning "Stay calm, cut your engines and prepare to be scanned. Move and you will be fired upon"
define chat_PassiveHail "Greetings CMDR o7"
define chat_PassiveFarewell "Fly safe CMDR"
define chat_PassiveHonk "Easy there! Watch where you are going CMDR"
define chat_PassiveSurrender "Hold your Fire! I surrender, what are your demands?"
define chat_FriendlyThanks "Thank you for your assistance! o7"
define chat_FriendlyMailSlot "CMDR coming through the mailslot"
define chat_FriendlyOfferAid "Can I help CMDR?"
define chat_FriendlyDeter "I don't want conflict, but I will protect what is mine"
define chat_BasicHello "CMDR! o7"
define chat_BasicHonk "Easy there! Watch where you are going CMDR"
define chat_BasicQuery "What do you want CMDR?"
define chat_BasicAttack "Let's Rock!!"
// END Chat Defines
To use, (example) instead of ActKey(KEYON+PULSE+mTextBasicHello); , you send initSendChat(chat_BasicHello);
You asked for it....here 'tis!
Enjoy
Clicker
:-D
Hi AD,
NO problem.
The Readstatus stuff was more for me rather than you...just wanted to be able to track/set state flags reliably.
The Chat stuff was a challenge and I wanted to see if I could crack it!
Took me quite a while on and off to crack actually, but today I had an epiphany moment and it all fell into place!
Your efforts and script are the benchmark and I'm just gald I can contribute.
Even if you don't use my code or ideas, I know how sparse examples on how to do certain stuff is, so someone will see this and take something away.
Cheers
Clicker
The file you have selected (Aussiedroid-ED-Warthog-Script-3.3.3.zip) is not available via any mirrors. Please check back shortly as our servers update every 5 minutes. To access more file mirrors we encourage you to join the community, otherwise please be patient and keep trying.
Hi AD,
im having problem download the mod
Code:The file you have selected (Aussiedroid-ED-Warthog-Script-3.3.3.zip) is not available via any mirrors. Please check back shortly as our servers update every 5 minutes. To access more file mirrors we encourage you to join the community, otherwise please be patient and keep trying.
How long does it usually take for it to be available?
Hey AD,
just for the sake of saying, you could put this repository into GitHub or something like that. That way you dont need to "Build" Zip Release and upload them somewhere. i've for example put your Script into my private Git-Repository to monitor the changes i made![]()
@AussieDroid:
Looks like there is a problem with their servers, the file still isn't available and it's been almost six hours. Any chance you could provide a working link?