Ok i decided i am going to make a draynor fisher for my first script, seems pretty basic i guess.
What form of walking to you suggest?
And once i am at the fishing spots how to i make scar find the fishing spots?
Thanx for any help
Ok i decided i am going to make a draynor fisher for my first script, seems pretty basic i guess.
What form of walking to you suggest?
And once i am at the fishing spots how to i make scar find the fishing spots?
Thanx for any help
Last edited by joshdabest01; 11-26-2009 at 11:47 AM.
use radiawalk,add breaks. just make some little script first. then add little more more more and i'm sure it will be ok![]()
RadialWalking, DDTM, find water symbol; click a bit to the right of it.
Ce ne sont que des gueux
Hey, i have taken this out of skill - fishing. It saids it find the fishing spot
Code:program New; {.include srl/srl.scar} var TPA: TPointArray; s: string; i: integer; x,y: integer; Function FindFishSpot(var X, Y: Integer; Which: string): Boolean; begin case lowercase(which) of 'harpoon': S := 'arpoon Fis'; 'cage', 'lobster': S := 'age Fis'; 'fly', 'flyfish': S := 'ure Fis'; 'rod', 'bait': S := 'ait Fis'; 'net': S := 'et Fis'; end; for i := 0 to High(TPA) do begin MMouse(TPA[i].x, TPA[i].y, 5, 5); if WaitUpText(S, 375) then begin GetMousePos(X, Y); Wait(Random(100)); Result := True; Exit; end else begin GetMousePos(X, Y); Mouse(X, Y, 0, 0, False); if WaitOptionEx(S, 'all', Nothing, 375) then begin ChooseOption('ancel'); Result := True; Exit; end; ChooseOption('ancel'); end; end; end; begin SetupSRL; FindFishSpot; end.
I am getting error:
Failed when compiling
Line 46: [Error] (20680:13): Invalid number of parameters in script
Anybody know why?
i am really trying, just starting out there are alot of things to get your head around. Thanx for the help
Do you recommend any reads for TPA?
Also would it be beta for me to use radial walk to walk from the bank to draynor fishing spot or use findsymbol? (fishing symbol)?
Edit: I remember your famous mineri always used it
Last edited by joshdabest01; 11-27-2009 at 01:29 AM.
famous, aw shucks![]()
uhm, you should start with something simple then move into TPA's, look at some tutorials such as...
A breakdown of my Powerchopper
I know your not making a powerchopper, but look at his object finding and take into account how to impliment it into your own script. Looking at other peoples fishing scripts (even some outdated ones) can help you out alot, but make sure not to copy but try to understand. Look through alot of the intermediate tutorials, and if you can't find any good TPA stuff, look in the Advanced section (I think most of them got moved there). Good luck.
Thanx for the help, well i have made this so far. Don't lol at me i wrote it all with no help and its something for me
Once i am at the fishing spot how would i find the fishing spots and click on them? this really confuses me. also notice my if, then i have not put a else in yet.how would i put in else logout?Code:program DraynorFisher; {.include SRL/SRL.scar} Const WalkingColor=803103; Procedure WalktoFish; begin if (RadialWalk(WalkingColor, 570, 558, 69, 1, 1)) then; end; Begin SetUpSRL; ActivateClient; WalktoFish; end.
umm, try using [ scar ] (no space) tags instead of [ code ] tags, but thats unrelated.
if..then statements are conditional, meaning if a condition is met then if preforms the next task(s).
so
SCAR Code:if ThisComesTrue then
TryThisToo;
if you wish to add an else then it would be...
SCAR Code:if WalkHere then FishingLoop else NextPlayer(False);
Your walking will not work because RadialWalk cannot handle static colors, it needs an autocolor to work, and most, if not all autocolors are currently broken (unless you make your own but that won't happen because its quite difficult). My suggestion would be to try to impliment FindSymbol(x, y: Integer; name: string): Boolean to find the fishing spot and walk to it.
As for finding the fishing spot, If you looked at the tut I posted for you, you could try to impliment the FindObjTPA() that he uses in the Tutorial to Find the Tree's.
This all may be still advanced for you, I would reccomend you do a massive read of the beginners section of tutorial island to get a good knowledge base before you get too ahead of yourself. Good work thoughit will all start comin along soon
FindSymbol(x, y: Integer; name: string): Boolean to find the fishing spot and walk to it.
These statements are what really confuses me ^^
x,y are obviously variables. Name: What would go there? Name of the TPA? Then what is the string? Boolean would be True?
FindObjTPA() . This would involve me making my own TPA for the fishing spot? is that correct?
I am really really trying to get a hold of it, thanx for your helpyou are helping me
![]()
you really need to take a look at some tutorials, I was merely giving you the syntax for the walking function.
would be what you want to enter. If found, the function changes the variable x and y with the co-ordinates of the Symbol (I guess thats kinda of confusing but I hope that makes sense). And FindObjTPA is described in that tutorial I showed you, I merely saying you should look into it. It doesnt require you to make a TPA or anything, the function does it all for you.SCAR Code:FindSymbol(x, y, 'fishing spot');
Hehehe, hohoho. Read a tutorial on strings, booleans, and integers. You would use it like...
SCAR Code:FindSymbol(x, y,'Valid Argument');
Booleans mean that it could return true or false.(Boolean at the end of function ex FindSymbol) Meaning you could put it in a if..then statement.
E.X. :
SCAR Code:If(FindSymbol(x, y,'Valid Argument'))then //or
If(Not(FindSymbol(x, y,'Valid Argument'))) // if it returns false
Boolean := True/False
String := Words wrapped in 'These'. Basically a statement,word or sentence.
Integer := Number
Valid arguments can be found in your Symbol.Scar under SRL/Core
Just to make it easier...
Edit: Ninjad!!!Code:Valid Arguments are: - agility - furnace - rare trees, tree - altar - gem stall - rest, resting spot - anvil - guide - sandpit - apothecary - hair dresser - saw mill - archery shop - herbalist - scimitar shop - arrow - house - shield - axe shop - hunter store - shop, store - bar - hunter training - short cut - bank - jewelery - silk stall - candle shop - kebab shop - silver stall - churn - mace shop - slayer master - clothes shop - magic shop - spice stall - cookery shop - makeover mage - spinning wheel, spin - cookery, cook - mill - staff shop - crafing shop - minigame - summoning store - dungeon - mining shop - sword shop - farming shop - pet shop - tanner - farming spot - platebody shop - training dummy - fishing shop, fish store - plateskirt shop - underground - fishing spot, fish - portal (to player owned houses) - water source, water - food shop - pottery, pot - weave - fur trader - quest - windmill![]()
Not really much clicking there hmm...
You can use the fishing symbols and the bank symbol with low symbol accuracy. You can also auto color the water and use that with radial walk or simple color finding. People really often use blindclicks in edgeville because everything else is very unstable.
Woot woot.
There are currently 1 users browsing this thread. (0 members and 1 guests)