Brewmeiseters brewmeisters..

by Unknown

Back to Mechanic's Corner.

Unknown2010-07-16 00:01:10
More whining from me!

Recently Viynain asked me to switch over to brewmeister so he could get.. Like.. Over 9000 rawtea made into tea leaves. And I really don't want to do this by hand..

Anyone willing to make me a super simple system for it? Pretty please? sad.gif
Unknown2010-07-16 00:10:35
QUOTE (Pectus Dawneye @ Jul 15 2010, 08:01 PM) <{POST_SNAPBACK}>
More whining from me!

Recently Viynain asked me to switch over to brewmeister so he could get.. Like.. Over 9000 rawtea made into tea leaves. And I really don't want to do this by hand..

Anyone willing to make me a super simple system for it? Pretty please? sad.gif



client? Commands necessary to do meister that brew?
Unknown2010-07-16 00:30:06
Mush.
You have to FLUSH ALEMBIC, ADD 100 RAWTEA, TAKE BLACKTEA FROM ALEMBIC for each go.


QUOTE
flush alembic
You release a stream of water into a glass alembic, flushing away all detritus and leaving it sparklingly clean.
3508h, 4074m, 4518e, 10p, 15200en, 18530w exk-
add 100 rawtea
You put a group of 100 raw tea leaves in a glass alembic in preparation for amalgamation.
3508h, 4074m, 4518e, 10p, 15200en, 18530w exk-

amalgamate blacktea
You draw on the energy within a glowing powerstone.
You tap a glass bulb and turn some valves, allowing bubbling fluids to drip into a glass alembic. It begins to boil and combine with the ingredients, and you step back and hope for the best.
3508h, 4074m, 4518e, 10p, 15200en, 18530w ek-

Sparkling motes of light dance within a glass alembic, which rattles and chirps with oddly bird-like noises. The ingredients within quickly vaporize, their essence infusing into a clump of black tea leaves.
3508h, 4074m, 4518e, 10p, 15200en, 18530w ek-

You have recovered balance on all limbs.
3508h, 4074m, 4518e, 10p, 15200en, 18530w exk-

take 50 tea from alembic
You take black tea leaves from a glass alembic.
Unknown2010-07-16 00:47:08
QUOTE (Pectus Dawneye @ Jul 15 2010, 08:30 PM) <{POST_SNAPBACK}>
Mush.
You have to FLUSH ALEMBIC, ADD 100 RAWTEA, TAKE BLACKTEA FROM ALEMBIC for each go.



100 or 10?

And I'll see what I can do, but I'm not very MUSH proficient. The coding bit? Sure...


I could write one fairly quickly for mudlet though.


EDIT: I could have sworn it said 10 in the quote a moment ago. Ahh well.
Sylphas2010-07-16 00:47:35
And remove sugar if it sugars.
Sylphas2010-07-16 00:48:03
I'd give you my alchemy system, but it doesn't automatically brew entire orders like that.
Xavius2010-07-16 00:49:07
I would try a nested DoAfter() for that, with the caveat that I've never tried it myself.
Unknown2010-07-16 00:50:40
QUOTE (demonnic @ Jul 15 2010, 05:47 PM) <{POST_SNAPBACK}>
100 or 10?

And I'll see what I can do, but I'm not very MUSH proficient. The coding bit? Sure...


I could write one fairly quickly for mudlet though.


EDIT: I could have sworn it said 10 in the quote a moment ago. Ahh well.



QUOTE (Sylphas @ Jul 15 2010, 05:47 PM) <{POST_SNAPBACK}>
And remove sugar if it sugars.


100. It did, but I realized the mistake and fixed it, sorry for the confusion. As for the sugar bit, I haven't gotten the lines for that, so I can't post it up here.
Sylphas2010-07-16 00:51:20
^A glass alembic releases a sweet smelling cloud of white dust\\, as the ingredients crystallize into sugar\\.$
Ssaliss2010-07-16 00:52:09
Personally I'd do it more simply: One variable to keep track of the number of batches, and one trigger for recovering balance that (if there are batches to be done) takes the stuff from the alembic, flushes it, removes from the variable and adds the stuff and brews it.
Unknown2010-07-16 01:05:37
QUOTE (Ssaliss @ Jul 15 2010, 08:52 PM) <{POST_SNAPBACK}>
Personally I'd do it more simply: One variable to keep track of the number of batches, and one trigger for recovering balance that (if there are batches to be done) takes the stuff from the alembic, flushes it, removes from the variable and adds the stuff and brews it.


That's pretty much what I was gonna try to accomplish tonight, yeah. Really, something like:

CODE
trigger for balance recovery goes here:
if amountToBrew > 0 then
  Send("take sugar from alembic")
  Send("take blacktea from alembic")
  Send("flush alembic")
  Send("put 100 rawtea in alembic")
  Send("amalgamate blacktea")
end


Then an alias (however you set that up in MUSH): that does the following
CODE
amountToBrew = %1
Send("flush alembic")
Send("put 100 rawtea in alembic")
Send("amalgamate blacktea")



And then one more trigger, for the line where you get blacktea out of it:
CODE
if amountToBrew > 0 then amountToBrew = amountToBrew - 50 end




And that should fix you up. It could be fairly easily expanded to cover more than just blacktea. I'd give you the xml for adding the triggers and whatnot, but I don't have Zarquan's experience with MUSHclient (as in, I had to go lookup how to send stuff to the MUD in MUSHclient)
Ssaliss2010-07-16 01:07:51
Remember to fix depleted powerstones as well. Not sure how they work, but I'd imagine 14000 rawtea would suck a powerstone or ten dry...
Unknown2010-07-16 01:13:26
QUOTE (Ssaliss @ Jul 15 2010, 09:07 PM) <{POST_SNAPBACK}>
Remember to fix depleted powerstones as well. Not sure how they work, but I'd imagine 14000 rawtea would suck a powerstone or ten dry...



trigger for powerstone failure/depletion:
CODE
powerStoneDepleted = true



back in the trigger for the balance recovery, above the code posted in my previous post
CODE
if powerStoneDepleted then
  Send("unwield powerstone")
  Send("put powerstone whereverthehellyouputitwhenswappingout")
  Send("get powerstone from whereverthehellyoukeepyourfreshones")
  Send("wield powerstone")
  powerStoneDepleted = false
end



I think that should do it? Again, I've never used a powerstone, nor been a trade which would... I've been Herbs all the way. Pectus, I'll try to get on later tonight and help you work this out, if you want. I'm trying to get stuff packed up cuz I'm moving on Saturday, but we're mostly done, so I should have a little bit of time.


Assuming someone who has MUSHfu (which totally trumps my more generic Luafu) helps you with it first. It won't offend me, I promise =)


Edit: with the above approach, I'd make sure you have enough powerstones to hand... or else I could see it entering a loop of not-fun... so yeah, this is rough, and all off the top of my head, please don't implement it straight up.
Unknown2010-07-16 01:48:54
QUOTE (demonnic @ Jul 15 2010, 06:05 PM) <{POST_SNAPBACK}>
That's pretty much what I was gonna try to accomplish tonight, yeah. Really, something like:

CODE
trigger for balance recovery goes here:
if amountToBrew > 0 then
  Send("take sugar from alembic")
  Send("take blacktea from alembic")
  Send("flush alembic")
  Send("put 100 rawtea in alembic")
  Send("amalgamate blacktea")
end


Then an alias (however you set that up in MUSH): that does the following
CODE
amountToBrew = %1
Send("flush alembic")
Send("put 100 rawtea in alembic")
Send("amalgamate blacktea")



And then one more trigger, for the line where you get blacktea out of it:
CODE
if amountToBrew > 0 then amountToBrew = amountToBrew - 50 end




And that should fix you up. It could be fairly easily expanded to cover more than just blacktea. I'd give you the xml for adding the triggers and whatnot, but I don't have Zarquan's experience with MUSHclient (as in, I had to go lookup how to send stuff to the MUD in MUSHclient)



QUOTE (demonnic @ Jul 15 2010, 06:13 PM) <{POST_SNAPBACK}>
trigger for powerstone failure/depletion:
CODE
powerStoneDepleted = true



back in the trigger for the balance recovery, above the code posted in my previous post
CODE
if powerStoneDepleted then
  Send("unwield powerstone")
  Send("put powerstone whereverthehellyouputitwhenswappingout")
  Send("get powerstone from whereverthehellyoukeepyourfreshones")
  Send("wield powerstone")
  powerStoneDepleted = false
end



I think that should do it? Again, I've never used a powerstone, nor been a trade which would... I've been Herbs all the way. Pectus, I'll try to get on later tonight and help you work this out, if you want. I'm trying to get stuff packed up cuz I'm moving on Saturday, but we're mostly done, so I should have a little bit of time.


Assuming someone who has MUSHfu (which totally trumps my more generic Luafu) helps you with it first. It won't offend me, I promise =)


Edit: with the above approach, I'd make sure you have enough powerstones to hand... or else I could see it entering a loop of not-fun... so yeah, this is rough, and all off the top of my head, please don't implement it straight up.


suspicious.gif I kinda can't figure out how to add them in. I'm about as smart as a stick when it comes to this stuff.
Unknown2010-07-16 01:57:05
QUOTE (Pectus Dawneye @ Jul 15 2010, 09:48 PM) <{POST_SNAPBACK}>
suspicious.gif I kinda can't figure out how to add them in. I'm about as smart as a stick when it comes to this stuff.


I'll boot one of my computers into windows and install MUSHclient if I get a chance to tonight. Though a mushclient person would probably be able to do it faster... cuz I don't know how to add that stuff in either. grin.gif
Unknown2010-07-16 01:57:29
I have a plugin that might be of help:

https://sites.google.com/site/freymold/Fern_alchemy.xml
Unknown2010-07-16 01:59:01
Am not on windows, I'm on linux using wine. But thank you wub.gif
Unknown2010-07-16 02:00:41
QUOTE (Pectus Dawneye @ Jul 15 2010, 09:59 PM) <{POST_SNAPBACK}>
Am not on windows, I'm on linux using wine. But thank you wub.gif



Yeah, but I hate trying to use MUSH in wine. I got it to work once... ages ago. I may just fire up a VM though.


ETA: obligatory come2mudlet

ETA2: above ETA was for humor.
Unknown2010-07-16 02:04:49
Thank you guys. One of the main reasons why I love Lusty so much is how nice and helpful you all are happy.gif