PDA

View Full Version : Wizard FE script help for LLD



Tsa`ah
01-02-2005, 12:39 PM
I'll try posting this here as well as the LLD board and see what I can fish out of your heads.

What I want to do is create a script that will cut and/or carve stones from one container and place them in a second container, while separating specific stones used for guild work into a third.

There are two classes of stones (gems) in LLD. Those for cutting (20 different cutting styles) and those for carving (too many carving shapes, but I only use two).

Cutting requires a chisel and uses the cut command.

Example:

Cut diamond bril (brilliant)

So, cut <gem><style> (while holding a chisel)

This process takes 1.5 minutes ... illustrated below.



You get an amethyst from a gold worked forest green leather pouch.

You get a jeweler's chisel from a gold worked forest green leather pouch.

>cut ame leaf
You carefully study the gem, planning your course of action.

30rt

>cut ame leaf
You begin work on the gem, shaping and faceting it.

30rt

>cut ame leaf
You meticulously chisel the gem into a multitude of facets.

You put a leaf-cut amethyst in an olive green leather sack embossed with an arrowhead.

Carving requires the stone be polished, and then carved using carving tools. The process takes 1 minute.

The command would look like:

Polish <gem> (while holding a polishing cloth)

Carve <gem><shape> (while holding carving tools

The complete process looks like this:


You get a polishing cloth from a gold worked forest green leather pouch.

You get a piece of ivory from a gold worked forest green leather pouch.

>polish iv
You carefully polish the piece of ivory.

20rt

>put cloth in pou
You put a polishing cloth in a gold worked forest green leather pouch.

>get too
You get a set of gemcarver's tools from a gold worked forest green leather pouch.

>carve iv dragon
You begin to carve the ivory into the crude shape of a dragon.

20rt

>carve iv dragon
You carefully put the finishing touches on your ivory dragon.

>20rt

You put a carved ivory dragon in an olive green leather sack embossed with an arrowhead.

So obviously I would need to compose a list of stones and the basic commands are simple

put get <needed tool>
put get <stone> from <1.container>
put cut <stone><style>
pause 31
put cut <stone><style>
pause 31
put cut <stone><style>
pause 31
put cut <stone><style>
Put put <stone><2.container>

put get cloth
put get <stone> from <1.container>
put polish <stone>
put put cloth <wherever>
pause 21
put get tools
put carve <stone><shape>
pause 21
put carve <stone><shape>
pause 21
put <shape> in <2.container>

I suppose it would be easier to only cut and carve one shape/style ... but to complicate things more; I like to cut certain color stones and specific stones a specific style. Rubies, sapphires, diamonds and emeralds get cut a certain way each and every time, while other stones get cut in a style depending on color ... green get leaf-cut, gold get crescent or flame , so on and so forth.

And to complicate it even more; Certain stones are used for guild skills and need to be put into a third container.

Here's a peek inside my pouch:


You look in your gold worked forest green leather pouch:
You see: a waterstone, a pink
moonstone, a piece of white jade,
an opal, a piece of lapis lazuli, a sardonyx, a pink beryl, a blue zircon, a
an amethyst, a black moonstone, a chrysoberyl, a waterstone, a waterstone, a
waterstone, a jeweler's chisel and a polishing cloth.

The red indicates stones that can only be cut in one style (cabochon) and are used for guild training. The yellow indicate stones that can be carved into shapes. The white indicate stones that can be cut into styles.

So who wants the headache of putting an outline in the sand for me?

Latrinsorm
01-02-2005, 02:50 PM
If you do have one style for each type/color, it'll take awhile, but you can have the script figure out which cut it's supposed to do. Assuming you have a glance command, you would use it, then have a series of matches for each type of stone.

This is assuming that the stones you have specific cuts for and guild stones come in colors.

Check:
put glance
match leafcut diamond
match boxcut ruby
match leafcut emerald
match guild moonstone
match guild waterstone
match color hand
matchwait

Color:
put glance
match horsecut red
match bananacut green
match smileycut yellow
matchwait

And then for each cut label you'd have the commands to actually cut it up. The containers you can set in the Wizard menus and use %container and %sheath or something like that.

Is this what you were looking for?

Electrawn
01-02-2005, 10:12 PM
http://www.gs4.org/index.php?pagename=Gems&op=modload&name=pnPhpWiki& file=index

SF or Wizard, the script will be a bitch.

Approach it in parts:

1. Try and deal with every stone/gem in elanthia and be able to recognize them.
2. Be able to recognize color of gems
3. Basic mechanics of cutting gems
4. Basic mechanics of cutting stones
5. Refine for color situations
6. Finally, debug and add for error cases like ...wait 1 second crap

When you get finished with step 1 you have a really useful loot script for hunting!

Add this SF snippet and you will pickup any box...

box:
put look
matchre gettrunk /(an|a) (acid-pitted|battered|iron-bound|plain|corroded|badly damaged|dented|enruned|engraved|rotting|simple|stu rdy|scratched|weathered) (fel|mithril|gold|silver|maoral|haon|monir|modwir| steel|iron|tanik|thanot|w ooden) trunk/
matchre getcoffer /(an|a) (acid-pitted|battered|iron-bound|plain|corroded|badly damaged|dented|enruned|engraved|rotting|simple|stu rdy|scratched|weathered) (fel|mithril|gold|silver|maoral|haon|monir|modwir| steel|iron|tanik|thanot|w ooden) coffer/
matchre getstrongbox /(an|a) (acid-pitted|battered|iron-bound|plain|corroded|badly damaged|dented|enruned|engraved|rotting|simple|stu rdy|scratched|weathered) (fel|mithril|gold|silver|maoral|haon|monir|modwir| steel|iron|tanik|thanot|w ooden) strongbox/
matchre getbox /(an|a) (acid-pitted|battered|iron-bound|plain|corroded|badly damaged|dented|enruned|engraved|rotting|simple|stu rdy|scratched|weathered) (fel|mithril|gold|silver|maoral|haon|monir|modwir| steel|iron|tanik|thanot|w ooden) box/
matchre getchest /(an|a) (acid-pitted|battered|iron-bound|plain|corroded|badly damaged|dented|enruned|engraved|rotting|simple|stu rdy|scratched|weathered) (fel|mithril|gold|silver|maoral|haon|monir|modwir| steel|iron|tanik|thanot|w ooden) chest/
match thestart Obvious paths:
matchwait
gettrunk:
put get trunk
put put trunk in my cloak
getbox...etc

-Electrawn

Electrawn
01-02-2005, 10:16 PM
You can also use this script as a basis:

http://forum.gsplayers.com/viewthread.php?tid=11047

Latrinsorm
01-02-2005, 10:34 PM
I don't know much about LLD, but I would expect that it's not set in Elanthia. :)

Tsa`ah
01-03-2005, 04:19 AM
Originally posted by Latrinsorm
I don't know much about LLD, but I would expect that it's not set in Elanthia. :)

A MUD is a MUD. It's just a matter of translating commands from one MUD to the other.

The loresing script put me on the right track, now I just have to figure out how to get it to recognize the next stone in the container instead of trying to grab the same stone that isn't there.

And I need to figure out how to make it self terminate after all the tasks are done.

I basically just took aspects of the script and hacked the crap out of it ... now it's debugging.

Thanks much.