Lumber (script)

From Elanthipedia
Revision as of 21:16, 25 June 2016 by TRIMACK (talk | contribs) (Created page with "{{Script |cat=crafting, survival, utility |fe=StormFront |auth=Sagadin }} ==Description== This script will take all of your raw lumber in a container and turn it into finishe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Lumber (script)
Category crafting,survival,utility
Front-end StormFront
Author Sagadin


Description

This script will take all of your raw lumber in a container and turn it into finished lumber. Also, it will deed it for you if you ask it to. In order to have the deeding work, you will need to find the relevent portion of the script and edit the containers.

Things that will cause problems

Don't put anything 'stick' or 'log'ish in the same container as your raw wood... for example, a mixing stick, or an engineering log. This will break the script.

Script

Echo
Echo
Echo /Lumber <Raw container> <Tool Container> <bundle?>
Echo
Echo *************
Echo * Turning all of your raw lumber in your %1 into finished lumber.
Echo * Using the tools from your %2
Echo * If you see a character after the colon, I'll be deeding your wood when I'm done: %3
Echo **************

if_2 goto Open

Echo
Echo
Echo
Echo ***********
Echo * Too few arguements!  Try again
Echo ***********
Exit

Open:
	put glan
	match get saw
	match go nothing
	match full right hand.
	match go left hand.
	match go empty
	matchwait

Get:
	put rum my %1
	match Log log
	match Limb Limb
	match Branch branch
	match Stick stick
	match end You see
	match end You rummage
	matchwait

Log:
	Setvariable log log
	Goto Getit

Branch:
	Setvariable log branch
	Goto getit

Limb:
	Setvariable log limb
	Goto getit

Stick:
	Setvariable log stick
	Goto Getit

Getit:
	put get my %log from my %1
	goto Saw

Saw:
	put get my saw from my %2
	match resaw You get
	match saw ...wait
	matchwait
Resaw:	
	put cut my %log with my saw
	match resaw Roundtime
	match resaw ...wait
	match scrape Finally you complete
	matchwait

Scrape:
	wait 1
	put put saw in %2
	put get my drawk from my %2
	match rescrape You get
	match scrape ...wait
	matchwait
Rescrape:
	put scrape my %log with my drawk
	match Nodrawk At last your work
	match rescrape Roundtime:
	match rescrape ...wait
	matchwait

Nodrawk:
	put put my drawk in my %2
	pause
	Goto Combine

Full:
	Echo
	Echo Your hands are full!  Either hold a saw or nothing and try again.
	Echo
	Exit

Go:
	Goto get

Combine:
	put get my other lumber
	match together You pick up
	match lower What
	matchwait
Together:
	put combine my lumber with my other lumber
	pause
Lower:
	put lower ground left
	put lower ground right
	goto Get

Deed:
	put get my lumber
	wait
	put get my packet
	wait
	put push my lumber with my packet
	wait
	put put my packet in my thigh pouch
	wait
	put get my regis
	wait
	put turn my regis to conten
	wait
	put put my deed in my regis
	wait
	put put my regis in my thigh pouch
	Goto RealEnd

End:
	If_3 Goto Deed
	put get my lumber
Realend:
	Echo
	Echo Your lumber is ready!
	Echo
	Exit