This is just an addition to the Casserole Dish, to make Ceramic Linings for ther dishes. Basically it only works properly if you have a kiln and pottery wheel within close proximitiy to eachother, so you can click either without having to move. It just carries on making linings until you have no more inventory space, then turns to the kiln and fires the unfired versions.
To do: Tidy up combine container of items if something is left inside due to lack of items or previous user.
You'll notice that for the first item in the combine, I've got it looking for it, then auto equipping it, then re-looking for it, this was due to the fact it wouldn't find the item on the first attempt on some occations, even in perfect lag-free conditions, so I just worked around it.. However if you can think of a better way of doing it, I'd prefer it.
*EDIT* Forgot code tag :)
Code: Select all
| - lining.mac -
|
| Please be near a open pottery wheel before you start this macro.
|
#include routines.mac
Sub Main
/if $freeinv(space)=="0" /goto :Fire
/itemtarget Pottery Wheel
/face item
/click left item
/click left enviro combine
:Makelining
/if $freeinv(space)=="0" /goto :Fire
/sendkey down ctrl
/finditem "ceramic lining sketch"
/if $find()==FALSE /goto :Done
/click left auto
/finditem "ceramic lining sketch"
/if $find()==FALSE /goto :Done
/click left enviro 0
/finditem "Water Flask"
/if $find()==FALSE /goto :Done
/click left enviro 1
/finditem "small block of clay"
/if $find()==FALSE /goto :Done
/click left enviro 2
/sendkey up ctrl
/delay 5
/click left enviro combine
:WaitCombine
/delay 10
/if "$cursor()"=="FALSE" /goto :WaitCombine
/click left auto
/goto :Makelining
:Fire
/press ESC
/itemtarget Kiln
/face item
/click left item
:Fire1
/sendkey down ctrl
/finditem "unfired ceramic lining"
/if $find()==FALSE /goto :Done
/click left auto
/delay 5
/finditem "unfired ceramic lining"
/if $find()==FALSE /goto :Done
/click left enviro 0
/finditem "quality firing sheet"
/if $find()==FALSE /goto :Done
/click left enviro 1
/sendkey up ctrl
/delay 10
/click left enviro combine
:WaitCombine
/delay 10
/if "$cursor()"=="FALSE" /goto :WaitCombine
/click left auto
/goto :Fire1
:Done
/sendkey up ctrl
/click left enviro done
/return