bribe/healing prog

Posted by Morilu on Wed 05 Jul 2006 07:50 PM — 4 posts, 17,787 views.

USA #0
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!
USA #1
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.)
USA #2
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.)
USA #3
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.