UW2_PRC8/_module/nss/supmastrvsmonkpc.nss

43 lines
834 B
Plaintext
Raw Permalink Normal View History

2023-09-25 20:24:01 -04:00
object oTarget;
/* void CreateItemOnObjectVoid(string sItemTemplate, object oTarget=OBJECT_SELF, int nStackSize=1)
{
CreateItemOnObject(sItemTemplate, oTarget, nStackSize);
} */
//Put this on action taken in the conversation editor
#include "nw_i0_generic"
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
if ((GetLevelByClass(CLASS_TYPE_MONK, oPC)>0))
{
oTarget = OBJECT_SELF;
AdjustReputation(oPC, oTarget, -100);
SetIsTemporaryEnemy(oPC, oTarget);
ActionAttack(oPC);
DetermineCombatRound(oPC);
oTarget = GetObjectByTag("suprememasterli44");
AdjustReputation(oPC, oTarget, -100);
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
DelayCommand(50.0, RewardPartyXP(50005, oPC, FALSE));
}
}