Aschbourne_PRC8/_module/nss/gzcs_rem_abdmg.nss

17 lines
489 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
#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()));
ActionResumeConversation();
}
else
ActionSpeakString("Sorry, you cannot afford my services!");
}