iEatApplez
05-06-2015, 04:12 PM
Hiya,
I've always been wondering how to find your current slayer task using reflection, so I decided to read up on the advanced tutorial.
Considering it's no NPC, Item or Object, but you can still retrieve data from it (that's what the tutorial says) it should be a widget.
Following the tutorial step by step, I managed to print all the widgets. Killed a slayer monster and checked it again. Beautiful!
There were 2 changes, one that probably doesn't have anything to do with it, and the other which probably does.
So yeah, the Widget's number changed from 107 to 106, but then I canceled my slayer task, got a new one and checked it again.
This time the task was 125 Greater demons, but the Widget that showed I had to kill 107 monsters was at 0 this time.
So I killed another Greater demon and compared the full widget print again, with only 1 difference this time.
It was something like 87468294 to 87475946.
Now what I want to know;
• Why did it find the amount of monsters I had to kill when I was on a Black demon task, but not when I was on a Greater demon task?
• Should I be looking at widgets for this? Or am I doing something stupid now?
• The widget only displayed the amount of monsters to kill, I couldn't find anything saying the name of the monster I had to kill. Any leads where I can find those?
Any help is really appericiated! I went from figuring out how to talk with NPCs to figuring out how to check invisible data, so I'm kind of confused here :p
I've always been wondering how to find your current slayer task using reflection, so I decided to read up on the advanced tutorial.
Considering it's no NPC, Item or Object, but you can still retrieve data from it (that's what the tutorial says) it should be a widget.
Following the tutorial step by step, I managed to print all the widgets. Killed a slayer monster and checked it again. Beautiful!
There were 2 changes, one that probably doesn't have anything to do with it, and the other which probably does.
So yeah, the Widget's number changed from 107 to 106, but then I canceled my slayer task, got a new one and checked it again.
This time the task was 125 Greater demons, but the Widget that showed I had to kill 107 monsters was at 0 this time.
So I killed another Greater demon and compared the full widget print again, with only 1 difference this time.
It was something like 87468294 to 87475946.
Now what I want to know;
• Why did it find the amount of monsters I had to kill when I was on a Black demon task, but not when I was on a Greater demon task?
• Should I be looking at widgets for this? Or am I doing something stupid now?
• The widget only displayed the amount of monsters to kill, I couldn't find anything saying the name of the monster I had to kill. Any leads where I can find those?
Any help is really appericiated! I went from figuring out how to talk with NPCs to figuring out how to check invisible data, so I'm kind of confused here :p