126 lines
10 KiB
Plaintext
126 lines
10 KiB
Plaintext
#include "custom_set_lib"
|
|
|
|
void main()
|
|
{
|
|
|
|
int set = GetLocalInt(OBJECT_SELF,CustomSetScriptSet);
|
|
|
|
switch(set)
|
|
{
|
|
case CustomSet_DefaultSet: if(GetLocalString(OBJECT_SELF,CustomSet_OnBlocked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnBlocked,"nw_c2_defaulte");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDamaged) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDamaged,"nw_c2_default6");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDeath) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDeath,"nw_c2_default7");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnConversation) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnConversation,"nw_c2_default4");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDisturbed) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDisturbed,"nw_c2_default8");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd,"nw_c2_default3");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat,"nw_c2_default1");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked,"nw_c2_default5");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPerception) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPerception,"nw_c2_default2");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnRested) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnRested,"nw_c2_defaulta");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpawn) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpawn,"nw_c2_default9");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpellCast) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpellCast,"nw_c2_defaultb");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnUserDefined) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnUserDefined,"nw_c2_defaultd");
|
|
break;
|
|
case CustomSet_HenchManSet: if(GetLocalString(OBJECT_SELF,CustomSet_OnBlocked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnBlocked,"x0_ch_hen_block");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDamaged) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDamaged,"x0_ch_hen_damage");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDeath) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDeath,"x0_ch_hen_death");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnConversation) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnConversation,"x0_ch_hen_conv");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDisturbed) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDisturbed,"x0_ch_hen_distrb");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd,"x0_ch_hen_combat");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat,"x0_ch_hen_heart");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked,"x0_ch_hen_attack");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPerception) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPerception,"x0_ch_hen_percep");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnRested) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnRested,"x0_ch_hen_rest");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpawn) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpawn,"x0_ch_hen_spawn");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpellCast) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpellCast,"x0_ch_hen_spell");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnUserDefined) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnUserDefined,"x0_ch_hen_usrdef");
|
|
break;
|
|
case CustomSet_X2_DefaultSet: if(GetLocalString(OBJECT_SELF,CustomSet_OnBlocked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnBlocked,"x2_def_onblocked");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDamaged) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDamaged,"x2_def_ondamage");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDeath) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDeath,"x2_def_ondeath");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnConversation) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnConversation,"x2_def_onconv");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDisturbed) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDisturbed,"x2_def_ondisturb");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd,"x2_def_endcombat");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat,"x2_def_heartbeat");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked,"x2_def_ondamage");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPerception) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPerception,"x2_def_percept");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnRested) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnRested,"x2_def_rested");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpawn) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpawn,"x2_def_spawn");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpellCast) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpellCast,"x2_def_spellcast");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnUserDefined) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnUserDefined,"x2_def_userdef");
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnBlocked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnBlocked,"nw_c2_defaulte");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDamaged) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDamaged,"nw_c2_default6");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDeath) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDeath,"nw_c2_default7");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnConversation) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnConversation,"nw_c2_default4");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnDisturbed) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnDisturbed,"nw_c2_default8");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnCombatRoundEnd,"nw_c2_default3");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnHeartbeat,"nw_c2_default1");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPhysicalAttacked,"nw_c2_default5");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnPerception) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnPerception,"nw_c2_default2");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnRested) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnRested,"nw_c2_defaulta");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpawn) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpawn,"nw_c2_default9");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnSpellCast) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnSpellCast,"nw_c2_defaultb");
|
|
if(GetLocalString(OBJECT_SELF,CustomSet_OnUserDefined) == "")
|
|
SetLocalString(OBJECT_SELF,CustomSet_OnUserDefined,"nw_c2_defaultd");
|
|
|
|
|
|
ExecuteScript(GetLocalString(OBJECT_SELF,CustomSet_OnSpawn),OBJECT_SELF);
|
|
}
|
|
|