How Would i Make A Script Wield my arrows that i pick up?
Edit : im a new scripter and wanna learn to scrippt and im attempting my autofighter + ranger
How Would i Make A Script Wield my arrows that i pick up?
Edit : im a new scripter and wanna learn to scrippt and im attempting my autofighter + ranger
Umm,, I would try to
I think.. Im not even sure if I used Findcolor right, I always wait for scar to pop up the thing that tells you what needs to be in the brackets,,SCAR Code:Findcolor(x,y,ArrowColor,MIX1,MIY1,MIX2,MIY2)
Otherwise, Make a DTM of the arrows in ur invy and then use
SCAR Code:If FindDTM(Whatever Goes in Here) then
Mouse(x,y,1,1,False)
ChooseOption(x,y,'Wield') // Or whatever it says on the arrows when you want to weild it..
That may confuse him, and for the color thing, you need if(FindColor(x,y,color,coords1,coords1,coords2,coo rds2))then
begin
Mouse(x,y,2,2,true);
end;
like that pretty much. when you left click on the arrows, it doesn't use them, it weilds them so that makes it even more easy. DTMs may confuse him since he is new, so I would suggest using colors, then learning DTMs from yohojo's DTM tutorial later.
it still wont wield is there any specific code to give em that finds them thens wields them in inv? if so thankyou sorry im not that good at scripting but im actually proud of how good im doing so far.
SCAR Code:if(FindColor(x,y,color,coords1,coords1,coords2,coo rds2))then
begin
Mouse(x,y,2,2,true);
end;
If you put the color of the arrowhead or something in for color, and put MIX1,MIY1,MIX2,MIY2 in for the coors part, it should look for the color inside the main inventory,,
Thanks alot!
Stop trying to steal my glory !!!
![]()
![]()
ill play it fair Thanks Jad! Thanks Garrett
you will run into problems if you have other items of the same color in your inventory.
If you need help with DTM's PM and I can help. First, read theTUT's, they are very helpful. I think you will need a couple DTMs because they are different depending on how many arrows you have in your inventory.
good luck,
mikev
“Life is a goldmine, exploit it.” ~M. K. Soni
www.sea4yourselves.com
You can also use BitmapMasks. I believe there are some in the SRL include (somewhere in the misc. folder).
What if he did something like this...
SCAR Code:repeat
if(FindColor(x,y,color,MIX1,MIY1,MIX2,MIY2))then
begin
MMouse(x,y,1,1)
wait(200 + random (100))
until (IsUpText('Arrow')
Mouse(x,y,2,2,true);
end;
So that it would keep looking for the color until it finds the uptext Arrow, Then it clicks on it?
There are currently 1 users browsing this thread. (0 members and 1 guests)