The Players Corner Archive

Useful Warrior Guild Scripts

#Checks GLD Ranks

Start:
if_1 goto Check
exit

Check:
put gld rank %1
match Shift Warrior Guild
match Shift not part of your guild
match Shift Usage:
matchwait

Shift:
shift
goto Start reg

#Warcry for Repetitions

Start:
put warcry %1 %2
waitfor Roundtime
goto Start reg

For the sake of good script writing, it's 'better' to use %0 than to use %1, %1%2 etc etc, if it is a limited variable. IE if it's gonna be used once, or reused once. This accounts for a 1 worded critter upto an n worded critter and helps reduce errors.

Todays program was brought to you by the letter I and the number 69.

-=Insomniac=- reg

Thanks for the tip . Fewer code and increased efficiency... Sounds good.

I think I'll leave it how it is so people can see the error. Script still works fine though.

-Lord Ganryu reg

I see no difference from using 1% or 0%. I do not see how it will minimize bugs nor do I see how it would make you a 'good programmer'. Care to enlighten us? reg
Certainly.

LordGanryu's way:

.warcry other grey orc
I could not ind what you were referring to

My way:

.warcry other grey orc

Wow, it works.

Also, I never said it would make you a 'good programmer'. I said it is a better practise.

-=Insomniac=- reg

The "old-fashioned way" used to take decades. Not any more...

#Tackles Dummy for Reps

put stance offensive

Stand:
put stand
match Main You stand back up.
match Main You are already standing.
match Stand You struggle, but fail to stand.
matchwait

Main:
put push dummy
put look at dummy
match Setup The tackling dummy is currently on its side
match Tackle The tackling dummy is rocking
matchwait

Setup:
put pull dummy
waitfor You pull the tackling dummy back up onto its base.
put push dummy
waitfor give the tackling dummy a good
pause 5
goto Main

Tackle:
put tackle dummy
match Success and knock it over
match Failure and just miss
match Quit done with this task for now
matchwait

Success:
pause 4
put stand
waitfor You stand back up.
goto Main

Failure:
pause .5
goto Stand

Quit: reg

Ok...Not to keep nitpicking but...

The pause 5/pause 4's aren't needed. A simple pause 1 will do. The FE automatically waits through RT, and the pause 1 will simply account for a little game lag etc.

-=Insomniac=- reg

Some of the more advanced war cries use Round time instead of Roundtime.

#Warcry Script


if_1 goto Start
echo *
echo * Usage is .warc <cry name> [target]
echo *
exit

Start:
pause 1
put warcry %0
match Done [You have completed your training task.]
match done [You have completed this task.]
match Start Round time
match Start Roundtime
match Oops You'd feel a lot less silly,
match Rest You need to give your vocal cords a bit of a rest
match Repeat How does that go again?
matchwait

Oops:
put stand
pause 1
goto Start

Rest:
echo *
echo * Your voice is shot. Kick back, have an ale, and finish your task later.
echo *
exit

Done:
echo *
echo * You're all ready for your next task!
echo *
exit

Repeat:
echo *
echo * Your teacher has to repeat the lesson.
echo *
exit reg