SRL Archive - OSR Help

New Script new scripter Need Help


kevin33

2011-12-18 20:14:46

Alright so I plan on making a bone pick up and banking script in the next few days if I am not busy. I am not very good when it comes to this whole scripting business so I am posting this for help. Yes, I have read the tuts and things but I still dont really understand many things. I understand the basics in building say a power woodcutter or miner but when you throw in banking/walking, I dont know what to do. I meagerly started today but I dont know really where to start. I am going to need some extensive help with this script if I choose to procede and so I am looking for someone who can teach me what to do and dedicate some time to help me make it. My first question is where would I begin like I can show you what I have so far but so far I have just put random things together. Im definitely not on track but I would like to make this script the best it can be something I cannot do alone. So if someone could show me how to start and teach me how to like make the character walk using functions and things in the script, I would greatly appreciate it. I was just snowballing what I have based on the location Al Kharid for warriors but if anyone has a better location where a lot of people like to hang out and kill NPC's I will use it.
Please Help I know its sad. A lot needs to be done. I appreciate any help u can provide.

What I have:

program BonePickNBank;

{$DEFINE SMART}
{$i SRL\SRL.scar}
{$i SRL\SRL\Misc\Debug.SCAR}
{$i SRL\SRL\Misc\Stats.simba}
{$i srl/srl/skill/prayer.scar}

Const
SRLStats_Username = '';// Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
BreakEvery = 180; //How Many Minutes To Break After
BreakFor = 5; //How Long To Break For
Version = '1.0b';
NumbOfPlayers= 1; //How many players are you using
StartPlayer= 0; //Player to start auoting with! (0 means first char)



procedure DeclarePlayers;
Var i:integer;
Begin
NumberOfPlayers(1);
CurrentPlayer := 0;
For I := 0 to (1-1) Do
Players.BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

With Players[0] Do
Begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
End;

End;


Function CheckAndClick(UpText:String; X,Y:Integer; Stronger:Boolean):Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5000) Then
Begin
GetMousePos(x, y);
If Stronger Then
Begin
Mouse(X, Y, 0, 0, False);
Result:=WaitOption('tta', 3000)
End Else
Begin
Mouse(x, y, 0, 0,True);
Wait(100+Random(50));
FFlag(0);
End;
End;
End;



begin
end.

Austintheman

2011-12-18 20:41:33

Hey, sorry I can't help, but to help other's who can, add Simba tags around the script :P

Best of luck man.

kevin33

2011-12-18 21:59:17

From: jamesj1
Hey, sorry I can't help, but to help other's who can, add Simba tags around the script :P

Best of luck man.


Thanks for the luck. I will most definitely need it.
Anybody? Please

Camaro'

2011-12-18 22:53:38

Use
 tags next time ;)

[simba]

program BonePickNBank;

{$DEFINE SMART}
{$i SRL\SRL.scar}
{$i SRL\SRL\Misc\Debug.SCAR}
{$i SRL\SRL\Misc\Stats.simba}
{$i srl/srl/skill/prayer.scar}

Const
SRLStats_Username = '';// Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
BreakEvery = 180; //How Many Minutes To Break After
BreakFor = 5; //How Long To Break For
Version = '1.0b';
NumbOfPlayers= 1; //How many players are you using
StartPlayer= 0; //Player to start auoting with! (0 means first char)



procedure DeclarePlayers;
Var i:integer;
Begin
NumberOfPlayers(1);
CurrentPlayer := 0;
For I := 0 to (1-1) Do
Players[i].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

With Players[0] Do
Begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
End;

End;


Function CheckAndClick(UpText:String; X,Y:Integer; Stronger:Boolean):Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5000) Then
Begin
GetMousePos(x, y);
If Stronger Then
Begin
Mouse(X, Y, 0, 0, False);
Result:=WaitOption('tta', 3000)
End Else
Begin
Mouse(x, y, 0, 0,True);
Wait(100+Random(50));
FFlag(0);
End;
End;
End;



begin
end.


The last begin/end. is the loop, and that will get called once when the script runs. I don't have time to explain that much but I suggest reading this tutorial http://villavu.com/forum/showthread.php?t=58935&highlight=progress+report

kevin33

2011-12-18 23:13:08

[QUOTE=Camaro';865537]Use [simba ] tags next time ;)

[simba]

program BonePickNBank;

{$DEFINE SMART}
{$i SRL\SRL.scar}
{$i SRL\SRL\Misc\Debug.SCAR}
{$i SRL\SRL\Misc\Stats.simba}
{$i srl/srl/skill/prayer.scar}

Const
SRLStats_Username = '';// Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
BreakEvery = 180; //How Many Minutes To Break After
BreakFor = 5; //How Long To Break For
Version = '1.0b';
NumbOfPlayers= 1; //How many players are you using
StartPlayer= 0; //Player to start auoting with! (0 means first char)



procedure DeclarePlayers;
Var i:integer;
Begin
NumberOfPlayers(1);
CurrentPlayer := 0;
For I := 0 to (1-1) Do
Players.BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

With Players[0] Do
Begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
End;

End;


Function CheckAndClick(UpText:String; X,Y:Integer; Stronger:Boolean):Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5000) Then
Begin
GetMousePos(x, y);
If Stronger Then
Begin
Mouse(X, Y, 0, 0, False);
Result:=WaitOption('tta', 3000)
End Else
Begin
Mouse(x, y, 0, 0,True);
Wait(100+Random(50));
FFlag(0);
End;
End;
End;



begin
end.



The last begin/end. is the loop, and that will get called once when the script runs. I don't have time to explain that much but I suggest reading this tutorial http://villavu.com/forum/showthread.php?t=58935&highlight=progress+report

Sorry didnt know that was so important. And as I said I have read the tuts a few times but I still have difficulty comprehending it. I am not very old and I have absolutely 0 experience in the field of scripting or programming. Thats why I created this thread for guidance on scripting in general and for more specifically help in creating my script. I dont know what to start with. I would like to learn how to do these things so I can be more self sufficient. I am asking someone to make the start of the script better so I can learn and then guide me afterwards on how to develop the script furthermore to actually complete the function I intend it to do.

nickrules

2011-12-18 23:24:26

http://villavu.com/forum/showthread.php?t=67435

I used to use this all the time to fix errors. Should help you too - though it is rather old, it shouldn't be outdated.

http://villavu.com/forum/showthread.php?t=58935
is a good general tutorial, as posted above.

http://villavu.com/forum/showthread.php?t=50889
is a good tutorial for walking.

kevin33

2011-12-18 23:30:49

From: nickrules
http://villavu.com/forum/showthread.php?t=67435

I used to use this all the time to fix errors. Should help you too - though it is rather old, it shouldn't be outdated.

http://villavu.com/forum/showthread.php?t=58935
is a good general tutorial, as posted above.

http://villavu.com/forum/showthread.php?t=50889
is a good tutorial for walking.


Ty I could not for the life of me find where to script walking. Will definitely look into this tomorrow. Needed it to walk from bank to the al kharid castle, then back, and repeat. Are the beginnings of the script decent? Anything anyone can add to make it better because it is pretty bare?