HerbCombiner (script)

From Elanthipedia
Revision as of 12:44, 6 September 2013 by Maintenance script (talk | contribs) (Created page with "{{Script |cat=Crafting |fe=StormFront |auth=Seldaren }} A script that will combine herbs into stacks of 75. You'll need to set two variables: HERB_COMBINER_FIRST_CONTAINER i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
HerbCombiner (script)
Category Crafting
Front-end StormFront
Author Seldaren


A script that will combine herbs into stacks of 75.

You'll need to set two variables: HERB_COMBINER_FIRST_CONTAINER is the container with the uncombined herbs. HERB_COMBINER_SECOND_CONTAINER is where the completed stacks will be placed.

Syntax:

.scriptname <herb>
setvariable HERB_COMBINER_FIRST_CONTAINER XXXXX
setvariable HERB_COMBINER_SECOND_CONTAINER YYYYY

if_1 goto COMBINE
echo Must be called with the herb you wish to combine.
echo Also, make sure you've entered your desired containers in the script.
exit

COMBINE:
	match COMBINE You must be holding both substances
	match COMBINE You combine the stacks
	match DONE What were you referring to?
	match FIRST-COUNT That stack of herbs is too large
	match FIRST-COUNT The resulting stack of herbs
	put get %1 in my %HERB_COMBINER_FIRST_CONTAINER
	put combine
	matchwait

FIRST-COUNT:
	match FIRST-COUNT-1 You count out 1 piece
	match FIRST-COUNT-2 You count out 2 piece
	match FIRST-COUNT-3 You count out 3 piece
	match FIRST-COUNT-4 You count out 4 piece
	match FIRST-COUNT-5 You count out 5 piece
	match FIRST-COUNT-6 You count out 6 piece
	match FIRST-COUNT-7 You count out 7 piece
	match FIRST-COUNT-8 You count out 8 piece
	match FIRST-COUNT-9 You count out 9 piece
	match FIRST-COUNT-10 You count out 10 piece
	match FIRST-COUNT-11 You count out 11 piece
	match FIRST-COUNT-12 You count out 12 piece
	match FIRST-COUNT-13 You count out 13 piece
	match FIRST-COUNT-14 You count out 14 piece
	match FIRST-COUNT-15 You count out 15 piece
	match FIRST-COUNT-16 You count out 16 piece
	match FIRST-COUNT-17 You count out 17 piece
	match FIRST-COUNT-18 You count out 18 piece
	match FIRST-COUNT-19 You count out 19 piece
	match FIRST-COUNT-20 You count out 20 piece
	match FIRST-COUNT-21 You count out 21 piece
	match FIRST-COUNT-22 You count out 22 piece
	match FIRST-COUNT-23 You count out 23 piece
	match FIRST-COUNT-24 You count out 24 piece
	match FIRST-COUNT-25 You count out 25 piece
	match FIRST-COUNT-26 You count out 26 piece
	match FIRST-COUNT-27 You count out 27 piece
	match FIRST-COUNT-28 You count out 28 piece
	match FIRST-COUNT-29 You count out 29 piece
	match FIRST-COUNT-30 You count out 30 piece
	match FIRST-COUNT-31 You count out 31 piece
	match FIRST-COUNT-32 You count out 32 piece
	match FIRST-COUNT-33 You count out 33 piece
	match FIRST-COUNT-34 You count out 34 piece
	match FIRST-COUNT-35 You count out 35 piece
	match FIRST-COUNT-36 You count out 36 piece
	match FIRST-COUNT-37 You count out 37 piece
	match FIRST-COUNT-38 You count out 38 piece
	match FIRST-COUNT-39 You count out 39 piece
	match FIRST-COUNT-40 You count out 40 piece
	match FIRST-COUNT-41 You count out 41 piece
	match FIRST-COUNT-42 You count out 42 piece
	match FIRST-COUNT-43 You count out 43 piece
	match FIRST-COUNT-44 You count out 44 piece
	match FIRST-COUNT-45 You count out 45 piece
	match FIRST-COUNT-46 You count out 46 piece
	match FIRST-COUNT-47 You count out 47 piece
	match FIRST-COUNT-48 You count out 48 piece
	match FIRST-COUNT-49 You count out 49 piece
	match FIRST-COUNT-50 You count out 50 piece
	match FIRST-COUNT-51 You count out 51 piece
	match FIRST-COUNT-52 You count out 52 piece
	match FIRST-COUNT-53 You count out 53 piece
	match FIRST-COUNT-54 You count out 54 piece
	match FIRST-COUNT-55 You count out 55 piece
	match FIRST-COUNT-56 You count out 56 piece
	match FIRST-COUNT-57 You count out 57 piece
	match FIRST-COUNT-58 You count out 58 piece
	match FIRST-COUNT-59 You count out 59 piece
	match FIRST-COUNT-60 You count out 60 piece
	match FIRST-COUNT-61 You count out 61 piece
	match FIRST-COUNT-62 You count out 62 piece
	match FIRST-COUNT-63 You count out 63 piece
	match FIRST-COUNT-64 You count out 64 piece
	match FIRST-COUNT-65 You count out 65 piece
	match FIRST-COUNT-66 You count out 66 piece
	match FIRST-COUNT-67 You count out 67 piece
	match FIRST-COUNT-68 You count out 68 piece
	match FIRST-COUNT-69 You count out 69 piece
	match FIRST-COUNT-70 You count out 70 piece
	match FIRST-COUNT-71 You count out 71 piece
	match FIRST-COUNT-72 You count out 72 piece
	match FIRST-COUNT-73 You count out 73 piece
	match FIRST-COUNT-74 You count out 74 piece
	match FIRST-COUNT-75 You count out 75 piece
	put count my %1
	matchwait

FIRST-COUNT-1:
	counter set 1
	goto SECOND-COUNT
FIRST-COUNT-2:
	counter set 2
	goto SECOND-COUNT
FIRST-COUNT-3:
	counter set 3
	goto SECOND-COUNT
FIRST-COUNT-4:
	counter set 4
	goto SECOND-COUNT
FIRST-COUNT-5:
	counter set 5
	goto SECOND-COUNT
FIRST-COUNT-6:
	counter set 6
	goto SECOND-COUNT
FIRST-COUNT-7:
	counter set 7
	goto SECOND-COUNT
FIRST-COUNT-8:
	counter set 8
	goto SECOND-COUNT
FIRST-COUNT-9:
	counter set 9
	goto SECOND-COUNT
FIRST-COUNT-10:
	counter set 10
	goto SECOND-COUNT
FIRST-COUNT-11:
	counter set 11
	goto SECOND-COUNT
FIRST-COUNT-12:
	counter set 12
	goto SECOND-COUNT
FIRST-COUNT-13:
	counter set 13
	goto SECOND-COUNT
FIRST-COUNT-14:
	counter set 14
	goto SECOND-COUNT
FIRST-COUNT-15:
	counter set 15
	goto SECOND-COUNT
FIRST-COUNT-16:
	counter set 16
	goto SECOND-COUNT
FIRST-COUNT-17:
	counter set 17
	goto SECOND-COUNT
FIRST-COUNT-18:
	counter set 18
	goto SECOND-COUNT
FIRST-COUNT-19:
	counter set 19
	goto SECOND-COUNT
FIRST-COUNT-20:
	counter set 20
	goto SECOND-COUNT
FIRST-COUNT-21:
	counter set 21
	goto SECOND-COUNT
FIRST-COUNT-22:
	counter set 22
	goto SECOND-COUNT
FIRST-COUNT-23:
	counter set 23
	goto SECOND-COUNT
FIRST-COUNT-24:
	counter set 24
	goto SECOND-COUNT
FIRST-COUNT-25:
	counter set 25
	goto SECOND-COUNT
FIRST-COUNT-26:
	counter set 26
	goto SECOND-COUNT
FIRST-COUNT-27:
	counter set 27
	goto SECOND-COUNT
FIRST-COUNT-28:
	counter set 28
	goto SECOND-COUNT
FIRST-COUNT-29:
	counter set 29
	goto SECOND-COUNT
FIRST-COUNT-30:
	counter set 30
	goto SECOND-COUNT
FIRST-COUNT-31:
	counter set 31
	goto SECOND-COUNT
FIRST-COUNT-32:
	counter set 32
	goto SECOND-COUNT
FIRST-COUNT-33:
	counter set 33
	goto SECOND-COUNT
FIRST-COUNT-34:
	counter set 34
	goto SECOND-COUNT
FIRST-COUNT-35:
	counter set 35
	goto SECOND-COUNT
FIRST-COUNT-36:
	counter set 36
	goto SECOND-COUNT
FIRST-COUNT-37:
	counter set 37
	goto SECOND-COUNT
FIRST-COUNT-38:
	counter set 38
	goto SECOND-COUNT
FIRST-COUNT-39:
	counter set 39
	goto SECOND-COUNT
FIRST-COUNT-40:
	counter set 40
	goto SECOND-COUNT
FIRST-COUNT-41:
	counter set 41
	goto SECOND-COUNT
FIRST-COUNT-42:
	counter set 42
	goto SECOND-COUNT
FIRST-COUNT-43:
	counter set 43
	goto SECOND-COUNT
FIRST-COUNT-44:
	counter set 44
	goto SECOND-COUNT
FIRST-COUNT-45:
	counter set 45
	goto SECOND-COUNT
FIRST-COUNT-46:
	counter set 46
	goto SECOND-COUNT
FIRST-COUNT-47:
	counter set 47
	goto SECOND-COUNT
FIRST-COUNT-48:
	counter set 48
	goto SECOND-COUNT
FIRST-COUNT-49:
	counter set 49
	goto SECOND-COUNT
FIRST-COUNT-50:
	counter set 50
	goto SECOND-COUNT
FIRST-COUNT-51:
	counter set 51
	goto SECOND-COUNT
FIRST-COUNT-52:
	counter set 52
	goto SECOND-COUNT
FIRST-COUNT-53:
	counter set 53
	goto SECOND-COUNT
FIRST-COUNT-54:
	counter set 54
	goto SECOND-COUNT
FIRST-COUNT-55:
	counter set 55
	goto SECOND-COUNT
FIRST-COUNT-56:
	counter set 56
	goto SECOND-COUNT
FIRST-COUNT-57:
	counter set 57
	goto SECOND-COUNT
FIRST-COUNT-58:
	counter set 58
	goto SECOND-COUNT
FIRST-COUNT-59:
	counter set 59
	goto SECOND-COUNT
FIRST-COUNT-60:
	counter set 60
	goto SECOND-COUNT
FIRST-COUNT-61:
	counter set 61
	goto SECOND-COUNT
FIRST-COUNT-62:
	counter set 62
	goto SECOND-COUNT
FIRST-COUNT-63:
	counter set 63
	goto SECOND-COUNT
FIRST-COUNT-64:
	counter set 64
	goto SECOND-COUNT
FIRST-COUNT-65:
	counter set 65
	goto SECOND-COUNT
FIRST-COUNT-66:
	counter set 66
	goto SECOND-COUNT
FIRST-COUNT-67:
	counter set 67
	goto SECOND-COUNT
FIRST-COUNT-68:
	counter set 68
	goto SECOND-COUNT
FIRST-COUNT-69:
	counter set 69
	goto SECOND-COUNT
FIRST-COUNT-70:
	counter set 70
	goto SECOND-COUNT
FIRST-COUNT-71:
	counter set 71
	goto SECOND-COUNT
FIRST-COUNT-72:
	counter set 72
	goto SECOND-COUNT
FIRST-COUNT-73:
	counter set 73
	goto SECOND-COUNT
FIRST-COUNT-74:
	counter set 74
	goto SECOND-COUNT
FIRST-COUNT-75:
	put put my %1 in %HERB_COMBINER_SECOND_CONTAINER
	waitfor You put
	goto COMBINE

SECOND-COUNT:
	match SECOND-COUNT-1 You count out 1 piece
	match SECOND-COUNT-2 You count out 2 piece
	match SECOND-COUNT-3 You count out 3 piece
	match SECOND-COUNT-4 You count out 4 piece
	match SECOND-COUNT-5 You count out 5 piece
	match SECOND-COUNT-6 You count out 6 piece
	match SECOND-COUNT-7 You count out 7 piece
	match SECOND-COUNT-8 You count out 8 piece
	match SECOND-COUNT-9 You count out 9 piece
	match SECOND-COUNT-10 You count out 10 piece
	match SECOND-COUNT-11 You count out 11 piece
	match SECOND-COUNT-12 You count out 12 piece
	match SECOND-COUNT-13 You count out 13 piece
	match SECOND-COUNT-14 You count out 14 piece
	match SECOND-COUNT-15 You count out 15 piece
	match SECOND-COUNT-16 You count out 16 piece
	match SECOND-COUNT-17 You count out 17 piece
	match SECOND-COUNT-18 You count out 18 piece
	match SECOND-COUNT-19 You count out 19 piece
	match SECOND-COUNT-20 You count out 20 piece
	match SECOND-COUNT-21 You count out 21 piece
	match SECOND-COUNT-22 You count out 22 piece
	match SECOND-COUNT-23 You count out 23 piece
	match SECOND-COUNT-24 You count out 24 piece
	match SECOND-COUNT-25 You count out 25 piece
	match SECOND-COUNT-26 You count out 26 piece
	match SECOND-COUNT-27 You count out 27 piece
	match SECOND-COUNT-28 You count out 28 piece
	match SECOND-COUNT-29 You count out 29 piece
	match SECOND-COUNT-30 You count out 30 piece
	match SECOND-COUNT-31 You count out 31 piece
	match SECOND-COUNT-32 You count out 32 piece
	match SECOND-COUNT-33 You count out 33 piece
	match SECOND-COUNT-34 You count out 34 piece
	match SECOND-COUNT-35 You count out 35 piece
	match SECOND-COUNT-36 You count out 36 piece
	match SECOND-COUNT-37 You count out 37 piece
	match SECOND-COUNT-38 You count out 38 piece
	match SECOND-COUNT-39 You count out 39 piece
	match SECOND-COUNT-40 You count out 40 piece
	match SECOND-COUNT-41 You count out 41 piece
	match SECOND-COUNT-42 You count out 42 piece
	match SECOND-COUNT-43 You count out 43 piece
	match SECOND-COUNT-44 You count out 44 piece
	match SECOND-COUNT-45 You count out 45 piece
	match SECOND-COUNT-46 You count out 46 piece
	match SECOND-COUNT-47 You count out 47 piece
	match SECOND-COUNT-48 You count out 48 piece
	match SECOND-COUNT-49 You count out 49 piece
	match SECOND-COUNT-50 You count out 50 piece
	match SECOND-COUNT-51 You count out 51 piece
	match SECOND-COUNT-52 You count out 52 piece
	match SECOND-COUNT-53 You count out 53 piece
	match SECOND-COUNT-54 You count out 54 piece
	match SECOND-COUNT-55 You count out 55 piece
	match SECOND-COUNT-56 You count out 56 piece
	match SECOND-COUNT-57 You count out 57 piece
	match SECOND-COUNT-58 You count out 58 piece
	match SECOND-COUNT-59 You count out 59 piece
	match SECOND-COUNT-60 You count out 60 piece
	match SECOND-COUNT-61 You count out 61 piece
	match SECOND-COUNT-62 You count out 62 piece
	match SECOND-COUNT-63 You count out 63 piece
	match SECOND-COUNT-64 You count out 64 piece
	match SECOND-COUNT-65 You count out 65 piece
	match SECOND-COUNT-66 You count out 66 piece
	match SECOND-COUNT-67 You count out 67 piece
	match SECOND-COUNT-68 You count out 68 piece
	match SECOND-COUNT-69 You count out 69 piece
	match SECOND-COUNT-70 You count out 70 piece
	match SECOND-COUNT-71 You count out 71 piece
	match SECOND-COUNT-72 You count out 72 piece
	match SECOND-COUNT-73 You count out 73 piece
	match SECOND-COUNT-74 You count out 74 piece
	match SECOND-COUNT-75 You count out 75 piece
	put count my second %1
	matchwait

SECOND-COUNT-1:
	counter add 1
	goto MARK-N-BREAK
SECOND-COUNT-2:
	counter add 2
	goto MARK-N-BREAK
SECOND-COUNT-3:
	counter add 3
	goto MARK-N-BREAK
SECOND-COUNT-4:
	counter add 4
	goto MARK-N-BREAK
SECOND-COUNT-5:
	counter add 5
	goto MARK-N-BREAK
SECOND-COUNT-6:
	counter add 6
	goto MARK-N-BREAK
SECOND-COUNT-7:
	counter add 7
	goto MARK-N-BREAK
SECOND-COUNT-8:
	counter add 8
	goto MARK-N-BREAK
SECOND-COUNT-9:
	counter add 9
	goto MARK-N-BREAK
SECOND-COUNT-10:
	counter add 10
	goto MARK-N-BREAK
SECOND-COUNT-11:
	counter add 11
	goto MARK-N-BREAK
SECOND-COUNT-12:
	counter add 12
	goto MARK-N-BREAK
SECOND-COUNT-13:
	counter add 13
	goto MARK-N-BREAK
SECOND-COUNT-14:
	counter add 14
	goto MARK-N-BREAK
SECOND-COUNT-15:
	counter add 15
	goto MARK-N-BREAK
SECOND-COUNT-16:
	counter add 16
	goto MARK-N-BREAK
SECOND-COUNT-17:
	counter add 17
	goto MARK-N-BREAK
SECOND-COUNT-18:
	counter add 18
	goto MARK-N-BREAK
SECOND-COUNT-19:
	counter add 19
	goto MARK-N-BREAK
SECOND-COUNT-20:
	counter add 20
	goto MARK-N-BREAK
SECOND-COUNT-21:
	counter add 21
	goto MARK-N-BREAK
SECOND-COUNT-22:
	counter add 22
	goto MARK-N-BREAK
SECOND-COUNT-23:
	counter add 23
	goto MARK-N-BREAK
SECOND-COUNT-24:
	counter add 24
	goto MARK-N-BREAK
SECOND-COUNT-25:
	counter add 25
	goto MARK-N-BREAK
SECOND-COUNT-26:
	counter add 26
	goto MARK-N-BREAK
SECOND-COUNT-27:
	counter add 27
	goto MARK-N-BREAK
SECOND-COUNT-28:
	counter add 28
	goto MARK-N-BREAK
SECOND-COUNT-29:
	counter add 29
	goto MARK-N-BREAK
SECOND-COUNT-30:
	counter add 30
	goto MARK-N-BREAK
SECOND-COUNT-31:
	counter add 31
	goto MARK-N-BREAK
SECOND-COUNT-32:
	counter add 32
	goto MARK-N-BREAK
SECOND-COUNT-33:
	counter add 33
	goto MARK-N-BREAK
SECOND-COUNT-34:
	counter add 34
	goto MARK-N-BREAK
SECOND-COUNT-35:
	counter add 35
	goto MARK-N-BREAK
SECOND-COUNT-36:
	counter add 36
	goto MARK-N-BREAK
SECOND-COUNT-37:
	counter add 37
	goto MARK-N-BREAK
SECOND-COUNT-38:
	counter add 38
	goto MARK-N-BREAK
SECOND-COUNT-39:
	counter add 39
	goto MARK-N-BREAK
SECOND-COUNT-40:
	counter add 40
	goto MARK-N-BREAK
SECOND-COUNT-41:
	counter add 41
	goto MARK-N-BREAK
SECOND-COUNT-42:
	counter add 42
	goto MARK-N-BREAK
SECOND-COUNT-43:
	counter add 43
	goto MARK-N-BREAK
SECOND-COUNT-44:
	counter add 44
	goto MARK-N-BREAK
SECOND-COUNT-45:
	counter add 45
	goto MARK-N-BREAK
SECOND-COUNT-46:
	counter add 46
	goto MARK-N-BREAK
SECOND-COUNT-47:
	counter add 47
	goto MARK-N-BREAK
SECOND-COUNT-48:
	counter add 48
	goto MARK-N-BREAK
SECOND-COUNT-49:
	counter add 49
	goto MARK-N-BREAK
SECOND-COUNT-50:
	counter add 50
	goto MARK-N-BREAK
SECOND-COUNT-51:
	counter add 51
	goto MARK-N-BREAK
SECOND-COUNT-52:
	counter add 52
	goto MARK-N-BREAK
SECOND-COUNT-53:
	counter add 53
	goto MARK-N-BREAK
SECOND-COUNT-54:
	counter add 54
	goto MARK-N-BREAK
SECOND-COUNT-55:
	counter add 55
	goto MARK-N-BREAK
SECOND-COUNT-56:
	counter add 56
	goto MARK-N-BREAK
SECOND-COUNT-57:
	counter add 57
	goto MARK-N-BREAK
SECOND-COUNT-58:
	counter add 58
	goto MARK-N-BREAK
SECOND-COUNT-59:
	counter add 59
	goto MARK-N-BREAK
SECOND-COUNT-60:
	counter add 60
	goto MARK-N-BREAK
SECOND-COUNT-61:
	counter add 61
	goto MARK-N-BREAK
SECOND-COUNT-62:
	counter add 62
	goto MARK-N-BREAK
SECOND-COUNT-63:
	counter add 63
	goto MARK-N-BREAK
SECOND-COUNT-64:
	counter add 64
	goto MARK-N-BREAK
SECOND-COUNT-65:
	counter add 65
	goto MARK-N-BREAK
SECOND-COUNT-66:
	counter add 66
	goto MARK-N-BREAK
SECOND-COUNT-67:
	counter add 67
	goto MARK-N-BREAK
SECOND-COUNT-68:
	counter add 68
	goto MARK-N-BREAK
SECOND-COUNT-69:
	counter add 69
	goto MARK-N-BREAK
SECOND-COUNT-70:
	counter add 70
	goto MARK-N-BREAK
SECOND-COUNT-71:
	counter add 71
	goto MARK-N-BREAK
SECOND-COUNT-72:
	counter add 72
	goto MARK-N-BREAK
SECOND-COUNT-73:
	counter add 73
	goto MARK-N-BREAK
SECOND-COUNT-74:
	counter add 74
	goto MARK-N-BREAK
SECOND-COUNT-75:
	put put my second %1 in %HERB_COMBINER_SECOND_CONTAINER
	waitfor You put
	goto COMBINE

MARK-N-BREAK:
	counter sub 75
	put put my %1 in %HERB_COMBINER_FIRST_CONTAINER
	waitfor You put
	put mark my %1 at %c
	waitfor You measure out
	put break my %1
	waitfor You carefully break off
	put put my %1 in %HERB_COMBINER_FIRST_CONTAINER
	waitfor You put
	put get second %1 in %HERB_COMBINER_FIRST_CONTAINER
	waitfor You get
	put combine
	waitfor You combine the stacks
	put put my %1 in %HERB_COMBINER_SECOND_CONTAINER
	waitfor You put
	goto COMBINE

DONE:
	match NICE-REMAINDER You count out 25
	match NICE-REMAINDER You count out 50
	match NICE-REMAINDER You count out 75
	match BAD-REMAINDER You count out
	put count my %1
	matchwait

NICE-REMAINDER:
	put put my %1 in %HERB_COMBINER_SECOND_CONTAINER
	waitfor You put
	goto END

BAD-REMAINDER:
	put put my %1 in %HERB_COMBINER_FIRST_CONTAINER
	waitfor You put
	goto END

END:
	deletevariable HERB_COMBINER_FIRST_CONTAINER
	deletevariable HERB_COMBINER_SECOND_CONTAINER
	exit