| Author |
Message |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Status Window Script for ZOC and TWX
Does anyone know of a status window script to use with ZOC and TWX that shows ship status, turns left, etc?
H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Mon Aug 09, 2010 4:38 pm |
|
 |
|
Kewlbreeze
Commander
Joined: Sun Aug 27, 2006 2:00 am Posts: 1419 Location: USA
|
 Re: Status Window Script for ZOC and TWX
YUP
_________________

 Founding Member of: Flying Ace's
|
| Mon Aug 09, 2010 4:40 pm |
|
 |
|
Timberwolf
Lieutenant J.G.
Joined: Mon Feb 26, 2001 3:00 am Posts: 441 Location: In your girlfriend's bed
|
 Re: Status Window Script for ZOC and TWX
Helix, I thought the Mombot's QSS command does that. Is that what you are looking for?
|
| Mon Aug 09, 2010 4:45 pm |
|
 |
|
Kewlbreeze
Commander
Joined: Sun Aug 27, 2006 2:00 am Posts: 1419 Location: USA
|
 Re: Status Window Script for ZOC and TWX
Timberwolf wrote: Helix, I thought the Mombot's QSS command does that. Is that what you are looking for? Think he's talking about something similar to swaths real-time updated info that is displayed on the left side of the swath screen, but he just broke his so he’s looking for alternatives.
_________________

 Founding Member of: Flying Ace's
|
| Mon Aug 09, 2010 4:47 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: Status Window Script for ZOC and TWX
I have a twx script that will do that. I think it could still use some work. I can paste the code if you would like, but it is one of my first scripts I think and as with all my code really ugly. I am away from my home computer and won't get back until around midnight CST.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Mon Aug 09, 2010 5:05 pm |
|
 |
|
Daala
Gameop
Joined: Tue Oct 10, 2006 2:00 am Posts: 112 Location: In my bubble...
|
 Re: Status Window Script for ZOC and TWX
Helix, will this work? If I recall correctly, credit to Promethius for this script. I find it very handy. Code: # TW Player Stats for use with ZOC
# get current sector info
# Turns remaining
# experience
# credits on-hand
# =-=-= Ship =-=-=
# hold info # Fighters # TPW # eProbes # Disruptors # PTorps # Mines - aramid and limpet # gen Torps # cloaks # twarp Class Dist # scanners # class 0 locations # stardock location
:initWindow setVar $window "" Window STATS 380 530 "IMPStats v.1 ["&GAMENAME&"]" ON_TOP
getWord CURRENTLINE $prompt 1 if ($prompt = "Command") or ($prompt = "Citadel") send "/" send "i" goto :dataType else clientmessage "You must start this script at the Command or Citadel prompt." halt end
:setWindowContent killalltriggers setVar $window "*" # setVar $window $window & " Trader: " & $trader & "*" setVar $window $window & " Sector : " & $curSector & "*" setVar $window $window & " Exp : " & $exp & "*" setVar $window $window & " Align : " & $align & "*" setVar $window $window & " Credits : " & $credits & "*" setVar $window $window & " Turns : " & $turns & "*" setVar $window $window & " Corp : " & $Corp & "*" setVar $window $window & " -------------------------------*" setVar $window $window & " Ship : " & $ship & "*" setVar $window $window & " TPW : " & $tpw & "*" setVar $window $window & " Fighters: " & $fighters & "*" setVar $window $window & " Shields : " & $shields & "*" setVar $window $window & " -------------------------------*" setVar $window $window & " Holds : " & $holds & "*" setVar $window $window & " Ore : " & $ore & "*" setVar $window $window & " Organics: " & $org & "*" setVar $window $window & " Equip : " & $equ & "*" setVar $window $window & " Colos : " & $col & "*" setVar $window $window & " -------------------------------*" setVar $window $window & " EProbes : " & $eProbe & "*" setVar $window $window & " Ptorps : " & $ptorps & "*" setVar $window $window & " Armids : " & $aMine & "*" setVar $window $window & " Limpets : " & $lMine & "*" setVar $window $window & " GenTorp : " & $Gtorp & "*" setVar $window $window & " MDisrup : " & $MDis & "*" setVar $window $window & " P Scan : " & $PlScn & "*" setVar $window $window & " LR Scan : " & $LRS & "*" setVar $window $window & " Cloaks : " & $Cloak & "*" setVar $window $window & " Twarp : " & $tWarp & "*" setVar $window $window & " -------------------------------*"
setVar $window $window & " Rylos : " & RYLOS & "* Alpha Centauri: " & ALPHACENTAURI & "*" setVar $window $window & " StarDock: " & STARDOCK & "* *"
:updateWindow setWindowContents STATS $Window
:dataType killalltriggers setTextLineTrigger iname :info "Trader Name" setTextLineTrigger slash :slashCmd "³Turns" setTextTrigger sectorMove :sectorMove "Command [TL=" setTextLineTrigger figDeploy :figDeploy "Done. You have" setEventTrigger Fail :Fail "Connection lost" pause
:figDeploy getword CURRENTLINE $fighters 4 goto :setWindowContent
:sectorMove gettext CURRENTLINE $nsector "]:[" "] (" if ($nSector <> $curSector) setVar $curSector $nSector goto :setWindowContent else goto :dataType end
:Info killAllTriggers setTextLineTrigger iExp :iExp "Rank and Exp" setTextLineTrigger iShipInfo :iShipInfo "Ship Info" setTextLineTrigger itpw :iTurnsPerWarp "Turns to Warp" setTextLineTrigger iSector :iSector "Current Sector" setTextLineTrigger iTurns :iTurns "Turns left" setTextLineTrigger iFighters :iFighters "Fighters :" setTextLineTrigger iShields :iShields "Shield points :" # setTextLineTrigger ilMines :iLmines "Limpet Mines T2" setTextLineTrigger iMines :iAmines "Armid Mines T1" setTextLineTrigger iGtorps :iGtorps "Genesis Torps :" setTextTrigger iCmd :iCmd "Command [TL" setTextLineTrigger iCredits :iCredits "Credits :" pause
:iExp getword Currentline $exp 5 getword CURRENTLINE $align 7 getwordpos $align $pos "=" cuttext $align $align $pos 999 striptext $align "=" pause
:iShipInfo getText CURRENTLINE $ship "Info : " " Ported" pause
:iSector getword currentline $curSector 4 pause
:iTurns getword CURRENTLINE $turns 4 pause
:iTurnsPerWarp getword CURRENTLINE $tpw 5
:iFighters getword CURRENTLINE $fighters 3 pause
:iShields getword CURRENTLINE $shields 4 pause
:iAMines getword CURRENTLINE $aMine 4 pause
:iLmines getWord CURRENTLINE $lMine 4 pause
:iGtorps getWord CURRENTLINE $Gtorp 4 pause
:iCredits getWord CURRENTLINE $credits 3 pause
:iCmd goto :setWindowContent
:slashCmd :get_stats killalltriggers setvar $stats 0 :get_stats1 settextlinetrigger get_stats1 :get_stats1 "" setvar $line currentline If ($stats = 0) setvar $stats $line else mergetext $stats $line $stats end GetWordPos currentline $get_stats_end "Ship" If ($get_stats_end > 0) goto :get_stats_end end pause :get_stats_end KillTrigger get_stats1 striptext $stats " " striptext $stats "³" # striptext $stats "," mergetext $stats "END" $stats Gettext $stats $ship_Num "Ship" "Other" If ($ship_Num = "") Gettext $stats $ship_Num "Ship" "END" getlength $ship_num $ship_num_length subtract $ship_num_length 6 CutText $ship_num $ship_num 1 $ship_num_length end Gettext $stats $curSector "Sect" "Turns" Gettext $stats $turns "Turns" "Creds" Gettext $stats $credits "Creds" "Figs" Gettext $stats $fighters "Figs" "Shlds" Gettext $stats $shields "Shlds" "Hlds" Gettext $stats $holds "Hlds" "Ore" Gettext $stats $ore "Ore" "Org" Gettext $stats $Org "Org" "Equ" Gettext $stats $Equ "Equ" "Col" Gettext $stats $Col "Col" "Phot" If ($Col = "") Gettext $stats $Col "Col" "Armd" setvar $ptorps 0 else Gettext $stats $ptorps "Phot" "Armd" end Gettext $stats $Amine "Armd" "Lmpt" Gettext $stats $Lmine "Lmpt" "GTorp" Gettext $stats $Gtorp "GTorp" "TWarp" Gettext $stats $Twarp "TWarp" "Clks" Gettext $stats $Cloak "Clks" "Beacns" Gettext $stats $Beacon "Beacns" "AtmDt" Gettext $stats $AtmDt "AtmDt" "Crbo" Gettext $stats $Crbo "Crbo" "EPrb" Gettext $stats $EProbe "EPrb" "MDis" Gettext $stats $MDis "MDis" "PsPrb" Gettext $stats $PsPrb "PsPrb" "PlScn" Gettext $stats $PlScn "PlScn" "LRS" Gettext $stats $LRS "LRS" "Aln" Gettext $stats $Align "Aln" "Exp" Gettext $stats $Exp "Exp" "Corp" If ($Exp = "") Gettext $stats $Exp "Exp" "Ship" setvar $Corp 0 else Gettext $stats $Corp "Corp" "Ship" end goto :setWindowContent
:Fail halt
I use this one all the time.
|
| Mon Aug 09, 2010 5:07 pm |
|
 |
|
Daala
Gameop
Joined: Tue Oct 10, 2006 2:00 am Posts: 112 Location: In my bubble...
|
 Re: Status Window Script for ZOC and TWX
Promethius wrote: I have a twx script that will do that. I think it could still use some work. I can paste the code if you would like, but it is one of my first scripts I think and as with all my code really ugly. I am away from my home computer and won't get back until around midnight CST. I think I just posted it. I'm pretty certain this was from an earlier post you made and we grabbed it.
|
| Mon Aug 09, 2010 5:08 pm |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: Status Window Script for ZOC and TWX
Daala wrote: Promethius wrote: I have a twx script that will do that. I think it could still use some work. I can paste the code if you would like, but it is one of my first scripts I think and as with all my code really ugly. I am away from my home computer and won't get back until around midnight CST. I think I just posted it. I'm pretty certain this was from an earlier post you made and we grabbed it. Thank you. I found the original at: viewtopic.php?f=15&t=21963&p=186793&hilit=twx+zoc+window#p186793 I thought I might have uploaded the source. It also wasn't as old of a script as I thought on that version anyway.
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Mon Aug 09, 2010 5:16 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: Status Window Script for ZOC and TWX
Thanks
H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Mon Aug 09, 2010 5:44 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
 Re: Status Window Script for ZOC and TWX
Stats.com is the Mombot suppied script for that function
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Fri Oct 08, 2010 9:31 pm |
|
 |
|