Floor66
2009-03-04 10:42:11
What does this do?!?
- You have to set your character in a calm PvP hotSpot (i.e: in a house in ardougne or something.
.. Then the script will stay logged in all the time so your DP ("PvP Drop Potential") goes up.
.. The longer the better drops!
Program GetSomeDP;
//Credits:
//Me (Floor66), Penguin
{.include SRL/SRL/Misc/Smart.Scar}
{.include SRL\SRL.scar}
{.include SRL\SRL\Skill\Prayer.scar}
Var
LastAnti, Running, TabDTM, HPLvl, CurrHP : Integer;
S : String;
Const
TimeToStay = 0; //Set time in seconds. 0 = infinite
UseTele = False; //Tele if attacked?
FlipOnProt = True; //Turn on "protect item" when attacked (before teleporting)
World = 21; //What World?
Member = False; // P2p = True F2p = False
Signed = False; // Signed Applet = True. Unsigned Applet = False.
Procedure DeclarePlayers;
Begin
CurrentPlayer := 0; // Starting player
HowManyPlayers := 1; // How many players in total?
NumberOfPlayers(HowManyPlayers);
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // Nickname, 3 - 4 letters of username
Players[0].Active := True; // Use this player?
End;
{*******************************************************************************
Function TimePassed(TimeMarker, Passed : Integer): Boolean;
By: Floor66
Description: Returns wether the time "Passed" has passed since "TimeMarker" was
marked.
*******************************************************************************}
Function TimePassed(TimeMarker, Passed : Integer): Boolean;
Begin
Result := ((GetSystemTime - TimeMarker) >= Passed);
End;
Procedure Anti;
Begin
MarkTime(LastAnti);
Case Random(250) Of
0..4: RandomMovement;
5, 6: GameTab(1 + Random(10));
7..10: HoverSkill('random', False);
11..15: DoEmote(Random(11));
16..25: Wait(Random(1001) + Random(555));
End;
End;
Function TeleOut: Boolean;
Var
x, y : Integer;
Begin
If Not LoggedIn Then
Exit;
If Not UseTele Then
Exit;
If FlipOnProt Then
Begin
GameTab(6);
ClickPrayer('13', True);
End;
GameTab(4);
If FindDTM(TabDTM, x, y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Mouse(x, y, 3, 3, True);
WriteLn('Teleported out.');
Result := True;
End;
End;
Begin
SmartSetupEx(World, Member, Signed, False);
SetTargetDC(SmartGetDC);
SetupSRL;
AllowPVP := True;
ClearDebug;
DeclarePlayers;
TabDTM := DTMFromString('78DA637464626078CA8002FA376D61D061646' +
'0002286FF40C0180054F386010D30229140DA14A8E60901351640' +
'359F08A87121428D2F50CD47026A406E7E45849ABB44A8798A5F0' +
'D0077301100');
ActivateClient;
MarkTime(Running);
If Not LoggedIn Then
LoginPlayer;
HPLvl := GetSkillLevel('hitpoints');
Repeat
Disguise(TimeRunning);
If (Random(250) < 5) Or TimePassed(LastAnti, RandomRange(120000, 240000)) Then
Anti;
FindNormalRandoms;
CurrHP := GetMMLevels('hp', S);
If CurrHP <> HPLvl Then
If TeleOut Then
Break;
If TimeToStay <> 0 Then
If TimeFromMark(Running) >= (TimeToStay * 1000) Then
Break;
Wait(10 + Random(5));
Until(False);
Disguise(TimeRunning);
Logout;
End.It's still in beta and just includes:
- Set how long to get DP
- Anti-Logout:
- A random chance at doing AntiLogout procedures
- If no AntiLogout has been done in a certain period of time, do it.
- *NEW* TELE-OUT
- *NEW* When teleporting; put on PROTECT ITEM
Have fun!

