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

Script help
https://mail.black-squirrel.com/viewtopic.php?f=15&t=17376
Page 1 of 1

Author:  Tommy1115 [ Mon Jun 05, 2006 7:45 pm ]
Post subject: 

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

Author:  ElderProphet [ Mon Jun 05, 2006 8:43 pm ]
Post subject: 

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+

Author:  RexxCrow [ Mon Jun 05, 2006 9:26 pm ]
Post subject: 

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

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