Battledale_PRC8/_module/nss/gzcs_rem_abdmg.nss

18 lines
593 B
Plaintext
Raw Permalink Normal View History

#include "gzinc_effecttool"
void main()
{
int nGold = GetLocalInt(GetModule(),"T1_MODULE_HEALER_RESAB");
if (GetGold(GetPCSpeaker())>=nGold)
{
TakeGoldFromCreature(nGold, GetPCSpeaker());
ActionPauseConversation();
ActionCastFakeSpellAtObject(SPELL_HEAL,GetPCSpeaker());
ActionDoCommand(GZRemoveAbilityDamage(GetPCSpeaker()));
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_HOLY_AID),GetPCSpeaker());
ActionResumeConversation();
}
else
ActionSpeakString("Sorry, you cannot afford my services!");
}