Over the past few days I've been trying to make a Fishbot with BlackRain with the help of several tutorials and threads on mmowned and elsewhere. (I did search believe me as this has stumped me for days, but couldn't find anything to help me out).
I get the Bobber GUID without any trouble (by getting a gameObject of type = 5, with name "Fishing Bobber") and I am using the following code to write it to the Player's Target GUID, I then read the player's target GUID to a textBox (to see if its working):
Code:
ObjectManager.Write<UInt64>((uint)Offsets.WowPlayer.targetGUID, Bobber.GUID);
textBox1.Text = ObjectManager.Read<UInt64>((uint)Offsets.WowPlayer.targetGUID).ToString();
This code runs on a timer (probably bad, but its just to test).
When I target any unit in-game I see that unit's GUID with this code, when there is a Fishing Bobber around it reads that the target's GUID is 0. This is the case even if I still have the original unit targeted. I try to use the interact with target key manually but it acts as if I have no target.
The offsets I am using are from the 4.0.3.13329 Info Dump Thread. (Thanks to RivalLfr and everyone else who contributed)
The only relevant one is: targetGUID = 0x9906B8
This is my first major attempt at memory reading/writing so please keep flaming to a minimum. I'm sure its a very simple fix but it has stumped me for days lol.
Thanks in advance!