www.ClassicTW.com
https://mail.black-squirrel.com/

Photon Scripts
https://mail.black-squirrel.com/viewtopic.php?f=15&t=22223
Page 1 of 1

Author:  Aerotech [ Thu Jun 04, 2009 10:54 pm ]
Post subject:  Photon Scripts

I have been looking but can't find any info on getting a public script for attacking planets. I know there are variables but a general photon, land on planet.If there are none,can someone help me with writing one.

Author:  Scrat [ Fri Jun 05, 2009 4:57 am ]
Post subject:  Re: Photon Scripts

I'm guessing you're not finding one because most people just use a macro for that. Here's a generic photon, transport, move, land macro that I use:

cpy1111^Mqx 22^M ^M1111^M^M ^Ml 33^M ^M

Just replace 1111 with the sector number, 22 with the ship number (set to 0 if you aren't changing ships), and replace 33 with the planet number to land on (set to 0 if you aren't landing). If the photon duration is short (2 sec) then you'll need to optimize the macro by stripping out what you don't need.

Author:  LoneStar [ Fri Jun 05, 2009 11:13 am ]
Post subject:  Re: Photon Scripts

Code:
setVar $ATTACK_SECTOR 1234
setVar $ATTACK_PLANET 10
getword CURRENTLINE $PROMPT 1
if ($PROMPT <> "Citadel")
Echo "**Prompt Check**"
halt
end
send "S* *"
waiton "Warps to Sector(s)"
waiton "Citadel"
setVar $i 1
while (sector.warps[currentsector][$i] <> 0)
if (sector.warps[currentsector][$i] = $ATTACK_SECTOR)
   goto :Continue
end
add $i 1
end
Echo "**Attack Sector Is Not Adjacent**"
halt
:Continue
send "/"
waiton #179 & "Figs"
getText CURRENTLINE $FIGS "Figs" #179
stripText $FIGS " "
striptext $FIGS ","
isnumber $tst $FIGS
if ($tst = 0)
setVar $FIGS 0
end
if ($FIGS < 10000)
Echo "*Not a whole lot of Figs*"
halt
end
waiton #179 & "Phot"
getText CURRENTLINE $PHOTONS "Phot" #179
stripText $PHOTONS " "
isNumber $tst $PHOTONS
if ($tst = 0)
setVar $PHOTONS 0
end
if ($PHOTONS = 0)
echo "*no photons*"
halt
end
#------------------------------- now we attack
setVar $MAC ""
setVar $MAC "CV0YN" & $ATTACK_SECTOR & "* P Y " & $ATTACK_SECTOR & "* Q  Q  Q  "
setVar $MAC ($MAC & "M Z" & $ATTACK_SECTOR & "*  *  *  L Z" & #8 & $ATTACK_PLANET & "*  *  *  "
send $MAC

That's a basic, basic example of a script (off the top of my head). there are many options and senerios that this script doesn't take into consideration. so much so that you should really get proficient in scripting so that you can tweak your script(s) to handle different situations, like: using a xport ship, towing in a ship, sending N-waves, retreating and xporting out, popping planets, developing a planet to get a telepad available, furbing, and on and on..

Author:  Admin 1 [ Fri Jun 05, 2009 12:45 pm ]
Post subject:  Re: Photon Scripts

Aerotech wrote:
I have been looking but can't find any info on getting a public script for attacking planets. I know there are variables but a general photon, land on planet.If there are none,can someone help me with writing one.

the popular m0mbot has a photon land scipt built into it. PEL is the command.. i believe its bot name pel sector number planet number ..hope this helps m0m is available at grimey traders script bank

Author:  LoneStar [ Fri Jun 05, 2009 1:33 pm ]
Post subject:  Re: Photon Scripts

SG's right. M()MBot Commands:

PE - Photon Adj, Enter
PXEX - Photon Adj, Xport to Moth Ship, Enter Sector, Export Out
PELK - Photon Adj, Enter Sector, Land On Planet, Kill (send one wave)
PXELK - Photon Adj, Xport to Moth, Enter Sector, Land On Planet, Kill (send one wave)
PEX - Photon Adj, Enter Sector, Xport
PEL - Photon Adj, Enter Sector, Land
PED - Photon Adj, Enter Sector, Defend (Pop A Planet)
PXED - Photon Adj, Xport To Moth Ship, Enter Sector, Defend


these are 'invasion' commands within the MOMBot.. Much Thanks to Mind Dagger for these

Author:  Aerotech [ Sat Jun 06, 2009 12:25 am ]
Post subject:  Re: Photon Scripts

ok, I was trying to find one for reference to figure out how to write one.The macro solution would work,but I might still try a script.The M()M Bot I d/l but can't figure how to get it to work and use it.Is it beneficial for a single player?

Author:  LoneStar [ Sat Jun 06, 2009 10:12 am ]
Post subject:  Re: Photon Scripts

When you unzip the Zip file, make sure the folder structure looks something like:

C:\TWX\Scripts\Mombot
C:\TWX\Scripts\Mombot\botincludes
C:\TWX\Scripts\Mombot\Commands
C:\TWX\Scripts\Mombot\Daemons
C:\TWX\Scripts\Mombot\Help
C:\TWX\Scripts\Mombot\Modes
C:\TWX\Scripts\Mombot\Modules

find the mom_bot3_1032.ts script and run it from TWX, when at cmd prompt.

Author:  Aerotech [ Thu Jun 11, 2009 3:04 pm ]
Post subject:  Re: Photon Scripts

I will have a look at it later today. Thanks Lonestar

Author:  Aerotech [ Wed Jun 17, 2009 3:29 pm ]
Post subject:  Re: Photon Scripts

Lonestar I am using Swath and can't seem to get the commands to work on the MomBot

Author:  LoneStar [ Wed Jun 17, 2009 4:11 pm ]
Post subject:  Re: Photon Scripts

You need to be running TWX PRoxy, and connect to TWX from Swath. The bot commands (or modules), are only accessable via: SubSpace cmds ('aero holo) or from the bots command prompt (press >holo).

Author:  Aerotech [ Sat Jun 20, 2009 1:14 am ]
Post subject:  Re: Photon Scripts

I am new to using scripts,and especially bots.I can access the menu by > but I don't know the commands. I can't seem to access the menu from subspace. When I press the ? and the menu screen shows up I can't access anything.

Author:  motrax [ Thu Jul 02, 2009 10:13 pm ]
Post subject:  Re: Photon Scripts

Lonestar...pardon my ignorance but what does " waiton #179 & "Figs" " do.....more precicely what does #179 do??

Author:  Big D [ Thu Jul 02, 2009 10:28 pm ]
Post subject:  Re: Photon Scripts

motrax wrote:
Lonestar...pardon my ignorance but what does " waiton #179 & "Figs" " do.....more precicely what does #179 do??


That is the character code for the symbol between each statistic in the quick stats display I believe.

Author:  LoneStar [ Thu Jul 02, 2009 11:07 pm ]
Post subject:  Re: Photon Scripts

BigD's right. the seperator in the 'quickstats' (viewed when / is pressed in game), which is part of the Extended ASCII character set.

Code:
Sect 1│Turns 1,526│Creds 50,000│Figs 99│Shlds 0│Hlds 50│Ore 0│Org 0│Equ 0
Col 0│Phot 0│Armd 0│Lmpt 0│GTorp 0│TWarp No│Clks 0│Beacns 0│AtmDt 0│Crbo 0

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/