forked from Jaysyn/PRC8
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.
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
/////////////////////////////////////////////////
|
|
// ACP_S3_diffstyle
|
|
// Author: Ariel Kaiser
|
|
// Creation Date: 13 May 2005
|
|
////////////////////////////////////////////////
|
|
/*
|
|
In combination with the right feat.2da and spells.2da entries, this script
|
|
allows a player (or possessed NPC with the right feat, I guess) to change
|
|
their fighting style and trade it for different animations. Part of the ACP pack.
|
|
*/
|
|
|
|
#include "inc_acp"
|
|
|
|
void main()
|
|
{
|
|
if (GetLocalInt(OBJECT_SELF, sLock)) //Feat is still locked? Bad user!
|
|
{
|
|
SendMessageToPC(OBJECT_SELF, "You need to wait at least 90 seconds before using this feat again.");
|
|
return;
|
|
}
|
|
|
|
int nSpellID = GetSpellId();
|
|
if(nSpellID == 2282) // Normal/Reset
|
|
ResetFightingStyle();
|
|
else if(nSpellID == 2278) // Kensai
|
|
SetCustomFightingStyle(PHENOTYPE_KENSAI);
|
|
else if(nSpellID == 2279) // Assassin
|
|
SetCustomFightingStyle(PHENOTYPE_ASSASSIN);
|
|
else if(nSpellID == 2280) // Heavy
|
|
SetCustomFightingStyle(PHENOTYPE_BARBARIAN);
|
|
else if(nSpellID == 2281) // Fencing
|
|
SetCustomFightingStyle(PHENOTYPE_FENCING);
|
|
} |