43 lines
834 B
Plaintext
43 lines
834 B
Plaintext
|
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));
|
||
|
}
|
||
|
}
|