View unanswered posts | View active topics It is currently Tue Apr 16, 2024 12:51 am



Reply to topic  [ 3 posts ] 
 limpet tracker 
Author Message
Chief Warrant Officer

Joined: Tue Jan 01, 2008 8:08 pm
Posts: 193
Unread post limpet tracker
can anyone suggest a script that runs in the background waiting for a limpet hit.
when the enemy picks up the limpet, the limpet tracker polls my limpets in play... say about every second or two and logs to file. I could review the results and see where the limpet has been and for how long.
presently i am using a manual limpet tracker on a hot key. I then review my scroll back buffer to get the information.


Mon Oct 20, 2014 9:39 pm
Profile
Chief Warrant Officer

Joined: Sat Jul 14, 2012 6:32 pm
Posts: 104
Unread post Re: limpet tracker
Mombot has a limpdrop (_LDROP I think) mode under Offense category.

Don't know if it's particularly good, but I have been able to get a kill using it when all other methods were failing.

Here's the source in case you want to take a peek or make some changes:

Code:
loadVar $bot_name
loadVar $user_command_line
loadVar $parm1
loadVar $parm2
loadVar $parm3
loadVar $parm4
loadVar $parm5
loadVar $parm6
loadVar $parm7
loadVar $parm8
setArray $dropSector 1000



getWordPos $user_command_line $pos "direct"
if ($pos > 0)
   setVar $direct TRUE
else
   setVar $direct FALSE
end
      
# ======================     START LIMP DROPPER (LDROP) SUBROUTINE    ==========================
:ldrop_start
   isNumber $test $parm1
   if ($test = TRUE)
      setVar $delay $parm1
   else
      setVar $delay 0
   end
   gosub :quikstats~quikstats
   setVar $startingLocation $quikstats~CURRENT_PROMPT
   if ($startingLocation <> "Citadel")
      send "'{" $bot_name "} - Must start from Citadel*"
      halt
   end
   send "q"
   gosub :planetinfo~getPlanetInfo
   send "q"
   getWordPos $user_command_line $pos "kill"
   if ($pos > 0)
      setVar $kill TRUE
      setVar $targeting~PLANET $planetinfo~PLANET
      gosub :targeting~initialize_targeting
   else
      setVar $kill FALSE
   end
   
   setvar $home $quikstats~CURRENT_SECTOR

   :ldrop_re_scan
      setvar $i 0
      setvar $r 0

   :ldrop_scan
      killalltriggers
      send "q q q * k2"
      waitfor "Activated  Limpet  Scan"
      settextlinetrigger corp_limp  :ldrop_corp_limp "Corporate"
      settextlinetrigger pers_limp :ldrop_pers_limp "Personal "
      settextlinetrigger no_limp :ldrop_no_limp "No Active Limpet"
      settexttrigger lets_move :ldrop_re_scan "Command [TL="
      pause

   :ldrop_corp_limp
      add $i 1
      setVar $temp $dropSector[$i]
      getword CURRENTLINE $dropSector[$i] 1
      if ($temp <> 0)
         if ($dropSector[$i] <> $temp)
            getSectorParameter $dropSector[$i] "FIGSEC" $isFigged
            if ($isFigged)
               if ($direct)
                  setVar $adjsec $dropSector[$i]
                  goto :dropToSector
               else
                  goto :ldrop_re_scan
               end
            end
            goto :ldrop_lets_move
         end
      end
      settextlinetrigger corp_limp  :ldrop_corp_limp "Corporate"
      pause
   
   :ldrop_pers_limp
      add $i 1
      setVar $temp $dropSector[$i]
      getword CURRENTLINE $dropSector[$i] 1
      if ($temp <> 0)
         if ($dropSector[$i] <> $temp)
            getSectorParameter $dropSector[$i] "FIGSEC" $isFigged
            if ($isFigged)
               if ($direct)
                  setVar $adjsec $dropSector[$i]
                  goto :dropToSector
               else
                  goto :ldrop_re_scan
               end
            end
            goto :ldrop_lets_move
         end
      end
      settextlinetrigger pers_limp :ldrop_pers_limp "Personal"
      pause

   :ldrop_no_limp
      killalltriggers
      goto :ldrop_scan

   :ldrop_lets_move
      killalltriggers
      #gosub :turnOnAnsi
      gosub :ldrop_get_adj
   :dropToSector
      killalltriggers
      if ($delay > 0)
         setDelayTrigger delay_drop :go_go_go $delay
         pause
      end
   :go_go_go
      send "l "&$planetinfo~PLANET&"* cp "&$adjsec&"*y"
      settextlinetrigger no_fig :ldrop_no_fig "Your own fighters must be in the destination"
      settextlinetrigger in_sector :ldrop_in_sector "-=-=-=- Planetary TransWarp Drive Engaged! -=-=-=-"
      pause

   :ldrop_no_fig
      killtrigger in_sector
      send "'{" $bot_name "} - No Adjacent fig in drop sector*"
      goto :ldrop_scan

   :ldrop_in_sector
      killalltriggers
      if ($kill)
         gosub :targeting~scanit_cit_kill
      else
         send "s* "
      end
      halt

   :ldrop_return_home
      send "p "&$home&"* "
      goto :ldrop_scan

   :ldrop_get_adj
      setVar $adjsec 0
      setVar $s 1
      while (SECTOR.WARPS[$dropSector[$i]][$s] > 0)
         setVar $checkSector SECTOR.WARPS[$dropSector[$i]][$s]
         getSectorParameter $checkSector "FIGSEC" $isFigged
         if ($isFigged)
            setVar $adjsec $checkSector
            return
         end
         add $s 1
      end
      goto :ldrop_re_scan
      
   return
# ======================     END LIMP DROPPER (LDROP) SUBROUTINE    ==========================




include "C:\Documents and Settings\Owner.CRC-Software\Desktop\TWXProxy204b\scripts\MOMBot\botIncludes\quikstats"
include "C:\Documents and Settings\Owner.CRC-Software\Desktop\TWXProxy204b\scripts\MOMBot\botIncludes\planetinfo"
include "C:\Documents and Settings\Owner.CRC-Software\Desktop\TWXProxy204b\scripts\MOMBot\botIncludes\targeting"
include "C:\Documents and Settings\Owner.CRC-Software\Desktop\TWXProxy204b\scripts\MOMBot\botIncludes\shipstats"

_________________
"TW: A proud tradition of...change is the only constant."

-Val


Sat Oct 25, 2014 9:37 am
Profile
Warrant Officer
User avatar

Joined: Thu May 09, 2013 2:21 pm
Posts: 73
Unread post Re: limpet tracker
Z-Bot has that. "radar on" will continuously scan your active limp list but is only good if you have corpies because it will send any changes over SS and continue to scan.

_________________
-Zoom

Zoom's Team Speak3 Server @ ts3server://vs26.tserverhq.com:7214
TradeWars2002: The Basics @ http://playtwars.altervista.org


Sun Nov 02, 2014 5:19 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.