PDA

View Full Version : Scription Question 1/28/04



J-Tech
01-28-2004, 01:42 PM
Alright, heres my question...

I was/am writing a script that spells up, and i was wondering if theres a way to save a value and subtract from that value every time a spell is casted, so instead of doing this:

put prep 401
put cast
pause 3
put prep 401
put cast
pause 3
put prep 401
put cast
pause 3
put prep 401
put cast
pause 3
put prep 401
put cast
pause 3
put prep 401
put cast
pause 3
exit

I could just do this:

int CastLoop = 6;

and then some way run the script so that
it'll cast the spell and then -1 from the CastLoop value.

Ya so thats what i was wondering if this can be done in the WizardFE scripting...

-John

[Edited on 1-28-2004 by J-Tech]

[Edited on 1-28-2004 by J-Tech]

J-Tech
01-28-2004, 01:53 PM
Figured it out, nevermind, thanks for reading tho!

-John

Jonty
01-28-2004, 02:05 PM
Post your solution.

J-Tech
01-28-2004, 02:05 PM
Another question

Is there a guide that lists all the commands for adding highlight strings via a script, and also a bible on the color codes and what they goto?

-John

Jonty
01-28-2004, 02:08 PM
http://www.geocities.com/bladenight95/scripts.html

He has the eScape's script guide posted. For the most part, it's the same for the Wizard.

J-Tech
01-28-2004, 02:11 PM
I'll just do this:

counter add 6

then have it check what the value is and make it goto a match command for this so it would be like

401:
save 401
counter add 6
goto %c

6:
put prep %s
put cast
pause 2.5
counter subtract 1
goto %c
exit

then it will goto the match command 5 and cast what is in %s

sounds okay?

-John

Jonty
01-28-2004, 02:14 PM
Yeah, sounds ok.... I'm assuming you want to use this script to cast certain spells 6 times via the save variable?

J-Tech
01-28-2004, 02:16 PM
Something like that, i'm makeing a guided spell up script that can cast any of my spells either 2 hours or 4 hours, so i want it to save the variable and just loop to save space, you know...

-John

Bobmuhthol
01-28-2004, 03:14 PM
Do this instead.

Counter set %1

401:
save 401
goto %c

LabelError:
Put Prep %s
Put Cast
Pause 2.5
Counter subtract
Goto %c

0:
exit

Lord Whirlin
01-28-2004, 03:19 PM
What I did for my spellup script is as follows

%c:
Match Needmana Mana: -
Match Needmana Mana: 0/
Match Needmana Mana: 1/
Match Needmana Mana: 2/
Match Needmana Mana: 3/
Match Needmana Mana: 4/
Match Needmana Mana: 5/
Match Cast406 Mana:
Put EXP
Matchwait

Cast406:
Put prep 406
Match return Spell Hindrance
Match Done bright
Put cast
Matchwait

Return:
goto %c

Done:
Counter add 1
Goto %c

You get the idea. It'll check your mana before each cast. Within the nomana label you can put in a command to check spirit, to wrack perhaps, or to wait until you see "You feel at full magical power again.

Here's my Nomana label

Echo ***OUT OF MANA**
Match return You shudder as your life
Match return You feel at full magical power again
Match return Suddenly, a small bolt of energy
Match return You feel more refreshed.
Match return you feel less drained
Matchwait

you get the idea. You can change that around as you want. Feel free to Drop me an IM or anything if you'd like a copy of my spellup script, I haven't updated it for GS4, but you can use it as an outline for yours.

-Whirlin

J-Tech
01-28-2004, 03:36 PM
Jonty, or someone else, do you guys have a precompiled list of like what color will be used for which ever value you input ... i.e. 1 = white, 2 = green, 3 = purple....

Thanks,
-John

J-Tech
01-28-2004, 03:39 PM
Thanks bob, thats a much more logical way to do it. :thumbsup:

-John

Jonty
01-28-2004, 03:41 PM
Originally posted by J-Tech
Jonty, or someone else, do you guys have a precompiled list of like what color will be used for which ever value you input ... i.e. 1 = white, 2 = green, 3 = purple....

Thanks,
-John

Open your text strings window. You will see a line near the bottom with all the colors.... They are numbered in that order.

Jonty
01-28-2004, 03:42 PM
Originally posted by Lord Whirlin
What I did for my spellup script is as follows

%c:

Too bad "%c:" isn't recognized as a label....

Jonty
01-28-2004, 03:45 PM
Originally posted by Lord Whirlin
Cast406:
Put prep 406
Match return Spell Hindrance
Match Done bright
Put cast
Matchwait

Return:
goto %c


If you insert a label that actually works, the return section is pointless. Just match to the section that the goto is for instead.

Lord Whirlin
01-28-2004, 06:32 PM
Originally posted by Jonty

Originally posted by Lord Whirlin
Cast406:
Put prep 406
Match return Spell Hindrance
Match Done bright
Put cast
Matchwait

Return:
goto %c


If you insert a label that actually works, the return section is pointless. Just match to the section that the goto is for instead.

You're right about the first %c being wrong, that was a typo. Ment to be a number. The return label is also used for the nomana label. But yeah, you're right, it can be cut out. I never said it was as clean and efficient as possible, and my main purpose of posting it was for the checking mana matches.

Jonty
01-28-2004, 06:36 PM
Originally posted by Lord Whirlinand my main purpose of posting it was for the checking mana matches.

Yeah, the mana checking section is ok. But there's a way to do it with less scroll for the user using the send verb. You get certain messaging when you try to send to your self, or just "send 39 fhgkdgh".
So you could use something like that for spell ups.

[Edited on 1-28-2004 by Jonty]

Deathravin
01-28-2004, 06:37 PM
My Spellup Script:

#Spells: Spelling up Full

Echo
Echo **************
Echo *
Echo * Spelling up!:
Echo *
Echo * 120: 5 casts - 250 minutes - 21 mana per cast
Echo * 107: 5 casts - 250 minutes - 7 mana per cast
Echo * 102: 5 casts - 250 minutes - 6 mana per cast
Echo * 101: 5 casts - 250 minutes - 1 mana per cast
Echo *
Echo * 414: 5 casts - 250 minutes - 14 mana per cast
Echo * 406: 5 casts - 250 minutes - 6 mana per cast
Echo * 401: 5 casts - 250 minutes - 1 mana per cast
Echo *
Echo * 712: 4 casts - 212 minutes - 22 mana per cast
Echo *
Echo *************


VeryveryStart:
counter set 1
if_1 counter set %1

Resting:
Match Restingpause Mana: 0/
Match Restingpause Mana: 1/
Match Restingpause Mana: 2/
Match Restingpause Mana: 3/
Match Restingpause Mana: 4/
Match Restingpause Mana: 5/
Match Restingpause Mana: 6/
Match Restingpause Mana: 7/
Match Restingpause Mana: 8/
Match Restingpause Mana: 9/
Match Restingpause Mana: 10/
Match Restingpause Mana: 11/
Match Restingpause Mana: 12/
Match Restingpause Mana: 13/
Match Restingpause Mana: 14/
Match Restingpause Mana: 15/
Match Restingpause Mana: 16/
Match Restingpause Mana: 17/
Match Restingpause Mana: 18/
Match Restingpause Mana: 19/
Match Restingpause Mana: 2
Match Restingpause Mana: 3
Match Restingpause Mana: 4
Match Restingpause Mana: 5
Match Restingpause Mana: 6
Match Restingpause Mana: 7
Match Spellingup%c Mana: 8
Match Spellingup%c Mana: 9
Match Spellingup%c Mana: 1
put Experience
Matchwait

Restingpause:
pause 120
Goto Resting


Spellingup1:
Spellingup2:
Spellingup3:
Spellingup4:
Goto SpellupAll
Spellingup5:
Goto SpellupSome
Spellingup6:
Echo
Echo **************
Echo *
Echo * Done Spelling up!
Echo *
Echo **************
Exit

SpellupAll:
pause 2

Echo
Echo **************
Echo *
Echo * Spelling up!
Echo *
Echo * Number %c of 4
Echo *
Echo * 1 cast of:
Echo *
Echo * 712 - Cloak of Shadows
Echo *
Echo **************

put prep 712
put cast
waitfor you gesture
pause 4

SpellupSome:
Echo
Echo **************
Echo *
Echo * Spelling up!
Echo *
Echo * Number %c of 5
Echo *
Echo * 1 cast of:
Echo *
Echo * 120 - Lesser Shroud
Echo * 107 - Spirit Warding II
Echo * 102 - Spirit Barrier
Echo * 101 - Spirit Warding I
Echo *
Echo **************

put prep 120
put cast
waitfor you gesture
pause 4
put prep 107
put cast
waitfor you gesture
pause 4
put prep 102
put cast
waitfor you gesture
pause 4
put prep 101
put cast
waitfor you gesture
pause 4

Echo
Echo **************
Echo *
Echo * Spelling up!
Echo *
Echo * Number %c of 5
Echo *
Echo * 1 cast of:
Echo *
Echo * 414 - Elemental Defense III
Echo * 406 - Elemental Defense II
Echo * 401 - Elemental Defense I
Echo *
Echo **************
put prep 414
put cast
waitfor you gesture
pause 4
put prep 406
put cast
waitfor you gesture
pause 4
put prep 401
put cast
waitfor you gesture
pause 4
counter add
goto Resting



Use that John.

Jonty
01-28-2004, 06:41 PM
Here's the messaging you'll ned for the matches to condense the mana checking code:

Not enough mana:
send 116 jfhl
You don't have that many points to transfer!

Enough mana:
send 115 jfhl
I could not find what you were referring to.

Too injured to cast:
send 115 jfhl
You are in no condition to be performing this ritual!

Deathravin
01-28-2004, 06:50 PM
LOL thanks. I was wondering how I was going to make my hunting scripts when I hit over 200 mana.

Anebriated
02-03-2004, 02:11 PM
Ok i tried to write a script using Jonty's method but it just said that they could not find who i was referring to. any suggestions?