|
Anheg Newbie
Joined: 09 Aug 2008 Posts: 2
|
Posted: Sat Aug 09, 2008 3:49 am
Trigger problem |
ok i have a few issues that try as i might i cannot get them to work together..or i am over complicating something simple either way..
my mud sends a list when i type in a command, the list can be any number of lines long. but there are only two types to the list
Long contracts in alloys available at 134ig/ton.
Short contracts in artifacts available at 913ig/ton.
basically it's a long contract or a short contract. (this mud has a heavy economics feel to it ;) ) and your basically standing in a stock exchange while looking at the list. so next you would check the current trading price of the commod, in this example alloys and artifacts, and depending on whether there is a stockpile or not you can do some math to see the spread of the contract versus actual trading price and if the spread is over 20 it's a good contract..
when you check a price it looks like this.
+++ The exchange display shows the prices for Alloys +++
+++ Exchange has 19900 tons for sale +++
+++ Offer price is 142ig/ton for first 75 tons +++
or
+++ The exchange display shows the prices for Artifacts +++
+++ Exchange will buy 75 tons at 848ig/ton +++
for long contracts. in this example alloys, i check the price and see it has a stockpile and ignore it. (long contracts plus stockpile bad)
for short contracts, again artifacts, i check the price of the commodity and see it has no stockpile. (short contracts minus stockpile bad)
what i have been doing in the past is with buttons..basically i would manually check the price of the commodity if it was a long contract and no stockpile then i would hit a button and use..
#pr cp "Contract price?"
#pr ep "Exchange price?"
#math spread (@ep/0.9)-@cp
#st Long=@spread
and for short
#pr cp "Contract price?"
#pr ep "Exchange price?"
#math spread @cp-(@ep/1.1)
#st Short=@spread
basically what i want to do is automate the process..basically walk in, display futures, get the list and check the price of each contract on the list and depending on whether it had a stockpile or not do the math if the conditions are favorable and automatically buy the contract if the spread was over 20.
have i confused anyone yet?
if this is rediculously not possible with zmud just let me know, as there are about 120 exchanges in the game it takes a very very long time to go to each one and do all of this by hand and go to the next..
any help would be greatly appreciated.
thanks
(sorry for the long ass post) |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Fri Aug 15, 2008 12:25 am |
Actually this should be extremely simple. I'm assuming you want triggers to just automatically buy good ones and ignore bad ones so that all you have to do is initiate it with the originating command? As in FULL automation. Or do you only want partial, or what? Give me more details on this and I can have it running for you within a couple of days.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|
|
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 vote in polls in this forum
|
|