a few spells all causing blindness

Posted by Yed on Thu 28 Feb 2002 01:57 PM — 8 posts, 29,419 views.

#0
Hello,

I'm using smaug 1.4a code base,

some spells, such as "sanctuary" and "dragon's wit" are causing blindness to the victim, even though the text that is outputted is the proper one for the spell.

I've been stepping through the code for hours and cannot find the point where it causes blindess (thou i think it is in the affect function). the sn is correct the entire time i'm stepping through the code. it's very weird.

any help/insights are most appreciated.

Yedidya
Australia Forum Administrator #1
Have you changed the spell in the skills.dat file? Maybe you have set the blindness bit on the affect (AFF_BLIND).
#2
Are you using an offline editor to edit your spells and such. I had a similar problem some time back and found out that the area editor i was using was adding a -1 flags to the affects and as such would cast blindness. Offline editor maybe adding the same type of affect as nick describes.
#3
I have not changed the spells in spells.dat

i have also recopied spells.dat from the original distro, and it has not helped.

when i look at skills.dat using 'edit skills' in the Area Editor, i see that 'dragon wit' has flags set to -1, and it's causing blindness. 'sanctuary' has flags set to 7, and the text of the effect is 'blind invisible detect_evil', but it's not making the victim invisible.

this is very strange. any ideas?

thanks for your help

Yedidya
Amended on Wed 06 Mar 2002 03:42 PM by Yed
Australia Forum Administrator #4
Are you using the same version of the Area Editor as I am (1.30)?


The text for the affect under Sanctuary for me is:


Type: affected by
Modifier: sanctuary
Duration: (l*4)+30
Flags: 128

#5
Yes I am also using version 1.30

text is:

Type: affected
Modifier: sanctuary
Duration: (l*4)+30
Flags: 7

maybe i should try to get a skills.dat from a different distro?

Thanks again,

Yedidya
#6
I noticed when I looked through my Area Editor at my spells, none of them have a blindness flag on them, yet when I do something like "slookup Sanctuary" on my mud it reads as followed:
Sn: 135 Slot: 36 Spell: 'sanctuary '
DamType: none ActType: destroy ClassType: life PowerType: none
Saves: none SaveEffect: none
Type: Spell Target: defensive Minpos: 12 Mana: 75 Beats: 12 Range: 0
Flags: 0 Guild: -1 Value: 0 Info: 336 Code: spell_smaug
Sectors Allowed: All
Dammsg:
Wearoff: The luminous aura about your body fades away.

Affect 1 modifies affected by 'sanctuary' and applies blind for '(l*4)+30' rounds

Hitchar : A luminous aura spreads slowly over $N's body.
Hitvict : A luminous aura spreads slowly over your body.
Hitroom : A luminous aura spreads slowly over $N's body.
--------------------------[CLASS USE]-----------------------

not sure why it reads that on the mud and not the area editor.
-Alexander
Australia Forum Administrator #7
On my version of Area Editor the sanctuary affect 1 reads:

affected by sanctuary (I*4)+30 Blind Invisible Detect_evil

Check the flags in your smaugconfig.dat file. They should look like this:


#AFFECT

Flag01   Blind
Flag02   Invisible
Flag03   Detect_evil
Flag04   Detect_invis
Flag05   Detect_magic
Flag06   Detect_hidden
Flag07   Hold
Flag08   Sanctuary
Flag09   Faerie_fire
Flag10   Infrared
Flag11   Curse
Flag12   Flaming
Flag13   Poison
Flag14   Protect
Flag15   Paralysis
Flag16   Sneak
Flag17   Hide
Flag18   Sleep
Flag19   Charm
Flag20   Flying
Flag21   Pass_door
Flag22   Floating
Flag23   True_sight
Flag24   Detect_traps
Flag25   Scrying
Flag26   Fireshield
Flag27   Shockshield
Flag28   Haus1
Flag29   Iceshield
Flag30   Possess
Flag31   Berserk
Flag32   Aqua_breath
End


Also, make sure that file is loaded in the File -> Preferences menu item.