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
➜ Dawn of Time
➜ Configuration
➜ Addspell
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Veshirak
USA (5 posts) Bio
|
| Date
| Sat 21 Sep 2002 08:13 PM (UTC) |
| Message
| Okay, so addspell works great and all, but there's one aspect in the code that is giving me a hard time. An example of what I'm trying to do:
Create a shield that gives a character a level X shield spell affect when worn. Issue is when a character of less than level X wears the item, the affect doesn't take effect.
Now I've looked through the code and know that there is a bit that can be set with the affect to ignore the level of the wearer, I just don't know how to set that bit. The name of it is OBJSPELL_IGNORE_LEVEL. I believe I might have an idea of how to set it by adding an optional parameter to the addspell command, but would like to know if anyone else has confronted this or knows how to get around it.
Oh, and I know how to remove the check for the characters level, but see potential in leaving the check for the bit in. | | Top |
|
| Posted by
| Kalahn
United Kingdom (138 posts) Bio
|
| Date
| Reply #1 on Sat 21 Sep 2002 11:04 PM (UTC) |
| Message
|
Currently there is no way to set this field within the olc editors... it must have been something I started working on but never finished.
I have done a quick extension to oedit_addspell() which allows you to set this flag within the olc editor. This will be included in the next dawn release, if you want it before then, feel free to email me (using the contact page on the dawnoftime.org website), and I will send you a copy of the replacement function.
- Kalahn
Developer of the Dawn of Time codebase.
http://www.dawnoftime.org/ |
Kalahn
Developer of the Dawn of Time codebase
http://www.dawnoftime.org/ | | 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.
15,567 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top