Author Topic: [V4 , Pascal] [UO:R FS] dxrom's Lockpicking Trainer  (Read 3803 times)

0 Members and 1 Guest are viewing this topic.

Offline dxromTopic starter

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
[V4 , Pascal] [UO:R FS] dxrom's Lockpicking Trainer
« on: October 11, 2012, 11:43:09 AM »
0
Another script I whipped up real quick, lock picking trainer.

NOTE: This does not yet have an option to refill picks as I am buying them when I need them. However it will not run when you are out of picks.

Code: [Select]
Program Lockpicking;

const
key = //ID of the key to relock the chest
chest = //ID of the lockable chest to pick
pick = $14FC;

var
ctime : TDateTime;

procedure lock;
begin
  ClearJournal;
  UseObject(key);
  WaitTargetObject(chest);
  WaitJournalLine(Now,'You lock it',1000);
  Wait(1000);
end;

begin
 While not Dead do
 begin
 While GetQuantity(FindTypeEx(pick,$FFFF,Backpack,false)) > 0 do
 begin
 UseType(pick,$FFFF);
 WaitForTarget(1000);
 if TargetPresent then
  begin
  ClearJournal;
  TargetToObject(chest);
  wait(500);
  end;
 WaitJournalLine(Now,'The lock quickly yields to your skill|You are unable to pick the lock',3000);
 wait(500);
 if (InJournalBetweenTimes('This does not appear to be locked|The lock quickly yields to your skill', ctime, Now)<>-1) then
  begin
  lock;
  end;
 end;
 end;
end.
« Last Edit: October 10, 2013, 09:33:59 PM by dxrom »



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Tags: