Page 1 of 1

CTD with SpellCast.inc

Posted: Wed Mar 24, 2004 1:06 pm
by javelinl
I know that this isn't usually the place to report macro related issues, but spellcast.inc seems pretty common, and the issue seems to be related to the new client.

I created a test script as below.


#Include Spellcast.inc

Sub Main

/call cast "minor shielding"
/return


With the latest spellcast.inc, I get an error on variable, on the line
/if n $char(levitating)==TRUE /varadd TZ 2

The client spews a host of errors about bad declares, and CTD's

To get around it, I just commented out everything in Sub Face(UseFaceFast), but I wanted to see if anyone else was seeing similar problems.

Posted: Wed Mar 24, 2004 1:08 pm
by Falco72
First thing that hit me:

Code: Select all

/if [color=red]n[/color] $char(levitating)==TRUE /varadd TZ 2 
The

Code: Select all

/if n
is used to compare two numbers, you are comparing two strings, why should it works?

Re: CTD with SpellCast.inc

Posted: Wed Nov 05, 2025 9:32 pm
by xyilla