PDA

View Full Version : Skinning script using 604



pmauddib
10-20-2006, 07:38 AM
Basicaly I made this LICH script for my ranger. I don't have all of the exceptions in yet, but right now I am having problems with the first IF statment. It allways wants to cast skinning even when it is active. Any help?

if checkspell"Skinning"
echo "you allready have the Skinning spell active"
goto "skinit"
else
if checkmana >= 4
echo "casting the spell for Skinning"
fput "incant 604"
else
echo "Sorry out of mana"
goto "skinit"
end
end

skinit:
fput "store weapon"
fput "ready 2weapon"
match "sucess", "you skinned"
match "failure", "ruined"
match "failure", "has already"
fput "skin #{script.vars[1]}"
matchwait

sucess:
fput "store 2weapon"
fput "get #{script.vars[2]}"
fput "stow #{script.vars[2]}"
fput "search #{script.vars[1]}"
fput "ready weapon"
exit

failure:
fput "store 2weapon"
fput "search #{script.vars[1]}"
fput "ready weapon"
exit

Caede
10-20-2006, 11:13 AM
I'm not sure, it looks like it should work. Make sure infomonitor is running. I have used checkspell successfully, but with slightly different syntax.

Try this:


if (checkspell("skinning"))
echo "you allready have the Skinning spell active"
elsif (checkmana >= 4)
echo "casting the spell for Skinning"
fput "incant 604"
else
echo "Skinning is not active, and you don't seem to have enough mana."
end
goto "skinit"

skinit:
fput "store weapon"
fput "ready 2weapon"
match "sucess", "you skinned"
match "failure", "ruined"
match "failure", "has already"
fput "skin #{script.vars[1]}"
matchwait

sucess:
fput "store 2weapon"
fput "get #{script.vars[2]}"
fput "stow #{script.vars[2]}"
fput "search #{script.vars[1]}"
fput "ready weapon"
exit

failure:
fput "store 2weapon"
fput "search #{script.vars[1]}"
fput "ready weapon"
exit

pmauddib
10-20-2006, 01:16 PM
I will try putting parenthesses in my first IF statment. It has been realy wierd, the second IF ELSE statment works great, filting out the mana check without a problem, but the first is kicking my ass, it might be a simple syntax issue.

In a seperate issue, does anyone know why occasionaly a script or a settings file would get all the carrage returns stripped out of them? I use notepad.exe in a windowsXP enviroment.

pmauddib
10-20-2006, 11:05 PM
Sorry yourn and mine both don;t work, maybe something else is up with my setup. Anyone have any ideas, I will DL the latest ver tonight.

pmauddib
10-20-2006, 11:46 PM
Nope, I updated LICH and the infomonitor, and I still have the same problem. Here is a quick log of the events:

You swing a dual-bladed battle axe at a giant ant!
AS: +53 vs DS: +27 with AvD: +38 + d100 roll: +98 = +162
... and hit for 49 points of damage!
Slash to the giant ant's lower back!
The giant ant falls to the ground and dies, its feelers twitching.
Roundtime: 5 sec.
R>;castskin ant pinc
--- Lich: castskin active.
[castskin: casting the spell for Skinning]
[castskin]^incant 604
A giant ant just arrived.
>
[castskin]^store weapon
You make a simple motion, quietly invoking the Skinning spell...
Your spell is ready.
You gesture.
You feel more nimble.
Cast Roundtime 3 Seconds.
>
[castskin]^ready 2weapon
[castskin]^skin ant
You put a dual-bladed battle axe in your knitted pack.
>
You remove a skinning knife from in your knitted pack.
>
You skinned the giant ant, yielding an ant pincer.
>
[castskin]^store 2weapon
You put a skinning knife in your knitted pack.
>
[castskin]^get pinc
You pick up an ant pincer.
>
[castskin]^stow pinc
>
[castskin]^search ant
You put an ant pincer in your knitted pack.
>
[castskin]^ready weapon
You search the giant ant.
It had nothing of interest.
A giant ant decays into compost.
>
--- Lich: castskin has exited.
You remove a dual-bladed battle axe from in your knitted pack.
>at ant
You swing a dual-bladed battle axe at a giant ant!
AS: +53 vs DS: +22 with AvD: +38 + d100 roll: +3 = +72
A clean miss.
Roundtime: 5 sec.
R>at ant
You swing a dual-bladed battle axe at a giant ant!
AS: +53 vs DS: +22 with AvD: +38 + d100 roll: +59 = +128
... and hit for 23 points of damage!
Slash to the giant ant's chest!
That heart's not broken, it's only scratched.
Roundtime: 5 sec.
R>at ant
A giant ant tries to bite you!
You barely dodge the attack!
>
You swing a dual-bladed battle axe at a giant ant!
AS: +53 vs DS: +20 with AvD: +38 + d100 roll: +94 = +165
... and hit for 56 points of damage!
Crossing slash to chest catches the giant ant's attention!
The giant ant falls to the ground and dies, its feelers twitching.
Roundtime: 5 sec.
R>;castskin ant pinc
--- Lich: castskin active.
[castskin: casting the spell for Skinning]
[castskin]^incant 604
You make a simple motion, quietly invoking the Skinning spell...
Your spell is ready.
You gesture.
You feel more nimble.
Cast Roundtime 3 Seconds.
>
[castskin]^store weapon
You put a dual-bladed battle axe in your knitted pack.
>
[castskin]^ready 2weapon
You remove a skinning knife from in your knitted pack.
>
[castskin]^skin ant
You skinned the giant ant, yielding an ant pincer.
>
[castskin]^store 2weapon
You put a skinning knife in your knitted pack.
>
[castskin]^get pinc
You pick up an ant pincer.
>
[castskin]^stow pinc
You put an ant pincer in your knitted pack.
>
[castskin]^search ant
You search the giant ant.
It had nothing else of value.
A giant ant decays into compost.
>
[castskin]^ready weapon
--- Lich: castskin has exited.
You remove a dual-bladed battle axe from in your knitted pack.