PDA

View Full Version : AutoCraft Error



Guarrin
04-04-2010, 02:09 PM
First of all, I just switched to lich this week, and I have to say it is awesome. There's already a script for pretty much everything I want.

Down to the error at hand, I wanted to try autocraft out, but I'm hitting this error:

>;autocraft
--- Lich: autocraft active.
--- Lich: forgeme active.
--- Lich: forgeme has exited.
--- Lich: countaha active.
--- Exception: undefined local variable or method `sol_forge' for #<Object:0x33bf9e0 @AutoWar=#<AutoWar:0xa6e94d4>>
autocraft:43:in `start_script'
--- Lich: autocraft has exited.

Obviously I'm trying to use this in sol haven. I've tried replacing the first checkname in the IF statement to my characters (and uncommenting sol_forge), and I've also tried adding another else/if with my characters name .

Any suggestions would be greatly appreciated.

Tillmen
04-04-2010, 05:19 PM
sol_forge is defined in forgeme, and from your log it's plain to see that forgeme was run, so I assume it's a trust issue.

If autocraft is trusted, and forgeme is not trusted, autocraft will not have access to the functions forgeme defines. Looking through the scripts, I see no reason for either of them to be trusted, so try this and see if it helps:

;distrust autocraft
;distrust forgeme

Guarrin
04-04-2010, 06:11 PM
ahhh, stupid on my part. Autocraft was trusted, forgeme wasn't. So I set forgeme to trusted ant it seems to be working now.

Thanks, Tillmen!