Initial commit

Initial commit.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-06-13 15:08:33 -04:00
parent c0bd67a6a7
commit a6f6db7303
5236 changed files with 4203994 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#include "nw_i0_plot"
#include "rd_level"
void main()
{
object oHench;
int iGold;
iGold = GetHitDice(GetPCSpeaker()) * 250;
if (GetLocalString(GetPCSpeaker(),"Henchman") != "")
oHench = GetObjectByTag(GetLocalString(OBJECT_SELF,"RezTag"));
if (GetIsObjectValid(oHench))
{
ActionCastFakeSpellAtObject(SPELL_RESURRECTION,GetPCSpeaker());
TakeGoldFromCreature(iGold,GetPCSpeaker(),TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectResurrection(),oHench);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(oHench)), oHench);
RemoveEffects(oHench);
object oPC = GetPCSpeaker();
AddHenchman(oPC, oHench);
if (GetHitDice(OBJECT_SELF) < GetHitDice(oPC))
LevelMob(OBJECT_SELF,GetHitDice(oPC)-GetHitDice(OBJECT_SELF));
DelayCommand(0.1f,AssignCommand(oHench,ActionJumpToLocation(GetLocation(oPC))));
effect eRaise = EffectVisualEffect(VFX_IMP_RAISE_DEAD);
DelayCommand(1.5f,ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eRaise,oHench));
//SetLocalInt(oPC,"RestGold",GetGold(oPC));
}
else
SendMessageToPC(GetPCSpeaker(),"Henchman could not be found.");
}