TheThirdEye
06-16-2010, 04:15 AM
Well, I am still beating my head against the wall of understanding with writing scripts for PsiNet but suffering can lead to wisdom. With that in mind I have taken one of the scripts I use while hunting and always wished would somehow run in the background and converted it to do so. Any comments from the few of you that are actually scripting for Psinet would be appreciated. I acknowledge there is more that can be done here. I would like it to actually monitor the character's mana, then apply the signs when mana is available. As it stands right now will just hang if there is not enough mana for running the sign after it started the first time. This doesnt' make it very useful for lower level or mana intensive characters who will have to stop and restart the script if the sign runs out while low on mana. At least you won't fry your nerves.
#Utility for main (mana only) CoL signs
#Based on the script written by Lady Eiadh of Solhaven
#This script is designed to avoid frying your nerves.
#This is a looping script intended to run on PsiSage in the background while hunting
#Script will not run unless you have at least 9 mana
#Modified by Fiandel (PC TheThirdEye)
if(%me.mana < 9){
GOTO NoMana2
} else {
PUT Sign of Striking
WAIT
PUT Sign of Smiting
WAIT
PUT Sign of Warding
WAIT
PUT Sign of Defending
WAIT
PUT Sign of Deflection
GOTO Start
}
Start:
MATCH ChkMana1 WARDING is no longer
MATCH ChkMana2 STRIKING is no longer
MATCH ChkMana3 DEFENDING is no longer
MATCH ChkMana4 SMITING is no longer
MATCH ChkMana5 DEFLECTION is no longer
MATCHWAIT
ChkMana1:
if(%me.mana < 1){
GOTO NoMana
} else {
PUT sign of warding
GOTO Start
}
ChkMana2:
if(%me.mana < 1){
GOTO NoMana
} else {
PUT sign of striking
GOTO Start
}
ChkMana3:
if(%me.mana < 2){
GOTO NoMana
} else {
PUT sign of defending
GOTO Start
}
ChkMana4:
if(%me.mana < 2){
GOTO NoMana
} else {
PUT sign of smiting
GOTO Start
}
ChkMana5:
if(%me.mana < 3){
GOTO NoMana
} else {
PUT sign of deflection
GOTO Start
}
NoMana:
ECHO ***********************
ECHO *** NOT ENOUGH MANA ***
ECHO ***********************
GOTO Start
NoMana2:
ECHO ****************************
ECHO ******NOT ENOUGH MANA*******
ECHO **RESTART SCRIPT WHEN YOUR**
ECHO ***MANA IS GREATER THAN 9***
ECHO ****************************
GOTO EXIT
Please no more "Switch to Lich" or "Lich 4 LIFE!" or "You could do that better in LICH!". Yes, I understand that LICH is in every way the most awesomesauce software ever created and 100 to the 10th power better than PsiNet so there is no need to preach. I may even try LICH in the future but please, enough already.
#Utility for main (mana only) CoL signs
#Based on the script written by Lady Eiadh of Solhaven
#This script is designed to avoid frying your nerves.
#This is a looping script intended to run on PsiSage in the background while hunting
#Script will not run unless you have at least 9 mana
#Modified by Fiandel (PC TheThirdEye)
if(%me.mana < 9){
GOTO NoMana2
} else {
PUT Sign of Striking
WAIT
PUT Sign of Smiting
WAIT
PUT Sign of Warding
WAIT
PUT Sign of Defending
WAIT
PUT Sign of Deflection
GOTO Start
}
Start:
MATCH ChkMana1 WARDING is no longer
MATCH ChkMana2 STRIKING is no longer
MATCH ChkMana3 DEFENDING is no longer
MATCH ChkMana4 SMITING is no longer
MATCH ChkMana5 DEFLECTION is no longer
MATCHWAIT
ChkMana1:
if(%me.mana < 1){
GOTO NoMana
} else {
PUT sign of warding
GOTO Start
}
ChkMana2:
if(%me.mana < 1){
GOTO NoMana
} else {
PUT sign of striking
GOTO Start
}
ChkMana3:
if(%me.mana < 2){
GOTO NoMana
} else {
PUT sign of defending
GOTO Start
}
ChkMana4:
if(%me.mana < 2){
GOTO NoMana
} else {
PUT sign of smiting
GOTO Start
}
ChkMana5:
if(%me.mana < 3){
GOTO NoMana
} else {
PUT sign of deflection
GOTO Start
}
NoMana:
ECHO ***********************
ECHO *** NOT ENOUGH MANA ***
ECHO ***********************
GOTO Start
NoMana2:
ECHO ****************************
ECHO ******NOT ENOUGH MANA*******
ECHO **RESTART SCRIPT WHEN YOUR**
ECHO ***MANA IS GREATER THAN 9***
ECHO ****************************
GOTO EXIT
Please no more "Switch to Lich" or "Lich 4 LIFE!" or "You could do that better in LICH!". Yes, I understand that LICH is in every way the most awesomesauce software ever created and 100 to the 10th power better than PsiNet so there is no need to preach. I may even try LICH in the future but please, enough already.