[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  qustion about skills and such
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

qustion about skills and such

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Typhon   USA  (112 posts)  [Biography] bio
Date Wed 03 Sep 2003 06:47 AM (UTC)  quote  ]
Message
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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #1 on Wed 03 Sep 2003 07:41 AM (UTC)  quote  ]
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Typhon   USA  (112 posts)  [Biography] bio
Date Reply #2 on Wed 03 Sep 2003 07:53 AM (UTC)  quote  ]
Message
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..
[Go to top] top

Posted by Meerclar   USA  (569 posts)  [Biography] bio
Date Reply #3 on Wed 03 Sep 2003 08:30 AM (UTC)  quote  ]
Message
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.....

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] 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.


2,417 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]