Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ a few spells all causing blindness
a few spells all causing blindness
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Yed
(3 posts) Bio
|
Date
| Thu 28 Feb 2002 01:57 PM (UTC) |
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 28 Feb 2002 09:10 PM (UTC) |
Message
| Have you changed the spell in the skills.dat file? Maybe you have set the blindness bit on the affect (AFF_BLIND). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fester
(5 posts) Bio
|
Date
| Reply #2 on Thu 28 Feb 2002 09:16 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Yed
(3 posts) Bio
|
Date
| Reply #3 on Wed 06 Mar 2002 01:53 PM (UTC) Amended on Wed 06 Mar 2002 03:42 PM (UTC) by Yed
|
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #4 on Wed 06 Mar 2002 09:31 PM (UTC) |
Message
| 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
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Yed
(3 posts) Bio
|
Date
| Reply #5 on Thu 07 Mar 2002 12:32 PM (UTC) |
Message
| 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 | Top |
|
Posted by
| Toy
(206 posts) Bio
|
Date
| Reply #6 on Sun 19 May 2002 04:55 PM (UTC) |
Message
| 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 |
It's always good to know how far you are willing to go to be the best...
Karl Mancine
aka
Toy the Dark Puppet | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #7 on Mon 20 May 2002 01:37 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
23,898 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top