You need to write "scale" as well: (from mac, but same concept)
Code:
- (void)setClickToMove:(Position*)position andType:(UInt32)type andGUID:(UInt64)guid{
MemoryAccess *memory = [controller wowMemoryAccess];
if ( !memory ){
return;
}
// Set our position!
if ( position != nil ){
float pos[3] = {0.0f, 0.0f, 0.0f};
pos[0] = [position xPosition];
pos[1] = [position yPosition];
pos[2] = [position zPosition];
[memory saveDataForAddress: [offsetController offset:@"CTM_POS"] Buffer: (Byte *)&pos BufLength: sizeof(float)*3];
}
// Set the GUID of who to interact with!
if ( guid > 0 ){
[memory saveDataForAddress: [offsetController offset:@"CTM_GUID"] Buffer: (Byte *)&guid BufLength: sizeof(guid)];
}
// Set our scale!
float scale = 13.962634f;
[memory saveDataForAddress: [offsetController offset:@"CTM_SCALE"] Buffer: (Byte *)&scale BufLength: sizeof(scale)];
// Set our distance to the target until we stop moving
float distance = 0.5f; // Default for just move to position
if ( type == ctmAttackGuid ){
distance = 3.66f;
}
else if ( type == ctmInteractNpc ){
distance = 2.75f;
}
else if ( type == ctmInteractObject ){
distance = 4.5f;
}
[memory saveDataForAddress: [offsetController offset:@"CTM_DISTANCE"] Buffer: (Byte *)&distance BufLength: sizeof(distance)];
/*
// Set these other randoms! These are set if the player actually clicks, but sometimes they won't when they login! Then it won't work :( /cry
float unk = 9.0f;
float unk2 = 14.0f; // should this be 7.0f? If only i knew what this was!
[memory saveDataForAddress: CTM_UNKNOWN Buffer: (Byte *)&unk BufLength: sizeof(unk)];
[memory saveDataForAddress: CTM_UNKNOWN2 Buffer: (Byte *)&unk2 BufLength: sizeof(unk2)];
*/
// Lets start moving!
[memory saveDataForAddress: [offsetController offset:@"CTM_ACTION"] Buffer: (Byte *)&type BufLength: sizeof(type)];
}