PDA

View Full Version : purifying scrip



Tumbadoo
06-09-2008, 07:40 PM
Anyone have a script for purifying gems. Also, is there a command (if this is right terminoolog?) for determing if mana is to low and if it is to wait till it's full again?

Shaelun
06-12-2008, 04:30 AM
Do you mean using Wizard or StormFront to run a script? No, there's no command to check your mana.

Here's the Wizard script I used to use before I wrote my scripting engine... as far as I remember, it worked beautifully, but it may be broken now or something (it has been almost 3 years since I used it I think...)

Just copy & paste this into a script; I always called it "pure.cmd" but w/e you like is fine:


#Fully Automated Purifying Script by Shaelun, v1.71 (designed for The Wizard FE)

Entry:
counter set 1
if_1 goto %1
AddToHighlightNames string="***" foreColor=3 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************************************** **************************************************
DeleteFromHighlightNames string="***"
AddToHighlightNames string="**" foreColor=3 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
echo ** Run script with 'help' as the first variable for usage info or 'list' to see supported gems. **
echo ** 'pure skip' will not 'stop sing'ing, but the manacheck doesn't take song renewal into account. **
echo ** v1.71 (if you're unfamiliar with the script, definitely look at the help information) v1.71 **
DeleteFromHighlightNames string="**"
AddToHighlightNames string="***" foreColor=3 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************************************** **************************************************
DeleteFromHighlightNames string="***"
put stop singing
match check are not
match check stop singing
matchwait

labelError:
AddToHighlightNames string="***" foreColor=12 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************************************** *************************************************
DeleteFromHighlightNames string="***"
AddToHighlightNames string="**" foreColor=12 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
echo ** Unrecognized Destination Within Script (Label Error Reached). Assuming Command Line Variables **
echo ** Are User's Preferred Containers and Continuing (".pure help" to see usage info) **
DeleteFromHighlightNames string="**"
AddToHighlightNames string="***" foreColor=12 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************************************** *************************************************
DeleteFromHighlightNames string="***"
pause
shift
put stop singing
match check are not
match check stop singing
matchwait

Rechargable:
AddToHighlightNames string="**" foreColor=15 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo **********************************
DeleteFromHighlightNames string="**"
AddToHighlightNames string="**" foreColor=15 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
AddToHighlightNames string="!Mage Rechargable Gem Found!" foreColor=3 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
echo ** !Mage Rechargable Gem Found! **
DeleteFromHighlightNames string="!Mage Rechargable Gem Found!"
AddToHighlightNames string="!Mage Rechargable Gem Found!" foreColor=9 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
echo ** !Mage Rechargable Gem Found! **
DeleteFromHighlightNames string="!Mage Rechargable Gem Found!"
AddToHighlightNames string="!Mage Rechargable Gem Found!" foreColor=2 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
echo ** !Mage Rechargable Gem Found! **
DeleteFromHighlightNames string="!Mage Rechargable Gem Found!"
DeleteFromHighlightNames string="**"
AddToHighlightNames string="**" foreColor=15 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo **********************************
DeleteFromHighlightNames string="**"
exit

Help:
AddToHighlightNames string="**" foreColor=3 highlightEntireLine=TRUE notOnWordBoundary=FALSE caseInsensitive=FALSE /quiet
echo ************************************************** ****************************
DeleteFromHighlightNames string="**"
AddToHighlightNames string="***" foreColor=3 highlightEntireLine=FALSE notOnWordBoundary=FALSE caseInsensitive=FALSE /quiet
AddToHighlightNames string="HELP" foreColor=9 highlightEntireLine=FALSE notOnWordBoundary=FALSE caseInsensitive=FALSE /quiet
echo ** HELP -=- Fully Automated Purifier by Shaelun (v1.71) -=- HELP **
echo ** **
echo ** -=- Usage is '.pure <bag w/ unsung gems> <bag to put finished gems in>'. **
echo ** Script defaults to <container> and <user9> if one/both are omitted. **
echo ** It will check a gem that cannot be purified by loresinging, and will **
echo ** place any orb gems found in the third command-line variable, or **
echo ** default to the <user7> variable if no input is provided. Note that **
echo ** if you don't want them seperated, just set <user7> and <user9> to **
echo ** the same container name. **
echo ** **
echo ** -=- The <container> and <user9> variables are accessed by going to **
echo ** 'Configuration' --> 'Options...' and clicking the 'Variables' tab. **
echo ** **
echo ** -=- The script will not wrack if you have less than 7 current spirit, **
echo ** or if you have 6 or fewer maximum spirit points. It will also **
echo ** check the room for any non-members, and if any are detected, will **
echo ** hide before wracking. If wracking is not an option (for any **
echo ** reason), it will pause for 30 seconds before rechecking your mana. **
echo ** **
echo ** -=- The spirit check is 100% reliable, but on occasion the room check **
echo ** will result in wracking in the presence of a non-member. **
echo ** **
echo ** -=- (v1.5+) Now supports up to 10 loresong verses - no more mind-numbing **
echo ** repetition to shame your poetic skills in front of others... **
echo ** However, be aware it starts over at the 1st one every time it's run. **
echo ** To utilize these cycling loresong verses, you have to manually edit **
echo ** the loresongs within the script. It will start at "Lore1:" and **
echo ** use "Lore2:" for the next loresinging, and continue in that **
echo ** fashion up to "Lore10:" at which point it starts over at 1. Just **
echo ** remember to use the save variable (%_s, no underscore) for the gem **
echo ** name. If you don't bother to do this, it will always default to the **
echo ** songs I included (which work, but are nothing you want to show off). **
echo ** **
echo ** -=- For a list of recognized gems, start script with the 'list' **
echo ** HELP command line variable. HELP **
DeleteFromHighlightNames string="***"
AddToHighlightNames string="**" foreColor=3 highlightentireline=TRUE /quiet
echo ************************************************** ****************************
DeleteFromHighlightNames string="HELP"
DeleteFromHighlightNames string="**"
exit

List:
AddToHighlightNames string="**" foreColor=3 highlightEntireLine=TRUE notOnWordBoundary=FALSE caseInsensitive=FALSE /quiet
echo ************************************************** *******
DeleteFromHighlightNames string="**"
AddToHighlightNames string="***" foreColor=3 highlightEntireLine=FALSE notOnWordBoundary=FALSE caseInsensitive=FALSE /quiet
echo ** ..List of recognized gem types.. **
echo ** (56 gems) **
echo ** -Diamond -Agate **
echo ** -Emerald -Ambergris **
echo ** -Ruby -Azurite **
echo ** -Pearl -Beryl **
echo ** -Sapphire -Bloodjewel **
echo ** -Opal -Bloodstone **
echo ** -Lapis Lazuli -Bluerock **
echo ** -Jacinth -Caederine **
echo ** -Garnet -Cordierite **
echo ** -Moonstone -Deathstone **
echo ** -Topaz -Doomstone **
echo ** -Gem -Dreamstone **
echo ** -Coral -Eostone **
echo ** -Blazestar -Firestone **
echo ** -Despanal -Galena **
echo ** -Feystone -Geode **
echo ** -Sunstone -Hyacinth **
echo ** -Starstone -Onyx **
echo ** -Carbuncle -Pyrite **
echo ** -Heliodor -Peridot **
echo ** -Shimmertine Shard -Rhimar-bloom **
echo ** -Faenor-bloom -Riftshard **
echo ** -Shard of Rainbow Quartz -Riftstone **
echo ** -Turquoise Stone -Rosepar **
echo ** -Pink Rhodocrosite Stone -Wyrdshard **
echo ** -Pink Spinel -Glimaerstone **
DeleteFromHighlightNames string="***"
AddToHighlightNames string="***" foreColor=3 highlightentireline=TRUE /quiet
echo ************************************************** *******
DeleteFromHighlightNames string="***"
exit

Skip:
shift
goto check

Empty:
AddToHighlightNames string="***" foreColor=3 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************
DeleteFromHighlightNames string="***"
AddToHighlightNames string="**" foreColor=3 highlightEntireLine=FALSE caseInsensitive=FALSE /quiet
echo ** Purifying Finished **
DeleteFromHighlightNames string="**"
AddToHighlightNames string="***" foreColor=3 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************
DeleteFromHighlightNames string="***"
exit

Take_Gem:
if_1 goto user_take
put take %s from my %container
match mana_check You remove
match error could not find
match error Get what?
match take_gem ...wait
match stunned stunned
matchwait

User_Take:
put take my %s from my %1
match mana_check You remove
match error could not find
match error Get what?
match take_gem ...wait
match stunned stunned
matchwait

Error:
AddToHighlightNames string="**" foreColor=12 highlightEntireLine=TRUE caseInsensitive=FALSE /quiet
echo ************************************************** *******
echo ** The expected gem was not found in your container. **
echo ** This is almost exclusively due to random items with **
echo ** recognized gem types in their names. You may need **
echo ** to eliminate any "an opal-studded circlet," or **
echo ** similar items by manually removing them from your **
echo ** container, and then restarting the script. **
echo ** Pausing for 5 secs, then checking again just incase **
echo ************************************************** *******
DeleteFromHighlightNames string="**"
pause 5
goto check

Lore_Mana_Check:
put experience
match wrack_check Mana: 0/
match wrack_check Mana: 1/
match wrack_check Mana: 2/
match wrack_check Mana: 3/
match lore%c max
matchwait

Mana_Check:
put experience
match wrack_check Mana: 0/
match wrack_check Mana: 1/
match wrack_check Mana: 2/
match wrack_check Mana: 3/
match Prep_Song max
matchwait

Mana_Check_Almost:
put experience
match wrack_check_almost Mana: 0/
match wrack_check_almost Mana: 1/
match wrack_check_almost Mana: 2/
match wrack_check_almost Mana: 3/
match Prep_Song_almost max
matchwait

Wrack_check:
pause
put health
match NonCol Maximum Spirit Points: 5
match NonCol Maximum Spirit Points: 4
match NonCol Maximum Spirit Points: 3
match NonCol Maximum Spirit Points: 2
match noncol You can not seem to do that.
match wrack_room_check Remaining Spirit Points: 10
match wrack_room_check Remaining Spirit Points: 9
match wrack_room_check Remaining Spirit Points: 8
match wrack_room_check Remaining Spirit Points: 7
match wrack_wait Remaining Spirit Points: 6
match wrack_wait Remaining Spirit Points: 5
match wrack_wait Remaining Spirit Points: 4
match wrack_wait Remaining Spirit Points: 3
match wrack_wait Remaining Spirit Points: 2
match wrack_wait Remaining Spirit Points: 1
match stunned stunned
matchwait

Wrack_Check_Almost:
pause
put health
match noncol You can not seem to do that.
match NonCol Maximum Spirit Points: 5
match NonCol Maximum Spirit Points: 4
match NonCol Maximum Spirit Points: 3
match NonCol Maximum Spirit Points: 2
match wrack_room_check_a Remaining Spirit Points: 11
match wrack_room_check_a Remaining Spirit Points: 10
match wrack_room_check_a Remaining Spirit Points: 9
match wrack_room_check_a Remaining Spirit Points: 8
match wrack_room_check_a Remaining Spirit Points: 7
match wrack_wait_a Remaining Spirit Points: 6
match wrack_wait_a Remaining Spirit Points: 5
match wrack_wait_a Remaining Spirit Points: 4
match wrack_wait_a Remaining Spirit Points: 3
match wrack_wait_a Remaining Spirit Points: 2
match wrack_wait_a Remaining Spirit Points: 1
match stunned stunned
matchwait

NonCoL:
pause 30
goto mana_check

Wrack_room_check:
pause
put look
match noncol You can not seem to do that.
match noncol are not permitted
match Wrack_verify_member Also here:
match Wrack Obvious exits:
match Wrack Obvious paths:
match stunned stunned
matchwait

Wrack_room_check_a:
pause
put look
match noncol You can not seem to do that.
match noncol are not permitted
match Wrack_verify_member_a Also here:
match Wrack_a Obvious exits:
match Wrack_a Obvious paths:
match stunned stunned
matchwait

Wrack_verify_member:
pause 2
put sign of recognition
put health
match noncol You can not seem to do that.
match noncol are not permitted
match wrack acknowledges your sign
match wrack_hide Stamina
match stunned stunned
matchwait

Wrack_verify_member_a:
wait
put look
match wrack_verify_multiple Also here:
match wrack Obvious exits:
matchwait

Wrack_Verify_Multiple_C:
match wrack_verify_multiple ,
match wrack_verify_member Obvious exits:
matchwait

Wrack_verify_Multiple:

put sign of recognition
match verified1
matchwait

Wrack_Verify_Member:
pause 2
put sign of recognition
put health
match noncol You can not seem to do that.
match noncol are not permitted
match wrack_a acknowledges your sign
match wrack_hide_a Stamina
match stunned stunned
matchwait

Wrack_Hide:
pause
put hide
match wrack that no one has noticed
match wrack_hide fail
match wrack_hide ...wait
matchwait

Wrack_Hide_A:
wait
put hide
match noncol You can not seem to do that.
match wrack that no one has noticed
match wrack_hide_a fail
match wrack_hide_a ...wait
matchwait

Wrack_Wait:
pause 15
goto mana_check

Wrack_Wait_a:
pause 15
goto mana_check_a

Wrack:
pause
put sign of wracking
match noncol You can not seem to do that.
match noncol are not permitted
match mana_check torn and reshaped
match stunned stunned
matchwait

Wrack_a:
pause
put sign of wracking
match noncol You can not seem to do that.
match noncol are not permitted
match mana_check_almost torn and reshaped
match stunned stunned
matchwait

Prep_Song:
pause 3
goto prep_song_cont

Prep_Song_Cont:
put prep 1004
match sing_gem spellsong is ready
match stunned stunned
matchwait

Prep_Song_Almost:
pause 3
put prep 1004
match sing_gem_almost spellsong is ready
match stunned stunned
matchwait

Sing_Gem:
wait
put sing at my %s
match lore cannot
match orb_check crystalline structure reforming as the gem becomes more perfect.
match orb_check_almost appearing smoother and more pure in color.
match gem_done crystalline structure of the gem improves somewhat.
match gem_done hear it crack loudly and strain under the force of the song.
match prep_song armor prevents
match prep_song ...wait
match gem_shatter thousands of
match gem_shatter stunned
match gem_shatter damage!
matchwait

Sing_Gem_Almost:
wait
put sing at my %s
match orb_check crystalline structure reforming as the gem becomes more perfect.
match gem_done appearing smoother and more pure in color.
match gem_done crystalline structure of the gem improves somewhat.
match gem_done hear it crack loudly and strain under the force of the song.
match gem_done smokes
match prep_song_almost armor prevents
match prep_song_almost ...wait
match gem_shatter thousands of
match gem_shatter stunned
match gem_shatter damage!
matchwait

Lore:
wait
goto lore_mana_check

Lore1:
pause 3
counter add 1
put loresing %s, I desire to learn something from you;Namely your purpose - so what do you do?
match rechargable pulse
match orb_done draw
matchwait

Lore2:
pause 3
counter add 1
put loresing I want your purpose, %s, so tell me;Or I'll break you into three!
match rechargable pulse
match orb_done draw
matchwait

Lore3:
pause 3
counter add 1
put loresing Well %s, this is between you and I;Tell me your purpose or I'll see how well you fly!
match rechargable pulse
match orb_done draw
matchwait

Lore4:
pause 3
counter add 1
put loresing Perhaps a more gentle approach, %s, is in order;Tell me, what's your purpose - and don't show me any disorder
match rechargable pulse
match orb_done draw
matchwait

Lore5:
pause 3
counter add 1
put loresing How many of you do I have to ask for their purpose before I'm done?;Damn %s, all of you gems are making me want to just run!
match rechargable pulse
match orb_done draw
matchwait

Lore6:
pause 3
counter add 1
put loresing I guess I can handle one more purpose check, %s, but only for you;So don't let me down and show me that our friendship is true
match rechargable pulse
match orb_done draw
matchwait

Lore7:
pause 3
counter add 1
put loresing Oh no, %s, not yet another thing to get answers about?;Very well, what's your purpose, and leave me with no doubt
match rechargable pulse
match orb_done draw
matchwait

Lore8:
pause 3
counter add 1
put loresing My voice is starting to go, %s, so listen up;What's your purpose, and would you let me put ya in a cup?
match rechargable pulse
match orb_done draw
matchwait

Lore9:
pause 3
counter add 1
put loresing I've no more patience, %s, tell me now;Of your purpose, and I won't make you shrink and cow
match rechargable pulse
match orb_done draw
matchwait

Lore10:
pause 3
counter set 1
put loresing For the love of all that's sacred, %s, no more!;Why must I yet again ask for a purpose with a lore?
match rechargable pulse
match orb_done draw
matchwait

Orb_Check:
match orb_done essence
match mana_check Roundtime
matchwait

Orb_Check_Almost:
match orb_done essence
match mana_check_almost Roundtime
matchwait

Gem_Done:
if_2 goto gem_done_user
pause
put put my %s in my %user9
match check_wait You put
match stunned stunned
match check_wait could not find
match open_user9 closed
matchwait

Orb_Done:
pause
if_3 put put my %s in my %3
if_3 match check_wait You put
if_3 match stunned stunned
if_3 match check_wait could not find
if_3 match open_user7 closed
if_3 matchwait
put put my %s in my %user7
match check_wait You put
match stunned stunned
match check_wait could not find
match open_user7 closed
matchwait

Gem_Done_User:
pause
put put my %s in my %2
match check_wait You put
match stunned stunned
match check_wait could not find
match open_user9 closed
matchwait

Check_Wait:
wait
goto check

Open_User9:
if_1 goto open_user_supplied
put open my %user9
pause 3
goto gem_done

Open_User7:
if_3 put open my %3
if_3 pause 3
if_3 goto orb_done
put open my %user7
pause 3
goto orb_done

Open_User_Supplied:
put open my %2
pause 3
goto gem_done

Gem_Shatter:
goto stunned

Stunned:
pause 10
goto check

Check:
if_1 goto user_check
put look in my %container
put health
goto sentry

User_Check:
put look in my %1
put health
goto sentry

Open_Container:
if_1 goto open_user_container
put open my %container
pause 3
goto check

Open_User_Container:
put open my %1
pause 3
goto check

Check2:
if_1 goto 2nduser_check
put look in my %container
put health
goto sentry2

2ndUser_Check:
put look in my %1
put health
goto sentry2

Sentry:
match open_container closed
match diamond diamond
match emerald emerald
match ruby ruby
match pearl pearl
match sapphire sapphire
match opal opal
match lapis lapis lazuli
match jacinth jacinth
match garnet garnet
match moonstone moonstone
match turquoise spiderweb turquoise
match stone turquoise stone
match stone pink rhodochrosite stone
match topaz topaz
match gem gem
match coral coral
match blazestar blazestar
match despanal despanal
match feystone feystone
match sunstone sunstone
match starstone starstone
match quartz shard of rainbow quartz
match heliodor heliodor
match glimaerstone glimaerstone
match carbuncle carbuncle
match faenor-bloom faenor-bloom
match shard shimmertine shard
match spinel pink spinel
match chalcedony chalcedony
match tourmaline tourmaline
match check2 Remaining Stamina
matchwait

Sentry2:
match aetherstone aetherstone
match agate agate
match ambergris ambergris
match azurite azurite
match beryl beryl
match bloodjewel bloodjewel
match bloodstone bloodstone
match bluerock bluerock
match caederine caederine
match cordierite cordierite
match deathstone deathstone
match doomstone doomstone
match dreamstone dreamstone
match eostone eostone
match firestone firestone
match galena galena
match geode geode
match hyacinth hyacinth
match onyx onyx
match pyrite pyrite
match peridot peridot
match rhimar-bloom rhimar-bloom
match riftshard riftshard
match riftstone riftstone
match rosepar rosepar
match wyrdshard wyrdshard
match empty Remaining Stamina
matchwait

Aetherstone:
save aetherstone
goto take_gem

Agate:
save agate
goto take_gem

Ambergris:
save ambergris
goto take_gem

Azurite:
save azurite
goto take_gem

Beryl:
save beryl
goto take_gem

Bloodjewel:
save bloodjewel
goto take_gem

Bloodstone:
save bloodstone
goto take_gem

Bluerock:
save bluerock
goto take_gem

Caederine:
save caederine
goto take_gem

Cordierite:
save cordierite
goto take_gem

Deathstone:
save deathstone
goto take_gem

Doomstone:
save doomstone
goto take_gem

Dreamstone:
save dreamstone
goto take_gem

Eostone:
save eostone
goto take_gem

Firestone:
save firestone
goto take_gem

Galena:
save galena
goto take_gem

Geode:
save geode
goto take_gem

Hyacinth:
save hyacinth
goto take_gem

Onyx:
save onyx
goto take_gem

Pyrite:
save pyrite
goto take_gem

Peridot:
save peridot
goto take_gem

Rhimar-bloom:
save rhimar-bloom
goto take_gem

Riftshard:
save riftshard
goto take_gem

Riftstone:
save riftstone
goto take_gem

Rosepar:
save rosepar
goto take_gem

Wydshard:
save wyrdshard
goto take_gem

Spinel:
save spinel
goto take_gem

Shard:
save shard
goto take_gem

Faenor-bloom:
save faenor-bloom
goto take_gem

Blazestar:
save blazestar
goto take_gem

Despanal:
save despanal
goto take_gem

Feystone:
save feystone
goto take_gem

Diamond:
save diamond
goto take_gem

Emerald:
save emerald
goto take_gem

Ruby:
save ruby
goto take_gem

Pearl:
save pearl
goto take_gem

Sapphire:
save sapphire
goto take_gem

Opal:
save opal
goto take_gem

Lapis:
save lapis
goto take_gem

Jacinth:
save jacinth
goto take_gem

Garnet:
save garnet
goto take_gem

Moonstone:
save moonstone
goto take_gem

Stone:
save stone
goto take_gem

Topaz:
save topaz
goto take_gem

Gem:
save gem
goto take_gem

Coral:
save coral
goto take_gem

Sunstone:
save sunstone
goto take_gem

Starstone:
save starstone
goto take_gem

Quartz:
save quartz
goto take_gem

Heliodor:
save heliodor
goto take_gem

Glimaerstone:
save glimaerstone
goto take_gem

Carbuncle:
save carbuncle
goto take_gem

Turquoise:
save turquoise
goto take_gem

Chalcedony:
save chalcedony
goto take_gem

Tourmaline:
save tourmaline
goto take_gem

#Tourmaline:
# save tourmaline
# goto take_gemm take_gemm goto take_gem

#Tourmaline:
# save tourmaline
# goto take_gemm goto take_gemmm

Drunken Durfin
06-12-2008, 10:01 AM
Do you mean using Wizard or StormFront to run a script? No, there's no command to check your mana.

There is not a direct command, but there is a work-around.

CheckMana:
PUT send 4 ManaCheck
MATCH CastSpell I could not find what you were referring to.
MATCH OutOfMana You don't have that many points to transfer!
MATCHWAIT

CastSpell:
PUT sing 1004 my %1
PAUSE 3
GOTO CheckMana

OutOfMana:
ECHO ===========
ECHO OUT OF MANA
ECHO ===========
WAITFOR You feel at full magical power again.
GOTO CastSpell

Tumbadoo
06-14-2008, 08:52 PM
Does this work on storm front?

Drunken Durfin
06-14-2008, 10:10 PM
SF is all I use.