Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Foe Hunter
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Foe Hunter Death Attack Heartbeat script
|
|
Used the PnP Assassins death attack as reference
|
|
to setup a more PnP style death attack for the
|
|
Foe Hunter.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Oni5115
|
|
//:: Created On: July 12, 2004
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_alterations"
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
|
|
if(oPC == oTarget)
|
|
{
|
|
SendMessageToPC(oPC,"You cannot attack yourself...");
|
|
return;
|
|
}
|
|
|
|
// apply HIPS to PC skin temporar so that player can "rehide" without being seen
|
|
object oSkin = GetPCSkin(oPC);
|
|
itemproperty iProp = PRCItemPropertyBonusFeat(31); // 31 = HIPS IP_PROP value
|
|
//AddItemProperty(DURATION_TYPE_TEMPORARY, iProp, oSkin, 1.0);
|
|
IPSafeAddItemProperty(oSkin, iProp, 1.0f, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);
|
|
|
|
// Sets the player back to stealth mode
|
|
DelayCommand(0.3, SetActionMode(oPC, ACTION_MODE_STEALTH, TRUE) );
|
|
|
|
// If they are in the middle of a DA or have to wait till times up they are denied
|
|
float fApplyDATime = GetLocalFloat(oPC,"PRC_FH_DEATHATTACK_APPLY");
|
|
if (fApplyDATime > 0.0)
|
|
{
|
|
SendMessageToPC(oPC,"Your are still studying your target wait "+IntToString(FloatToInt(fApplyDATime))+ " seconds before you can perform the death attack");
|
|
return;
|
|
}
|
|
|
|
// Set a variable that tells us we are in the middle of a DA
|
|
// Must study the target for three rounds
|
|
fApplyDATime = RoundsToSeconds(3);
|
|
SetLocalFloat(oPC,"PRC_FH_DEATHATTACK_APPLY", fApplyDATime);
|
|
|
|
// Kick off a function to count down till they get the DA
|
|
SendMessageToPC(oPC,"You begin to study your target");
|
|
DelayCommand(6.0,ExecuteScript("prc_fh_da_hb", oPC));
|
|
} |