in order for me to properly store any default values such as your nation when to activate spy mode i need some sort of value that is unique to the character such as char id or something else related to that.
anyone care to offer insight?
this is my sample code to enable "spy". what i want this to do is the tempnat var will store your "real" nation, so when you toggle it goes to gm and then tempnat. its semi working but its going to no nation which i believe the var is being taken when the game loads up and thus does not have a char to be used. So i need a check in my code that would detect that a character is being used.
anyone care to offer insight?
PHP Code:
int tempnat = *(DWORD*)(ADDR_BASE+A_NATION);
void Start(){
while (1){
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;
}
}
}