TomTuff
2010-11-19 22:36:29
I need to cast the Teleport to Varrock spell via reflection. How do i go about this?
Thanks :)
Thanks :)
2010-11-19 22:36:29
2010-11-19 22:48:41
2010-11-20 00:09:29
From: cstrike
So far AFAIK there's not a set way to do this. What you can do is check with some textures to see if the texture ID is good when you want to teleport, then just throw a Mouse (x,y,…); at it :)
2010-11-20 00:48:35
From: TomTuff
elaborate on textures?
2010-11-20 04:34:32
2010-11-20 22:20:22
2010-11-21 09:49:03
From: NCDS
With multiple non-reflection ways of doing this, why do you seek a way to do it with reflection?
Note: I'm not down talking anything, just curious.
2010-11-22 09:12:11
2010-11-22 15:42:20
From: Bad Boy JH
if we can get the position of main interface through that hook, then get the relative position in terms of that interface then add the X and Y values that would work, however I don't know if that hook could do that…
On a side note Naike, I would be more than willing to help you guys and provide some extra manpower, however I know absolutely no java…So I'm probably not much help at all…
2010-11-22 17:06:58
From: Naike
I have zero java knowledge.
2010-11-22 17:51:26
2010-11-22 17:56:22
From: cstrike
I have a really crap knowledge of java. Can make system.out.println('Hello World!'); (and its probably quotation marks), and some loops, but that's all
2010-11-22 18:48:18
2010-11-22 19:08:05
From: Bad Boy JH
OK, I though all that hooks and stuff was java based, perhaps I can be of some assistance then…
2010-11-26 17:39:03
procedure HighAlch();
begin
if MSHighAlch > 500 then
exit;
MSHighAlch := 2000;
if GetCurrentTab <> 28 then
GameTab(28);
ClickBox(HighAlchemy,true);
Sleep(300+random(150));
ClickBox(InvBox(AlchItem.slot),true);
end; 2010-11-27 18:35:25
From: weezy
Why do you need it to be based on reflection, you need reflection for things such as character movement across the map, but using color for such thing would actually make it more viable as you wouldn't need to update hooks and colors stay the same for the most part.
Here is how I cast my spells…
procedure HighAlch();
begin
if MSHighAlch > 500 then
exit;
MSHighAlch := 2000;
if GetCurrentTab <> 28 then
GameTab(28);
ClickBox(HighAlchemy,true);
Sleep(300+random(150));
ClickBox(InvBox(AlchItem.slot),true);
end;
This method simply has a box for spell locations and uses ClickBox function to click it, you could also use things such as DTM's, color recognition…