Someone modified my original procedure, and it changed it into an array. I get an error when I use it. I'll attach the script. The procedure is Fight.
Thank you
firstly, NEVER declare x and y as variables in your scripts, its almost always used in an include and will create a duplicate variable error, im still looking at the script so ill get back to you in a few minutes re: fixing it.
edit: in the procedure "walk" you dont have enough end; statements.
2nd edit: you didnt put the x,y coords for "chooseoption" in.
3rd edit: i dont really know much about the chooseoption procedure(im guessing its srl)
however i believe it incorporates a mouse movement to the x,y location, so for this part of your script:
Mouse(x, y, 1, 3, false);
ChooseOption('ttack');
the mouse command is redundant, i changed it to(note: i also changed the variables using the edit>replace tool so it wouldnt conflict with includes)
ChooseOption(xx,yy,'ttack');
note: when ive finished fixing this script ill re-upload it and you can compare the 2 to see what you did wrong, ill list most of them here.
LAST EDIT:
all finished, here is your working script
note: i didnt test it in game.
As a side not, X and Y are not global variables in SRL, so you are right in declaring them if you want to use them, HairyDuncan2
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
You are using an old version of SRL (3.81 which is auto downloaded through SCAR). Download SRL 4 beta from this site and install that, otherwise he'll be getting errors when he tries compiling the script.
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
oh alright, sorry about that
regardless, that script will work anyways as i only changed the name of a few variables as well as minor syntax errors and redundancy errors.
unless chooseoption has been changed?
yup chooseoption has also been changed
in that case, completely disregard that script, ill fix it for you tomorrow, gotta go sleep now.
kewl idea
Ive made the script compile for you, test it to make sure it is still working.
I have also added some SRL Offical Scripting Standards to it.
Good job on script and good luck.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
Mate, your a lifesaver. Thanks alot. Means heaps.
Sorry about the standards. I'm trying to learn them. To me they're even harder then learning to script. I'll be right.
It worked exactly as it should've.
Did you identify the problem? Just curious, it doesn't really matter.
Thanks again.
![]()
![]()
![]()
![]()
No problem,
SCAR Code:ChooseOption(xx,yy,'ttack');
Was one of your problems, you were using an old version of the function.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
There are currently 1 users browsing this thread. (0 members and 1 guests)