Battledale_PRC8/_module/nss/jw_heal_damg_chn.nss

18 lines
492 B
Plaintext
Raw Permalink Normal View History

#include "gzinc_effecttool"
void main()
{
int nGold = GetLocalInt(GetModule(),"T1_MODULE_HEALER_HEAL")/2;
if (GetGold(GetPCSpeaker())>=nGold)
{
TakeGoldFromCreature(nGold, GetPCSpeaker());
ActionPauseConversation();
ActionCastFakeSpellAtObject(SPELL_HEAL,GetPCSpeaker());
ActionDoCommand(GZRemovePhysicalDamage(GetPCSpeaker()));
ActionResumeConversation();
}
else
ActionSpeakString("Sorry, you cannot afford my services!");
}