qustion about skills and such

Posted by Typhon on Wed 03 Sep 2003 06:47 AM — 4 posts, 16,727 views.

USA #0
is there a way to set spells on a pc that they would normally not have because of their classes... i know in my code i can sset a skill on someone at say 100% and they can use it.. but not spells.. is there a way to maybe go about this.. or is there a way to possibly finish imping the personal skills code already in the stock smaug?
-typ
USA #1
This should be fairly straightforward. I think the do_cast function makes sure that the player "should" have the spell. You'd just remove the check if spell->class == player->class. I don't have the exact line in front of me but it should be that simple.
USA #2
wouldnt that screw with the normal class spells that people get though.. i dont wanna change those.. but i wanna be able to give people a spell if theres a clan skill/god spell anything like that..
USA #3
If the spell is conditional access you can add another check against the condition instead of removing the existing check. Granted, removing the existing is gonna be less headache but if ya wanna do it right.....