View unanswered posts | View active topics It is currently Thu Apr 30, 2026 1:37 pm



Reply to topic  [ 3 posts ] 
 Script help 
Author Message
Lance Corporal

Joined: Tue May 23, 2006 2:00 am
Posts: 4
Location: USA
Unread post 
How can I get what a port is offering to sell/buy product for?
I'm trying to automatically enter that number into my script but can't figure out how.

Thx in advance
Tom


Mon Jun 05, 2006 7:45 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
You can obtain the port's offer like this:setTextLineTrigger buyoffer :initoffer "We'll buy them for"
setTextLineTrigger selloffer :initoffer "We'll sell them for"
pause

:initoffer
killTrigger buyoffer
killTrigger selloffer
getWord CURRENTLINE $offer 5
stripText $offer ","
stripText $offer "["
stripText $offer "]"
stripText $offer "?"Now the port's offer is stored as $offer.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Mon Jun 05, 2006 8:43 pm
Profile WWW
Captain
User avatar

Joined: Sat Jun 18, 2005 2:00 am
Posts: 2214
Location: USA
Unread post 
Also if you need assistance with understanding the mathematics of the Ports, read these two helpful docs:


http://tw-cabal.com/strategy/economy2.html

http://www.thestardock.com/content.cgi?id=32

_________________
Your reliance upon subjective IRM's, subjugates you through utter omission, obfuscation, and distortion of fact!
Don't mess with me, I will 26 U.S.C. ยง 7212(a) your IRS!


Mon Jun 05, 2006 9:26 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

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