View unanswered posts | View active topics It is currently Tue Apr 21, 2026 7:25 am



Reply to topic  [ 6 posts ] 
 CIM 
Author Message
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post CIM
Kinda hit a roadblock in my current script endevor. I'm making a Mega Rob script which does my daily portdowns and robs automatically cause i find it tedious. My intent is to run a cim find eligable ports from the report and warp buydown/steal repeat. My roadblock involves how to obtain the cim data. Should I using a While loop? A array?

I was going to use a while loop simlar to
-------------------------
Send " ^ R "
SetVar $i 1
SetVar $Cim 1
While ($Cim < SECTORS)
SetTextLineTrigger CURRENTLINE :Cim "-"
pause
:Cim
Getword $Cim 1
Getword $Fuel 3
Getword $Org 5
Getword $Eq 7
-------------------------------

You get the point, however my issues involve that - is repeated for every buy port and position of the F/O/E changes with each sector. Any suggestions?

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Sun Nov 02, 2008 11:35 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: CIM
There is no reason to do that. Just run the CIM as a macro, as long as you have twxproxy set to record data it will automatically parse and pickup the values, then put them in the various sector arrays. All you have to do is work w/ the sector data.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sun Nov 02, 2008 11:55 pm
Profile ICQ WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: CIM
Singularity wrote:
There is no reason to do that. Just run the CIM as a macro, as long as you have twxproxy set to record data it will automatically parse and pickup the values, then put them in the various sector arrays. All you have to do is work w/ the sector data.


Heh, didn't even think of that LOL.. Thanks :-)

So something along the lines of
---------
Setvar $i 1
While ($i <Sectors)
If PORT.BUYEQUIP[$i] = TRUE
GetSector $i.Port.Equip $Amount
end
----------
etc. Would work?

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Mon Nov 03, 2008 12:15 am
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: CIM
You don't have to use getSector, and don't forget to increment your $i value within the loop. PORT.EQUIP[sector] already has it for you.

Linky:
http://www.navhaz.com/files/script.html

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Mon Nov 03, 2008 2:13 am
Profile ICQ WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: CIM
One last question on this topic. When runing the Cim do most scripters use a delay trigger to alert the script of the end of text? What I mean is Cim runs and has allot of similar text. I don't think I can use a waitfor because there is no discernable exit text that hasn't allready been displayed. The only thing I could think of was either a delay of a waitfor "-" and then another waitfor ":"

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Mon Nov 03, 2008 6:21 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: CIM
Quote:
One last question on this topic. When runing the Cim do most scripters use a delay trigger to alert the script of the end of text? What I mean is Cim runs and has allot of similar text. I don't think I can use a waitfor because there is no discernable exit text that hasn't allready been displayed. The only thing I could think of was either a delay of a waitfor "-" and then another waitfor ":"


You can, but you don't need to w/ CIM.

Code:
send "^RQ"
waitFor ": ENDINTERROG"


Done and done.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Mon Nov 03, 2008 6:25 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

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