View unanswered posts | View active topics It is currently Mon Apr 20, 2026 9:09 pm



Reply to topic  [ 3 posts ] 
 FigHitWatch.ts and FigGridReport.ts 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post FigHitWatch.ts and FigGridReport.ts
A simple script to monitor fig hits and change the sectorparameter to false allowing an up-to-date fig report.

Does not take into acount a corpie gridding and adding sectors.

FigHitWatch.ts

Code:
# figSec parameter watch
# view variable sectorHits to see how many fig hits since script start

systemScript
setVar $sectorHits 0

:begin
  setTextLineTrigger enteredSector :enteredSector "of your fighters in sector"
  setTextLineTrigger fedDestroyed :fedDestroyed "The Federation We destroyed your"
  pause

  :enteredSector
    setTextLineTrigger enteredSector :enteredSector "of your fighters in sector"
    setVar $line CURRENTLINE & "END"
    getText $line $hit "in sector " "END"
    setSectorParameter $hit "FigSec" FALSE
    add $sectorHits 1
    pause

  :fedDestroyed
    setTextLineTrigger fedDestroyed :fedDestroyed "The Federation We destroyed your"
    getWord Currentline $hit 11
    stripText $hit "."
    setSectorParameter $hit "FigSec" FALSE
    add $sectorHits 1
    pause


Script to report grid percentage:

figGridReport.ts
Code:
# grid report

setVar $figCount 0
setVar $i 11
send "'Checking figged sector count *"
while ($i <= SECTORS)
   getSectorParameter $i "FigSec" $isFigged
   if ($isFigged)
      add $figCount 1
   end
   add $i 1
end
setVar $unFigged (sectors - $figCount)
setPrecision 4
setVar $pCent ($figCount / (SECTORS - 11))
multiply $pCent 100
setPrecision 2
multiply $pCent 1

send "'We have " $figCount " sectors figged and " $unfigged " unfigged - " $pCent  "% gridded.*"
halt

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Mon Oct 25, 2010 11:13 am
Profile ICQ
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: FigHitWatch.ts and FigGridReport.ts
Your missing the offensive trigger

settexttrigger offen :_offen "Your fighters in sector"

u have no spam filter

_________________
Coconut Telegraph (ICQ)#586137616
Team Speak3@ 220.244.125.70:9987
Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
Image
Jesus wounldn't Subspace Crawl


Mon Oct 25, 2010 1:06 pm
Profile ICQ YIM
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Re: FigHitWatch.ts and FigGridReport.ts
Parrothead wrote:
Your missing the offensive trigger

settexttrigger offen :_offen "Your fighters in sector"

u have no spam filter


Good catch on the offensive trigger. I seldom use offensive fighter settings that I worry about. The spam filter would need to be added. I haven't ran into issues with people spamming, but now that they know what the triggers are, it would be a good idea.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Mon Oct 25, 2010 3:08 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 17 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 wSTSoftware.