Originally Posted by supreme kotor
Thanks so much Fair Strides we can do 5 points/second that would be perfect. Just out og my own curiosity I tried to make a script myslef looking at some of the scource scripts does any scripter know if this would work for an instant heal?
My script: (Im sorry if the makes you scripters cry it's prob a bunch of garbage)
int nItem = GetSpellId();
int nSkill = GetSkillRank(SKILL_TREAT_INJURY);
int bHeal = TRUE;
if(bHeal == TRUE)
eHeal = EffectHeal(nSkill);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eHeal, GetSpellTarget());
if(GetTag(OBJECT_SELF) == "GET_FIRSTPC")
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(1000), OBJECT_SELF);
Yep, I'm crying. But a good first attempt. A tip in the future: things like bHeal, which are boolean values, usually have default values(that "=" factor from my tutorial) and those can be found in nwscript.nss.
Also, "GET_FIRSTPC" wouldn't work. You'd need the following:
if(GetTag(OBJECT_SELF) == GetFirstPC())
I'll get back to you with mine later and you can compare them, 'kay?