Ruroken
2007-06-29 14:21:25
Well these are a few functions I wrote a while back for my pest control script. Enjoy.
I don't even know if these have been written before :p oh well.
EDIT : Uploaded the fix. Thanks Bob.
{*******************************************************************************
Function HasStaff : Boolean;
By: Ruroken
Description: Checks to see if your character is holding a staff.
*******************************************************************************}
{*******************************************************************************
Function AutoPickSpell : Boolean;
By: Ruroken
Description: Will select the strongest possible spell
*******************************************************************************}
{*******************************************************************************
procedure SetCombat(ToTrain, TrainWhat : String; TrainDef : Boolean);
By: Ruroken
Description: Will set your combat styles. Also will select spells.
Valid args for TrainWhat
if ToTrain = 'melee' valid args are :
- atk
- str
- share
- def
if ToTrain = 'range' valid args are :
- accurate
- rapid
- long
if ToTrain = 'mage' valid args are :
- wind blast
- water blast
- earth blast
- fire blast
- wind bolt
- water bolt
- earth bolt
- fire bolt
- wind blast
- water blast
- earth blast
- fire blast
- wind wave
- water wave
- earth wave
- fire wave
// These only apply to mage \\
- Mages MUST have a staff!
- If you want to train def + mage set TrainDef to 'true'
- If you want the script to AutoPick the spell set TrainWhat to 'AutoPick'
and have the runes for the spell wanted in invin.
*******************************************************************************}
I don't even know if these have been written before :p oh well.
EDIT : Uploaded the fix. Thanks Bob.