incase people want to use spy and toggle back to their original nation heres a sniplet of code you can use.
PHP Code:
#define ADDR_BASE 0x00A9B820
#define A_NATION 0x0370
int tempnat = *(DWORD*)(ADDR_BASE+A_NATION);
int spy = 0;
VOID WINAPI Sleep(
_In_ DWORD dwMilliseconds
);
void Start();
void Start(){
if(GetKeyState(VK_F9) < 0){
if(spy == 0){
spy = 1;
}else if(spy == 1){
spy = 0;
}
Sleep(1000);
}
if(spy == 1){
DWORD NATION = *(DWORD*)ADDR_BASE;*(DWORD*)(NATION+A_NATION) = 3;
}else if(spy == 0){
DWORD NATION = *(DWORD*)ADDR_BASE;*(DWORD*)(NATION+A_NATION) = tempnat;
}
}
this code will put a 1 second delay when you hit f9 to toggle your nation to prevent spamming of the nation change. the sleep function was redefined for my script to be converted to milleseconds as evidenced by the void winapi.
the temptnat will be used to store your "real" nation into a temporary variable. When you press f9 for the first time your nation will be stored into it. and if you press f9 while your gm nation it will revert the value of nation back to what your real one is.
Ofcourse you may want to do an additional check if you log on a different character that has a different nation(example char 1 is proc char 2 is cap).
But i wont give everything out so easy. im sure you can figure these out. The addresses are cabal NA