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
➜ bribe/healing prog
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Morilu
USA (1 post) Bio
|
| Date
| Wed 05 Jul 2006 07:50 PM (UTC) |
| Message
| I recently tried adding a bribe prog to my mud to have a certain mob heal someone when they give it 20 gold. When I tried to test it, everything BUT the healing part worked. Here's the prog I used...
mpedit cybil add bribe 20
if ispc($n)
nod $n
cast 'cure critical' $n
else
thank $I
endif
I just started learning how to build with smaug a few days ago, and I just learned how to do very simple progs so I'm pretty sure I did something wrong on my part. I made sure that the mob that's supposed to do the healing is a cleric so I don't think that's the problem. Any kind of help would be greatly appreciated, thanks! |
"Music is the most powerful form of magic."
-Marilyn Manson | | Top |
|
| Posted by
| Conner
USA (381 posts) Bio
|
| Date
| Reply #1 on Wed 05 Jul 2006 11:10 PM (UTC) |
| Message
| | Well the first thing I see wrong there is that the $l should probably be a $n too... otherwise I'm really not seeing anything wrong with the prog itself. Does your mud have a 'cure critical' spell? (Generally, while it's great to set up your mobs with appropriate race/class, it has no real impact on what spells/skills they can use as mobs are outside the whole race/class structure for that anyway.) |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #2 on Thu 06 Jul 2006 12:05 AM (UTC) |
| Message
| | Isn't there a special mob mode, like the guard etc. modes, for healers? Conner is right, just setting it to cleric won't really do you any good. (For that reason, I've always found classes for mobs to be a little silly, since they don't appear to do anything at all except [i]maybe[/i] affect hit rolls and the like.) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Conner
USA (381 posts) Bio
|
| Date
| Reply #3 on Thu 06 Jul 2006 04:37 AM (UTC) |
| Message
| | There is a spec_cast_adept for healers, but they just spam healing type spells, for what he's trying to do (spells for gold) he'd either have to write a new specfun or create a working prog, and I'm not sure why his prog isn't working as written. |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.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.
16,979 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top