View Full Version : Finding Graahk?
im making a nature runecrafter and i was wondering through relection would the id of the graahk be different from everyone elses and how would i get the correct graahk? i need to left click on it if i can or right click and select it from the other "Interact" options e.g
Interact Spirit graahk
Interact Spirit graahk
Interact Spirit graahk // say this one is mine but chooseoption would only click
Interact Spirit graahk // the first one
thanks
Just move away from that spot before you click on it. I'm pretty sure they all have the same ID.
pyroryan
01-17-2011, 11:50 PM
im making a nature runecrafter and i was wondering through relection would the id of the graahk be different from everyone elses and how would i get the correct graahk? i need to left click on it if i can or right click and select it from the other "Interact" options e.g
Interact Spirit graahk
Interact Spirit graahk
Interact Spirit graahk // say this one is mine but chooseoption would only click
Interact Spirit graahk // the first one
thanks
I'd agree with mormonman in that the ID would be the same (note I didn't check). However, even if they were the same, your graahk would be interacting with your character. So you can loop through all the NPCs around you and check whether any of them are interacting with you. If they are, then its your graahk. Then make sure the name is your familiar.
I'd agree with mormonman in that the ID would be the same (note I didn't check). However, even if they were the same, your graahk would be interacting with your character. So you can loop through all the NPCs around you and check whether any of them are interacting with you. If they are, then its your graahk. Then make sure the name is your familiar.
How exactly would i go doing this?
im not familiar with that part of reflection.
thanks =]
**BANNED The Man
01-18-2011, 08:21 PM
loop through:
InteractingWithMe(NPC: TNPC)
-Boom
Cigue
01-18-2011, 08:32 PM
Why don't you use color and try the one nearest to you?
Why don't you use color and try the one nearest to you?
They Pile on top of eachother so its hard to find your graahk
pyroryan
01-18-2011, 08:36 PM
Why don't you use color and try the one nearest to you?
At Castle Wars, there are like 3-6 graahks around the bank chest area. Color would have a hard time figuring out which one is yours.
loop through:
InteractingWithMe(NPC: TNPC)
-Boom
thanks =]
how would i go getting the right option from R_ChooseOption?
if the options are all the same?
thanks =]
how would i go getting the right option from R_ChooseOption?
if the options are all the same?
Thats when you should move to a different tile.
Thats when you should move to a different tile.
Im trying to do it without moving so far iv done this
i only want to move as a last choice
Function LoadInfo : Boolean;
Begin
GraahkNPC := 7363;
With GraahkCol Do
Begin
UpText := 'aah';
MaxDist := 50;
Color := 3044321;
HueMod := 0.01;
SatMod := 1.91;
LumTol := 12;
MinR := 160; MaxR := 254;
MinG := 92; MaxG := 147;
MinB := 49; MaxB := 80;
MinX := 19.17; MaxX := 52.22;
MinY := 15.62; MaxY := 42.03;
MinZ := 5.00; MaxZ := 12.77;
End;
with GraahkCol2 do
begin
UpText := 'aah';
MaxDist := 50;
Color := 12819598;
HueMod := 0.35;
SatMod := 1.62;
LumTol := 14;
MinR := 111; MaxR := 193;
MinG := 130; MaxG := 193;
MinB := 157; MaxB := 220;
MinX := 20.95; MaxX := 52.49;
MinY := 22.13; MaxY := 53.68;
MinZ := 35.49; MaxZ := 72.18;
end;
End;
Function TeleportGraahk : Boolean;
Var
P: TPoint;
FC, LC : TPoint;
Begin
Result := False;
If FindNPC(GraahkNPC, NPC) Then
Begin
FC := TileToMS(Point(NPC.Tile.x - 1, NPC.Tile.y - 1), 5);
LC := TileToMS(Point(NPC.Tile.x + 1, NPC.Tile.y + 1), 5);
End;
If FindObjRecordEx(P.x, P.y, GraahkCol, FC.X, LC.Y, LC.X, FC.Y, True, True) Then
Begin
Mouse(P.x, P.y, 4, 4, True);
Wait(500 + Random(500));
Result := (GetColor(257, 368) = 128);
End;
If Not Result Then
Begin
Mouse(707, 145, 10, 10, True);
If FindNPC(GraahkNPC, NPC) Then
Begin
FC := TileToMS(Point(NPC.Tile.x - 1, NPC.Tile.y - 1), 5);
LC := TileToMS(Point(NPC.Tile.x + 1, NPC.Tile.y + 1), 5);
End;
If FindObjRecordEx(P.x, P.y, GraahkCol2, FC.X, LC.Y, LC.X, FC.Y, True, True) Then
Begin
Mouse(P.x, P.y, 4, 4, False);
Wait(500 + Random(500));
Result := (GetColor(257, 368) = 128);
End;
End;
If Result Then
Begin
Mouse(261, 435, RandomRange(-20, 20), RandomRange(-5, 5), True);
End;
End;
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.