| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| has anyone ever made an AI? https://mail.black-squirrel.com/viewtopic.php?f=15&t=18283 |
Page 1 of 1 |
| Author: | Space Cowboy [ Fri Dec 22, 2006 5:33 am ] |
| Post subject: | |
Has anyone tried to make a script that tries to win with no outside user intervention? |
|
| Author: | Promethius [ Fri Dec 22, 2006 6:52 am ] |
| Post subject: | |
There are scripts that are close, however running AFK you would die. Players adapt in endless ways and would eventually figure out your AI and SD you. Some players run world trade/steal scripts AFK and that is a sure way to die. I have seen players run scripts that warp into dock to refurb their ships (stealing, fueling, or alien capping) thinking that their macros would keep them safe - they don't when it is done by an AFK script. |
|
| Author: | Cerne [ Fri Dec 22, 2006 10:51 pm ] |
| Post subject: | |
Speaking of which what is the simplest bot to use with say 25 maxed SBB ports and a mobile planet. We are in a big bubble and I am doing by hand with _ck_planet_nego.cts and _ck_buydown.cts |
|
| Author: | Promethius [ Sat Dec 23, 2006 3:37 am ] |
| Post subject: | |
Cernnunos wrote: Speaking of which what is the simplest bot to use with say 25 maxed SBB ports and a mobile planet. We are in a big bubble and I am doing by hand with _ck_planet_nego.cts and _ck_buydown.cts Sorry I don't know of the simplest bot to use for this but a very simple (no error checking) outline of a script would be: # get sectors - either by entry or reading a file echo "*Enter sectors seperated by a space" getConsoleInput $sectorList # init variables to be used for the gosubs # setup a loop to move through the sectors :loopStart # get the sector to warp to setVar $i 1 getword $sectorList $tradeSector $i while ($tradeSector > 0) # warp to sector send "p" $tradeSector "*y" # gosub to set CK's variables gosub :loadBuydown load "_ck_buydown.cts" # setup a waitfor for the ending text waitfor "whatever the text is" # gosub to setup nego vars gosub :loadSell load "_ck_planet_nego.cts" # another waitfor waitfor "whatever this text is" add $i 1 getword $sectorList $tradeSector $i end # add commands to go "home" halt #------- gosubs :loadBuydown setVar $_CK_BUYDOWN_FUELROUNDS $CKBUYDOWNFUEL setVar $_CK_BUYDOWN_ORGROUNDS $ckbuydownorg setVar $_CK_BUYDOWN_EQUIPROUNDS $CKBUYDOWNEQUIP setVar $_CK_BUYDOWN_MODE $ckbuydownmode saveVar $_CK_BUYDOWN_FUELROUNDS saveVar $_CK_BUYDOWN_ORGROUNDS saveVar $_CK_BUYDOWN_EQUIPROUNDS saveVar $_CK_BUYDOWN_MODE return :loadSell setVar $_CK_PNEGO_FUELTOSELL $ckpnegofuel setVar $_CK_PNEGO_ORGTOSELL $ckpnegoOrg setVar $_CK_PNEGO_EQUIPTOSELL $ckpnegoEquip saveVar $_CK_PNEGO_FUELTOSELL saveVar $_CK_PNEGO_ORGTOSELL saveVar $_CK_PNEGO_EQUIPTOSELL return |
|
| Author: | Cerne [ Sat Dec 23, 2006 3:53 am ] |
| Post subject: | |
Prom, I just wrote one without the loop. And I was coming here to ask how to loop the same 9 lines while pulling the sectors from a file. Thanks for the loop structure. I will get it into my script. Ideally I would like to look into the twx database, find all off the SBB ports that are fully upgraded, read the sectors into a file, read the file into the script. Cernnunos PS: With your help I came up with something good for me and it works like a charm. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|