CTD with SpellCast.inc

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

javelinl
a lesser mummy
a lesser mummy
Posts: 70
Joined: Thu Mar 11, 2004 12:40 pm

CTD with SpellCast.inc

Post by javelinl » Wed Mar 24, 2004 1:06 pm

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.

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Wed Mar 24, 2004 1:08 pm

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?

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: CTD with SpellCast.inc

Post by xyilla » Wed Nov 05, 2025 9:32 pm