Finished PRC8 integration
Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
This commit is contained in:
@@ -11,9 +11,12 @@
|
||||
//:: Created On:
|
||||
//::///////////////////////////////////////////////
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "prc_inc_racial"
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
@@ -29,23 +32,23 @@ object oObject=GetLastPerceived();
|
||||
|
||||
|
||||
if (!GetIsInCombat(OBJECT_SELF)&&!IsInConversation(OBJECT_SELF)&&GetObjectSeen(oObject,OBJECT_SELF)&&GetIsPC(oObject)&&GetIsObjectValid(oObject))
|
||||
|
||||
{
|
||||
if ((GetRacialType(oObject)!=RACIAL_TYPE_HUMAN)&&(GetSubRace(oObject)!="drow")&&(GetSubRace(oObject)!="Drow"))
|
||||
{
|
||||
ActionUseSkill(SKILL_HIDE, OBJECT_SELF);
|
||||
ActionUseSkill(SKILL_MOVE_SILENTLY, OBJECT_SELF);
|
||||
if ((GetRacialType(oObject)!= RACIAL_TYPE_HUMAN) &&
|
||||
(GetRacialType(oObject)!= RACIAL_TYPE_DROW_FEMALE) &&
|
||||
(GetRacialType(oObject)!= RACIAL_TYPE_DROW_MALE) &&
|
||||
(GetSubRace(oObject)!="drow") &&
|
||||
(GetSubRace(oObject)!="Drow"))
|
||||
{
|
||||
ActionUseSkill(SKILL_HIDE, OBJECT_SELF);
|
||||
ActionUseSkill(SKILL_MOVE_SILENTLY, OBJECT_SELF);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
{
|
||||
ActionSpeakString("Human!");
|
||||
SetIsTemporaryEnemy(oObject,OBJECT_SELF,TRUE,600.0);
|
||||
DetermineCombatRound();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ActionSpeakString("Human!");
|
||||
SetIsTemporaryEnemy(oObject,OBJECT_SELF,TRUE,600.0);
|
||||
DetermineCombatRound();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user