On Fri, 25 Dec 1998 16:57:17 EST Tom Johnson <YAGAY@aol.com> writes:
>I have created a skill called blowgun that will cause a thief to shoot a
dart
>a person. It works up till the point when i need to set the victum's
poison
>flag. I haven't been able to get it to work. I've look at the spell
posion
>and tried to copy the af[0].bitvector = AFF_POISON; line but still no
luck.
>If you'll need some lines of code let me know but i think this should be
easy
>enough that i won't include it. Thanks
>
>Tom Johnson
af.type = SPELL_POISON;
if (GET_CON(ch))
af.duration = (3 * 12) / GET_CON(ch);
else
af.duration = 3 * 12;
af.modifier = 0;
af.location = 0;
af.bitvector = AFF_POISON;
affect_to_char(ch, &af);
This _should_ work, I haven't had a chance to test it... You may want to
look at the spell "charm" to see how they do it in there.
Merry Christmas!
-Phillip
Phillip Ames | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335 | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST