Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 266.48 KB | None | 0 0
  1.     public int sm_spot_a_sucker_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2.     {
  3.         if (!combatStandardAction("sm_spot_a_sucker_2", self, target, params, "", ""))
  4.         {
  5.             return SCRIPT_OVERRIDE;
  6.         }
  7.         else
  8.         {
  9.             int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance");
  10.             int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease");
  11.             int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance");
  12.            
  13.             if (damageDecrease >= 40)
  14.             {
  15.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_7");
  16.             }
  17.             else if (damageDecrease >= 20)
  18.             {
  19.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_6");
  20.             }
  21.             else if (glanceMod >= 50)
  22.             {
  23.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_5");
  24.             }
  25.             else if (glanceMod >= 25)
  26.             {
  27.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_4");
  28.             }
  29.             else if (criticalMod >= 50)
  30.             {
  31.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_3");
  32.             }
  33.             else if (criticalMod >= 25)
  34.             {
  35.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_2");
  36.             }
  37.             else
  38.             {
  39.                 buff.applyBuff(target, self, "sm_spot_a_sucker_2_1");
  40.             }
  41.         }
  42.        
  43.         return SCRIPT_CONTINUE;
  44.     }
  45.    
  46.    
  47.     public int sm_spot_a_sucker_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  48.     {
  49.         if (!combatStandardAction("sm_spot_a_sucker_3", self, target, params, "", ""))
  50.         {
  51.             return SCRIPT_OVERRIDE;
  52.         }
  53.         else
  54.         {
  55.             int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance");
  56.             int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease");
  57.             int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance");
  58.            
  59.             if (damageDecrease >= 40)
  60.             {
  61.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_7");
  62.             }
  63.             else if (damageDecrease >= 20)
  64.             {
  65.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_6");
  66.             }
  67.             else if (glanceMod >= 50)
  68.             {
  69.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_5");
  70.             }
  71.             else if (glanceMod >= 25)
  72.             {
  73.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_4");
  74.             }
  75.             else if (criticalMod >= 50)
  76.             {
  77.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_3");
  78.             }
  79.             else if (criticalMod >= 25)
  80.             {
  81.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_2");
  82.             }
  83.             else
  84.             {
  85.                 buff.applyBuff(target, self, "sm_spot_a_sucker_3_1");
  86.             }
  87.         }
  88.        
  89.         return SCRIPT_CONTINUE;
  90.     }
  91.    
  92.    
  93.     public int sm_spot_a_sucker_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  94.     {
  95.         if (!combatStandardAction("sm_spot_a_sucker_4", self, target, params, "", ""))
  96.         {
  97.             return SCRIPT_OVERRIDE;
  98.         }
  99.         else
  100.         {
  101.             int glanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_glance_chance");
  102.             int criticalMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_critical_decrease");
  103.             int damageDecrease = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_spot_a_sucker_damage_decrease_chance");
  104.            
  105.             if (damageDecrease >= 40)
  106.             {
  107.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_7");
  108.             }
  109.             else if (damageDecrease >= 20)
  110.             {
  111.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_6");
  112.             }
  113.             else if (glanceMod >= 50)
  114.             {
  115.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_5");
  116.             }
  117.             else if (glanceMod >= 25)
  118.             {
  119.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_4");
  120.             }
  121.             else if (criticalMod >= 50)
  122.             {
  123.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_3");
  124.             }
  125.             else if (criticalMod >= 25)
  126.             {
  127.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_2");
  128.             }
  129.             else
  130.             {
  131.                 buff.applyBuff(target, self, "sm_spot_a_sucker_4_1");
  132.             }
  133.         }
  134.        
  135.         return SCRIPT_CONTINUE;
  136.     }
  137.    
  138.    
  139.     public int sm_off_the_cuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  140.     {
  141.         if (!combatStandardAction("sm_off_the_cuff", self, target, params, "", ""))
  142.         {
  143.             return SCRIPT_OVERRIDE;
  144.         }
  145.        
  146.         int doubleDeal = (int)getSkillStatisticModifier(self, "expertise_double_deal_chance");
  147.        
  148.         if (rand(0,99) < doubleDeal)
  149.         {
  150.             setCommandTimerValue(self, TIMER_COOLDOWN, 0);
  151.             showFlyTextPrivate(self, self, new string_id("combat_effects", "double_deal"), 1.5f, colors.ORANGERED);
  152.         }
  153.        
  154.         return SCRIPT_CONTINUE;
  155.     }
  156.    
  157.    
  158.     public int sm_end_of_the_line(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  159.     {
  160.         if (!combatStandardAction("sm_end_of_the_line", self, target, params, "", ""))
  161.         {
  162.             return SCRIPT_OVERRIDE;
  163.         }
  164.        
  165.         return SCRIPT_CONTINUE;
  166.     }
  167.    
  168.    
  169.     public int expertise_sm_card_ranged_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  170.     {
  171.         if (!buff.hasBuff(self, "sm_double_hit"))
  172.         {
  173.             return SCRIPT_CONTINUE;
  174.         }
  175.        
  176.         if (!combatStandardAction("expertise_sm_card_ranged_proc", self, target, params, "", ""))
  177.         {
  178.             return SCRIPT_CONTINUE;
  179.         }
  180.        
  181.         return SCRIPT_CONTINUE;
  182.     }
  183.    
  184.    
  185.     public int expertise_sm_card_melee_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  186.     {
  187.         if (!buff.hasBuff(self, "sm_double_hit"))
  188.         {
  189.             return SCRIPT_CONTINUE;
  190.         }
  191.        
  192.         if (!combatStandardAction("expertise_sm_card_melee_proc", self, target, params, "", ""))
  193.         {
  194.             return SCRIPT_CONTINUE;
  195.         }
  196.        
  197.         return SCRIPT_CONTINUE;
  198.     }
  199.    
  200.    
  201.     public boolean callJunkDealer(obj_id self) throws InterruptedException
  202.     {
  203.         location loc = getLocation(self);
  204.        
  205.         if (!isIdValid(loc.cell))
  206.         {
  207.             int x = rand(-3, 3);
  208.             int z = rand(-3, 3);
  209.            
  210.             loc.x += x;
  211.             loc.z += z;
  212.         }
  213.        
  214.         obj_id buddy = create.object("junk_dealer_smuggler", loc, getLevel(self));
  215.        
  216.         if (!isIdValid(buddy))
  217.         {
  218.             return false;
  219.         }
  220.        
  221.         if (!isIdValid(loc.cell))
  222.         {
  223.             loc.x += 30;
  224.             setHomeLocation(buddy, loc);
  225.         }
  226.        
  227.         setMaster(buddy, self);
  228.         utils.setScriptVar(self, "junk_dealer_smuggler", buddy);
  229.        
  230.         return true;
  231.     }
  232.    
  233.    
  234.     public int sm_off_the_books(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  235.     {
  236.         if (utils.hasScriptVar(self, "junk_dealer_smuggler"))
  237.         {
  238.             obj_id dealer = utils.getObjIdScriptVar(self, "junk_dealer_smuggler");
  239.            
  240.             if (isIdValid(dealer) && exists(dealer))
  241.             {
  242.                 sendSystemMessage(self, new string_id("spam", "dealer_already_exists"));
  243.                 return SCRIPT_OVERRIDE;
  244.             }
  245.             else
  246.             {
  247.                 utils.removeScriptVar(self, "junk_dealer_smuggler");
  248.             }
  249.         }
  250.        
  251.         if (!combatStandardAction("sm_off_the_books", self, target, params, "", ""))
  252.         {
  253.             return SCRIPT_OVERRIDE;
  254.         }
  255.         else
  256.         {
  257.             if (!callJunkDealer(self))
  258.             {
  259.                 return SCRIPT_OVERRIDE;
  260.             }
  261.         }
  262.        
  263.         return SCRIPT_CONTINUE;
  264.     }
  265.    
  266.    
  267.     public int sm_inside_information(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  268.     {
  269.         if (!combatStandardAction("sm_inside_information", self, target, params, "", ""))
  270.         {
  271.             return SCRIPT_OVERRIDE;
  272.         }
  273.        
  274.         obj_id infoTarget;
  275.        
  276.         if (isIdValid(target) && isPlayer(target))
  277.         {
  278.             infoTarget = target;
  279.            
  280.             if (factions.getFactionStatus(self, target) == factions.STATUS_ENEMY)
  281.             {
  282.                 return SCRIPT_OVERRIDE;
  283.             }
  284.         }
  285.         else
  286.         {
  287.             infoTarget = self;
  288.         }
  289.        
  290.         if (bounty_hunter.isSpammingBountyCheck(self, false))
  291.         {
  292.             sendSystemMessage(self, new string_id("bounty_hunter", "sm_calling_contact_too_often"));
  293.            
  294.             return SCRIPT_OVERRIDE;
  295.         }
  296.        
  297.         if (infoTarget != self && bounty_hunter.isSpammingBountyCheck(infoTarget, false))
  298.         {
  299.             sendSystemMessage(self, new string_id("bounty_hunter", "sm_calling_contact_too_often_target"));
  300.            
  301.             return SCRIPT_OVERRIDE;
  302.         }
  303.        
  304.         if (isDead(infoTarget) || isIncapacitated(infoTarget))
  305.         {
  306.             return SCRIPT_OVERRIDE;
  307.         }
  308.        
  309.         int amount = getIntObjVar(infoTarget, "bounty.amount");
  310.        
  311.         if (amount <= 0)
  312.         {
  313.             prose_package pp = new prose_package ();
  314.             pp.stringId = new string_id ("bounty_hunter", "sm_no_bounty_target_player");
  315.             prose.setTT(pp, getName(self));
  316.            
  317.             if (infoTarget != self)
  318.             {
  319.                 sendSystemMessageProse(infoTarget, pp);
  320.                 sendSystemMessage(self, new string_id("bounty_hunter", "sm_no_bounty_target"));
  321.                
  322.                 utils.setScriptVar(infoTarget, "bountyCheckFloodControl", getGameTime() + 600);
  323.             }
  324.             else
  325.             {
  326.                 sendSystemMessage(self, new string_id("bounty_hunter", "sm_no_bounty_self"));
  327.             }
  328.            
  329.             utils.setScriptVar(self, "bountyCheckFloodControl", getGameTime() + 60);
  330.            
  331.             return SCRIPT_CONTINUE;
  332.         }
  333.        
  334.         obj_id[] bounties = getJediBounties(infoTarget);
  335.        
  336.         if (bounties != null && bounties.length > 0)
  337.         {
  338.             prose_package pp = new prose_package ();
  339.             pp.stringId = new string_id ("bounty_hunter", "sm_bounty_amount_target_with_bounties");
  340.             prose.setDI(pp, amount);
  341.            
  342.             sendSystemMessageProse(infoTarget, pp);
  343.            
  344.             for (int i = 0; i < bounties.length; i++)
  345.             {
  346.                 testAbortScript();
  347.                 obj_id bountyHunter = bounties[i];
  348.                
  349.                 if (isIdValid(bountyHunter))
  350.                 {
  351.                     dictionary messageParams = new dictionary();
  352.                     messageParams.put("smuggler", infoTarget);
  353.                    
  354.                     messageTo(bountyHunter, "handleSmugglerGetLocationInfo", messageParams, 1.0f, false);
  355.                 }
  356.             }
  357.            
  358.             utils.setScriptVar(self, "bountyCheckFloodControl", getGameTime() + 60);
  359.         }
  360.         else
  361.         {
  362.             prose_package pp = new prose_package ();
  363.             pp.stringId = new string_id ("bounty_hunter", "sm_bounty_amount_target_no_bounties");
  364.             prose.setDI(pp, amount);
  365.            
  366.             sendSystemMessageProse(infoTarget, pp);
  367.            
  368.             utils.setScriptVar(self, "bountyCheckFloodControl", getGameTime() + 60);
  369.         }
  370.        
  371.         if (infoTarget != self)
  372.         {
  373.             prose_package pm = new prose_package();
  374.             pm.stringId = new string_id ("bounty_hunter", "sm_bounty_notified_target");
  375.             prose.setTT(pm, getName(infoTarget));
  376.            
  377.             sendSystemMessageProse(self, pm);
  378.            
  379.             utils.setScriptVar(infoTarget, "bountyCheckFloodControl", getGameTime() + 600);
  380.         }
  381.        
  382.         return SCRIPT_CONTINUE;
  383.     }
  384.    
  385.    
  386.     public int sm_false_hope(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  387.     {
  388.         if (!combatStandardAction("sm_false_hope", self, target, params, "", ""))
  389.         {
  390.             return SCRIPT_OVERRIDE;
  391.         }
  392.        
  393.         float baseCooldownTime = getBaseCooldownTime("sm_false_hope");
  394.         if (baseCooldownTime < 0)
  395.         {
  396.             return SCRIPT_OVERRIDE;
  397.         }
  398.        
  399.         float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_sm_false_hope");
  400.        
  401.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  402.        
  403.         return SCRIPT_CONTINUE;
  404.     }
  405.    
  406.    
  407.     public int sm_break_the_deal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  408.     {
  409.         if (!combatStandardAction("sm_break_the_deal", self, target, params, "", ""))
  410.         {
  411.             return SCRIPT_OVERRIDE;
  412.         }
  413.        
  414.         return SCRIPT_CONTINUE;
  415.     }
  416.    
  417.    
  418.     public int sm_narrow_escape_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  419.     {
  420.         if (!combatStandardAction("sm_narrow_escape_1", self, target, params, "", ""))
  421.         {
  422.             return SCRIPT_OVERRIDE;
  423.         }
  424.        
  425.         return SCRIPT_CONTINUE;
  426.     }
  427.    
  428.    
  429.     public int sm_narrow_escape_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  430.     {
  431.         if (!combatStandardAction("sm_narrow_escape_2", self, target, params, "", ""))
  432.         {
  433.             return SCRIPT_OVERRIDE;
  434.         }
  435.        
  436.         return SCRIPT_CONTINUE;
  437.     }
  438.    
  439.    
  440.     public int sm_narrow_escape_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  441.     {
  442.         if (!combatStandardAction("sm_narrow_escape_3", self, target, params, "", ""))
  443.         {
  444.             return SCRIPT_OVERRIDE;
  445.         }
  446.        
  447.         return SCRIPT_CONTINUE;
  448.     }
  449.    
  450.    
  451.     public int sm_narrow_escape_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  452.     {
  453.         if (!combatStandardAction("sm_narrow_escape_4", self, target, params, "", ""))
  454.         {
  455.             return SCRIPT_OVERRIDE;
  456.         }
  457.        
  458.         return SCRIPT_CONTINUE;
  459.     }
  460.    
  461.    
  462.     public int sm_buff_invis_ally_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  463.     {
  464.         if ((!stealth.canPerformCamouflageAlly(self, target) || !combatStandardAction("sm_buff_invis_ally_1", self, target, params, "", "") || !isInAttackRange(self, target, "sm_buff_invis_ally_1", false)))
  465.         {
  466.             return SCRIPT_OVERRIDE;
  467.         }
  468.        
  469.         int minPower = 10;
  470.         int maxPower = 30;
  471.         float difference = maxPower - minPower;
  472.         float ratio = getLevel(self)/90;
  473.        
  474.         int duration = (int) Math.ceil(minPower + (difference * ratio));
  475.        
  476.         buff.applyBuff(target, self, "invis_sm_buff_invis_1");
  477.         return SCRIPT_CONTINUE;
  478.     }
  479.    
  480.    
  481.     public int sm_how_are_you(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  482.     {
  483.         if (!combatStandardAction("sm_how_are_you", self, target, params, "", ""))
  484.         {
  485.             return SCRIPT_OVERRIDE;
  486.         }
  487.        
  488.         doMedicEvasion(self);
  489.        
  490.         int randomPhrase = rand(0,75);
  491.        
  492.         if (randomPhrase < 5)
  493.         {
  494.             chat.chat(self, chat.CHAT_SAY, new string_id("set_bonus", "sm_blather_"+randomPhrase));
  495.         }
  496.        
  497.         return SCRIPT_CONTINUE;
  498.     }
  499.    
  500.    
  501.     public int expertise_sm_ranged_shot_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  502.     {
  503.         if (!combatStandardAction("expertise_sm_ranged_shot_proc", self, target, params, "", ""))
  504.         {
  505.             return SCRIPT_OVERRIDE;
  506.         }
  507.        
  508.         return SCRIPT_CONTINUE;
  509.     }
  510.    
  511.    
  512.     public int expertise_sm_melee_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  513.     {
  514.         if (!combatStandardAction("expertise_sm_melee_proc", self, target, params, "", ""))
  515.         {
  516.             return SCRIPT_OVERRIDE;
  517.         }
  518.        
  519.         return SCRIPT_CONTINUE;
  520.     }
  521.    
  522.    
  523.     public int expertise_sm_melee_stun_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  524.     {
  525.         if (!combatStandardAction("expertise_sm_melee_stun_proc", self, target, params, "", ""))
  526.         {
  527.             return SCRIPT_OVERRIDE;
  528.         }
  529.        
  530.         return SCRIPT_CONTINUE;
  531.     }
  532.    
  533.    
  534.     public int expertise_sm_feeling_lucky_chance_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  535.     {
  536.         if (!combatStandardAction("expertise_sm_feeling_lucky_chance_proc", self, target, params, "", ""))
  537.         {
  538.             return SCRIPT_OVERRIDE;
  539.         }
  540.        
  541.         return SCRIPT_CONTINUE;
  542.     }
  543.    
  544.    
  545.     public int fs_buff_invis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  546.     {
  547.         if (!stealth.canPerformForceCloak(self) || !combatStandardAction("fs_buff_invis_1", self, target, params, "", ""))
  548.         {
  549.             return SCRIPT_OVERRIDE;
  550.         }
  551.        
  552.         return SCRIPT_CONTINUE;
  553.     }
  554.    
  555.    
  556.     public int steal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  557.     {
  558.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  559.         {
  560.             return SCRIPT_OVERRIDE;
  561.         }
  562.        
  563.         if (!stealth.canSteal(self, target) || !combatStandardAction("steal", self, target, params, "", ""))
  564.         {
  565.             return SCRIPT_OVERRIDE;
  566.         }
  567.        
  568.         stealth.steal(self, target);
  569.         return SCRIPT_CONTINUE;
  570.     }
  571.    
  572.    
  573.     public int sp_buff_invis_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  574.     {
  575.        
  576.         dictionary blankMsg = new dictionary();
  577.         if (hasSkill(self, "expertise_sp_without_a_trace_1"))
  578.         {
  579.             if (!stealth.canPerformWithoutTrace(self) || !combatStandardAction("sp_without_a_trace", self, target, params, "", ""))
  580.             {
  581.                 return SCRIPT_OVERRIDE;
  582.             }
  583.             utils.setScriptVar(self, "sp_without_a_trace", 1);
  584.             messageTo(self, "withoutTraceTimerExpired", blankMsg, 30, false);
  585.            
  586.             if (successfulFastAttack(self, "sp_perfect", "perfect_opportunity_fly"))
  587.             {
  588.                 setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  589.                 buff.applyBuff(self, self, "sp_set_perfect_opportunity");
  590.                 return SCRIPT_CONTINUE;
  591.             }
  592.            
  593.             if (successfulFastAttack(self, "sp_smoke", "flawless_getaway_fly"))
  594.             {
  595.                 setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  596.                 return SCRIPT_CONTINUE;
  597.             }
  598.             float baseCooldownTime = getBaseCooldownTime("sp_buff_invis_1");
  599.             if (baseCooldownTime < 0)
  600.             {
  601.                 baseCooldownTime = 0;
  602.             }
  603.            
  604.             float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_smoke");
  605.             setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  606.            
  607.             return SCRIPT_CONTINUE;
  608.         }
  609.        
  610.         if (!stealth.canPerformSmokeGrenade(self))
  611.         {
  612.             return SCRIPT_OVERRIDE;
  613.         }
  614.        
  615.         if (!combatStandardAction("sp_buff_invis_1", self, target, params, "", ""))
  616.         {
  617.             return SCRIPT_OVERRIDE;
  618.         }
  619.        
  620.         utils.setScriptVar(self, "sp_smoke_bomb", 1);
  621.         messageTo(self, "smokeBombTimerExpired", blankMsg, 10, false);
  622.        
  623.         if (successfulFastAttack(self, "sp_perfect", "perfect_opportunity_fly"))
  624.         {
  625.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  626.             buff.applyBuff(self, self, "sp_set_perfect_opportunity");
  627.             return SCRIPT_CONTINUE;
  628.         }
  629.        
  630.         if (successfulFastAttack(self, "sp_smoke", "flawless_getaway_fly"))
  631.         {
  632.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  633.             return SCRIPT_CONTINUE;
  634.         }
  635.        
  636.         float baseCooldownTime = getBaseCooldownTime("sp_buff_invis_1");
  637.         if (baseCooldownTime < 0)
  638.         {
  639.             baseCooldownTime = 0;
  640.         }
  641.        
  642.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_smoke");
  643.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  644.        
  645.         return SCRIPT_CONTINUE;
  646.     }
  647.    
  648.    
  649.     public int sp_burst_of_shadows(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  650.     {
  651.        
  652.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  653.         {
  654.             return SCRIPT_OVERRIDE;
  655.         }
  656.        
  657.         if (!combatStandardAction("sp_burst_of_shadows", self, target, params, "", ""))
  658.         {
  659.             return SCRIPT_OVERRIDE;
  660.         }
  661.        
  662.         float baseCooldownTime = getBaseCooldownTime("sp_burst_of_shadows");
  663.         if (baseCooldownTime < 0)
  664.         {
  665.             return SCRIPT_OVERRIDE;
  666.         }
  667.        
  668.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_burst_shadows");
  669.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  670.        
  671.         return SCRIPT_CONTINUE;
  672.     }
  673.    
  674.    
  675.     public int sp_reveal_shadows(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  676.     {
  677.         if (!stealth.canDetectCamouflage(self) || !combatStandardAction("sp_reveal_shadows", self, target, params, "", ""))
  678.         {
  679.             return SCRIPT_OVERRIDE;
  680.         }
  681.        
  682.         float detectSkill = getEnhancedSkillStatisticModifier(self, "detect_hidden");
  683.         float distance = stealth.BASE_DETECT_CAMOUFLAGE_DISTANCE + (detectSkill / 20);
  684.        
  685.         float detectChance = 75.0f;
  686.        
  687.         int distanceMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_reveal_shadows_distance_increase");
  688.         int detectMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_reveal_shadows_detect_chance_increase");
  689.        
  690.         distance = distance + distanceMod;
  691.         detectChance = detectChance + detectMod;
  692.        
  693.         stealth.detectCamouflage(self, true, true, distance, detectChance);
  694.        
  695.         float baseCooldownTime = getBaseCooldownTime("sp_reveal_shadows");
  696.         if (baseCooldownTime < 0)
  697.         {
  698.             return SCRIPT_OVERRIDE;
  699.         }
  700.        
  701.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_reveal_shadows");
  702.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  703.         return SCRIPT_CONTINUE;
  704.     }
  705.    
  706.    
  707.     public int sp_avoid_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  708.     {
  709.         if (!combatStandardAction("sp_avoid_damage", self, target, params, "", ""))
  710.         {
  711.             return SCRIPT_OVERRIDE;
  712.         }
  713.         return SCRIPT_CONTINUE;
  714.     }
  715.    
  716.    
  717.     public int sp_preparation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  718.     {
  719.         if (!combatStandardAction("sp_preparation", self, target, params, "", ""))
  720.         {
  721.             return SCRIPT_OVERRIDE;
  722.         }
  723.        
  724.         float baseCooldownTime = getBaseCooldownTime("sp_preparation");
  725.         if (baseCooldownTime < 0)
  726.         {
  727.             return SCRIPT_OVERRIDE;
  728.         }
  729.        
  730.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_preparation");
  731.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  732.        
  733.         return SCRIPT_CONTINUE;
  734.     }
  735.    
  736.    
  737.     public int sp_buff_stealth_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  738.     {
  739.        
  740.         String invis = stealth.getInvisBuff(self);
  741.         if (invis != null && invis.equals("invis_sp_buff_stealth_1"))
  742.         {
  743.             buff.removeBuff(self, invis);
  744.             return SCRIPT_OVERRIDE;
  745.         }
  746.        
  747.         if (invis != null && (invis.equals("invis_sp_buff_invis_1")))
  748.         {
  749.            
  750.             buff.removeBuff(self, "invis_sp_buff_invis_1");
  751.             buff.applyBuff(self, self, "invis_sp_buff_stealth_1");
  752.             return SCRIPT_OVERRIDE;
  753.         }
  754.        
  755.         if (!stealth.canPerformStealth(self) || !buff.canApplyBuff(self, "invis_sp_buff_stealth_1") || !combatStandardAction("sp_buff_stealth_1", self, target, params, "", ""))
  756.         {
  757.             return SCRIPT_OVERRIDE;
  758.         }
  759.        
  760.         return SCRIPT_CONTINUE;
  761.     }
  762.    
  763.    
  764.     public int sp_decoy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  765.     {
  766.         if (!stealth.canPerformSmokeGrenade(self))
  767.         {
  768.             return SCRIPT_OVERRIDE;
  769.         }
  770.        
  771.         obj_id decoy = stealth.createDecoy(self);
  772.        
  773.         if (!isIdValid(decoy))
  774.         {
  775.             return SCRIPT_OVERRIDE;
  776.         }
  777.        
  778.         obj_id[] haters = getWhoIsTargetingMe(self);
  779.         int diversionLevel = getEnhancedSkillStatisticModifierUncapped(self, "expertise_improved_decoy");
  780.         combat.sendCombatSpamMessage(self, new string_id("spam", "decoy_created"));
  781.        
  782.         if (haters == null || haters.length == 0)
  783.         {
  784.            
  785.             if (diversionLevel == 2)
  786.             {
  787.                 buff.applyBuff(self, self, "invis_sp_diversion_stealth");
  788.             }
  789.            
  790.             return SCRIPT_CONTINUE;
  791.         }
  792.        
  793.         for (int i=0; i<haters.length; i++)
  794.         {
  795.             testAbortScript();
  796.             if (!isIdValid(haters[i]) || !exists(haters[i]))
  797.             {
  798.                 continue;
  799.             }
  800.            
  801.             obj_id[] hateList = getHateList(haters[i]);
  802.            
  803.             if (hateList == null || hateList.length == 0)
  804.             {
  805.                 continue;
  806.             }
  807.            
  808.             for (int k=0; k<hateList.length; k++)
  809.             {
  810.                 testAbortScript();
  811.                 if (!isIdValid(hateList[k]) || !exists(hateList[k]))
  812.                 {
  813.                     continue;
  814.                 }
  815.                
  816.                 if (hateList[k] == self)
  817.                 {
  818.                     setHate(haters[i], decoy, getHate(haters[i], self) * 2);
  819.                     setTarget(haters[i], decoy);
  820.                 }
  821.             }
  822.         }
  823.        
  824.         if (diversionLevel == 2)
  825.         {
  826.             buff.applyBuff(self, self, "invis_sp_diversion_stealth");
  827.         }
  828.        
  829.         return SCRIPT_CONTINUE;
  830.     }
  831.    
  832.    
  833.     public int sp_assassins_mark(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  834.     {
  835.         if (!combatStandardAction("sp_assassins_mark", self, target, params, "", ""))
  836.         {
  837.             return SCRIPT_OVERRIDE;
  838.         }
  839.        
  840.         return SCRIPT_CONTINUE;
  841.     }
  842.    
  843.    
  844.     public int sp_assassins_mark_reac_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  845.     {
  846.        
  847.         obj_id newTarget = self;
  848.         obj_id newAttacker = target;
  849.         if (!combatStandardAction("sp_assassins_mark_reac_proc", newAttacker, newTarget, params, "", ""))
  850.         {
  851.             return SCRIPT_OVERRIDE;
  852.         }
  853.        
  854.         return SCRIPT_CONTINUE;
  855.     }
  856.    
  857.    
  858.     public int sp_cc_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  859.     {
  860.         if (!combatStandardAction("sp_cc_dot", self, target, params, "", ""))
  861.         {
  862.             return SCRIPT_OVERRIDE;
  863.         }
  864.        
  865.         return SCRIPT_CONTINUE;
  866.     }
  867.    
  868.    
  869.     public int sp_improved_cc_dot_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  870.     {
  871.         if (!combatStandardAction("sp_improved_cc_dot_0", self, target, params, "", ""))
  872.         {
  873.             return SCRIPT_OVERRIDE;
  874.         }
  875.        
  876.         return SCRIPT_CONTINUE;
  877.     }
  878.    
  879.    
  880.     public int sp_improved_cc_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  881.     {
  882.         if (!combatStandardAction("sp_improved_cc_dot_1", self, target, params, "", ""))
  883.         {
  884.             return SCRIPT_OVERRIDE;
  885.         }
  886.        
  887.         return SCRIPT_CONTINUE;
  888.     }
  889.    
  890.    
  891.     public int sp_improved_cc_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  892.     {
  893.         if (!combatStandardAction("sp_improved_cc_dot_2", self, target, params, "", ""))
  894.         {
  895.             return SCRIPT_OVERRIDE;
  896.         }
  897.        
  898.         return SCRIPT_CONTINUE;
  899.     }
  900.    
  901.    
  902.     public int sp_improved_cc_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  903.     {
  904.         if (!combatStandardAction("sp_improved_cc_dot_3", self, target, params, "", ""))
  905.         {
  906.             return SCRIPT_OVERRIDE;
  907.         }
  908.        
  909.         return SCRIPT_CONTINUE;
  910.     }
  911.    
  912.    
  913.     public int sp_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  914.     {
  915.         if (!combatStandardAction("sp_dm_1", self, target, params, "", ""))
  916.         {
  917.             return SCRIPT_OVERRIDE;
  918.         }
  919.        
  920.         if (successfulFastAttack(self, "sp_dm"))
  921.         {
  922.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  923.             return SCRIPT_CONTINUE;
  924.         }
  925.        
  926.         float baseCooldownTime = getBaseCooldownTime("sp_dm_1");
  927.         if (baseCooldownTime < 0)
  928.         {
  929.             return SCRIPT_OVERRIDE;
  930.         }
  931.        
  932.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  933.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  934.        
  935.         return SCRIPT_CONTINUE;
  936.     }
  937.    
  938.    
  939.     public int sp_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  940.     {
  941.         if (!combatStandardAction("sp_dm_2", self, target, params, "", ""))
  942.         {
  943.             return SCRIPT_OVERRIDE;
  944.         }
  945.        
  946.         if (successfulFastAttack(self, "sp_dm"))
  947.         {
  948.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  949.             return SCRIPT_CONTINUE;
  950.         }
  951.        
  952.         float baseCooldownTime = getBaseCooldownTime("sp_dm_2");
  953.         if (baseCooldownTime < 0)
  954.         {
  955.             return SCRIPT_OVERRIDE;
  956.         }
  957.        
  958.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  959.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  960.        
  961.         return SCRIPT_CONTINUE;
  962.     }
  963.    
  964.    
  965.     public int sp_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  966.     {
  967.         if (!combatStandardAction("sp_dm_3", self, target, params, "", ""))
  968.         {
  969.             return SCRIPT_OVERRIDE;
  970.         }
  971.        
  972.         if (successfulFastAttack(self, "sp_dm"))
  973.         {
  974.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  975.             return SCRIPT_CONTINUE;
  976.         }
  977.        
  978.         float baseCooldownTime = getBaseCooldownTime("sp_dm_3");
  979.         if (baseCooldownTime < 0)
  980.         {
  981.             return SCRIPT_OVERRIDE;
  982.         }
  983.        
  984.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  985.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  986.        
  987.         return SCRIPT_CONTINUE;
  988.     }
  989.    
  990.    
  991.     public int sp_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  992.     {
  993.         if (!combatStandardAction("sp_dm_4", self, target, params, "", ""))
  994.         {
  995.             return SCRIPT_OVERRIDE;
  996.         }
  997.        
  998.         if (successfulFastAttack(self, "sp_dm"))
  999.         {
  1000.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  1001.             return SCRIPT_CONTINUE;
  1002.         }
  1003.        
  1004.         float baseCooldownTime = getBaseCooldownTime("sp_dm_4");
  1005.         if (baseCooldownTime < 0)
  1006.         {
  1007.             return SCRIPT_OVERRIDE;
  1008.         }
  1009.        
  1010.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  1011.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  1012.        
  1013.         return SCRIPT_CONTINUE;
  1014.     }
  1015.    
  1016.    
  1017.     public int sp_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1018.     {
  1019.         if (!combatStandardAction("sp_dm_5", self, target, params, "", ""))
  1020.         {
  1021.             return SCRIPT_OVERRIDE;
  1022.         }
  1023.        
  1024.         if (successfulFastAttack(self, "sp_dm"))
  1025.         {
  1026.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  1027.             return SCRIPT_CONTINUE;
  1028.         }
  1029.        
  1030.         float baseCooldownTime = getBaseCooldownTime("sp_dm_5");
  1031.         if (baseCooldownTime < 0)
  1032.         {
  1033.             return SCRIPT_OVERRIDE;
  1034.         }
  1035.        
  1036.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  1037.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  1038.        
  1039.         return SCRIPT_CONTINUE;
  1040.     }
  1041.    
  1042.    
  1043.     public int sp_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1044.     {
  1045.         if (!combatStandardAction("sp_dm_6", self, target, params, "", ""))
  1046.         {
  1047.             return SCRIPT_OVERRIDE;
  1048.         }
  1049.        
  1050.         if (successfulFastAttack(self, "sp_dm"))
  1051.         {
  1052.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  1053.             return SCRIPT_CONTINUE;
  1054.         }
  1055.        
  1056.         float baseCooldownTime = getBaseCooldownTime("sp_dm_6");
  1057.         if (baseCooldownTime < 0)
  1058.         {
  1059.             return SCRIPT_OVERRIDE;
  1060.         }
  1061.        
  1062.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  1063.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  1064.        
  1065.         return SCRIPT_CONTINUE;
  1066.     }
  1067.    
  1068.    
  1069.     public int sp_dm_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1070.     {
  1071.         if (!combatStandardAction("sp_dm_7", self, target, params, "", ""))
  1072.         {
  1073.             return SCRIPT_OVERRIDE;
  1074.         }
  1075.        
  1076.         if (successfulFastAttack(self, "sp_dm"))
  1077.         {
  1078.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  1079.             return SCRIPT_CONTINUE;
  1080.         }
  1081.        
  1082.         float baseCooldownTime = getBaseCooldownTime("sp_dm_7");
  1083.         if (baseCooldownTime < 0)
  1084.         {
  1085.             return SCRIPT_OVERRIDE;
  1086.         }
  1087.        
  1088.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  1089.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  1090.        
  1091.         return SCRIPT_CONTINUE;
  1092.     }
  1093.    
  1094.    
  1095.     public int sp_dm_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1096.     {
  1097.         if (!combatStandardAction("sp_dm_8", self, target, params, "", ""))
  1098.         {
  1099.             return SCRIPT_OVERRIDE;
  1100.         }
  1101.        
  1102.         if (successfulFastAttack(self, "sp_dm"))
  1103.         {
  1104.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  1105.             return SCRIPT_CONTINUE;
  1106.         }
  1107.        
  1108.         float baseCooldownTime = getBaseCooldownTime("sp_dm_8");
  1109.         if (baseCooldownTime < 0)
  1110.         {
  1111.             return SCRIPT_OVERRIDE;
  1112.         }
  1113.        
  1114.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_sp_dm");
  1115.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  1116.        
  1117.         return SCRIPT_CONTINUE;
  1118.     }
  1119.    
  1120.    
  1121.     public int sp_dot_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1122.     {
  1123.         if (!combatStandardAction("sp_dot_0", self, target, params, "", ""))
  1124.         {
  1125.             return SCRIPT_OVERRIDE;
  1126.         }
  1127.        
  1128.         return SCRIPT_CONTINUE;
  1129.     }
  1130.    
  1131.    
  1132.     public int sp_dot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1133.     {
  1134.         if (!combatStandardAction("sp_dot_1", self, target, params, "", ""))
  1135.         {
  1136.             return SCRIPT_OVERRIDE;
  1137.         }
  1138.        
  1139.         return SCRIPT_CONTINUE;
  1140.     }
  1141.    
  1142.    
  1143.     public int sp_dot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1144.     {
  1145.         if (!combatStandardAction("sp_dot_2", self, target, params, "", ""))
  1146.         {
  1147.             return SCRIPT_OVERRIDE;
  1148.         }
  1149.        
  1150.         return SCRIPT_CONTINUE;
  1151.     }
  1152.    
  1153.    
  1154.     public int sp_dot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1155.     {
  1156.         if (!combatStandardAction("sp_dot_3", self, target, params, "", ""))
  1157.         {
  1158.             return SCRIPT_OVERRIDE;
  1159.         }
  1160.        
  1161.         return SCRIPT_CONTINUE;
  1162.     }
  1163.    
  1164.    
  1165.     public int sp_dot_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1166.     {
  1167.         if (!combatStandardAction("sp_dot_4", self, target, params, "", ""))
  1168.         {
  1169.             return SCRIPT_OVERRIDE;
  1170.         }
  1171.        
  1172.         return SCRIPT_CONTINUE;
  1173.     }
  1174.    
  1175.    
  1176.     public int sp_dot_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1177.     {
  1178.         if (!combatStandardAction("sp_dot_5", self, target, params, "", ""))
  1179.         {
  1180.             return SCRIPT_OVERRIDE;
  1181.         }
  1182.        
  1183.         return SCRIPT_CONTINUE;
  1184.     }
  1185.    
  1186.    
  1187.     public int sp_hd_melee_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1188.     {
  1189.         if (!combatStandardAction("sp_hd_melee_0", self, target, params, "", ""))
  1190.         {
  1191.             return SCRIPT_OVERRIDE;
  1192.         }
  1193.        
  1194.         return SCRIPT_CONTINUE;
  1195.     }
  1196.    
  1197.    
  1198.     public int sp_hd_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1199.     {
  1200.         if (!combatStandardAction("sp_hd_melee_1", self, target, params, "", ""))
  1201.         {
  1202.             return SCRIPT_OVERRIDE;
  1203.         }
  1204.        
  1205.         return SCRIPT_CONTINUE;
  1206.     }
  1207.    
  1208.    
  1209.     public int sp_hd_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1210.     {
  1211.         if (!combatStandardAction("sp_hd_melee_2", self, target, params, "", ""))
  1212.         {
  1213.             return SCRIPT_OVERRIDE;
  1214.         }
  1215.        
  1216.         return SCRIPT_CONTINUE;
  1217.     }
  1218.    
  1219.    
  1220.     public int sp_hd_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1221.     {
  1222.         if (!combatStandardAction("sp_hd_melee_3", self, target, params, "", ""))
  1223.         {
  1224.             return SCRIPT_OVERRIDE;
  1225.         }
  1226.        
  1227.         return SCRIPT_CONTINUE;
  1228.     }
  1229.    
  1230.    
  1231.     public int sp_hd_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1232.     {
  1233.         if (!combatStandardAction("sp_hd_melee_4", self, target, params, "", ""))
  1234.         {
  1235.             return SCRIPT_OVERRIDE;
  1236.         }
  1237.        
  1238.         return SCRIPT_CONTINUE;
  1239.     }
  1240.    
  1241.    
  1242.     public int sp_hd_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1243.     {
  1244.         if (!combatStandardAction("sp_hd_melee_5", self, target, params, "", ""))
  1245.         {
  1246.             return SCRIPT_OVERRIDE;
  1247.         }
  1248.        
  1249.         return SCRIPT_CONTINUE;
  1250.     }
  1251.    
  1252.    
  1253.     public int sp_hd_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1254.     {
  1255.         if (!combatStandardAction("sp_hd_melee_6", self, target, params, "", ""))
  1256.         {
  1257.             return SCRIPT_OVERRIDE;
  1258.         }
  1259.        
  1260.         return SCRIPT_CONTINUE;
  1261.     }
  1262.    
  1263.    
  1264.     public int sp_hd_range_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1265.     {
  1266.         if (!combatStandardAction("sp_hd_range_0", self, target, params, "", ""))
  1267.         {
  1268.             return SCRIPT_OVERRIDE;
  1269.         }
  1270.        
  1271.         return SCRIPT_CONTINUE;
  1272.     }
  1273.    
  1274.    
  1275.     public int sp_hd_range_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1276.     {
  1277.         if (!combatStandardAction("sp_hd_range_1", self, target, params, "", ""))
  1278.         {
  1279.             return SCRIPT_OVERRIDE;
  1280.         }
  1281.        
  1282.         return SCRIPT_CONTINUE;
  1283.     }
  1284.    
  1285.    
  1286.     public int sp_hd_range_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1287.     {
  1288.         if (!combatStandardAction("sp_hd_range_2", self, target, params, "", ""))
  1289.         {
  1290.             return SCRIPT_OVERRIDE;
  1291.         }
  1292.        
  1293.         return SCRIPT_CONTINUE;
  1294.     }
  1295.    
  1296.    
  1297.     public int sp_hd_range_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1298.     {
  1299.         if (!combatStandardAction("sp_hd_range_3", self, target, params, "", ""))
  1300.         {
  1301.             return SCRIPT_OVERRIDE;
  1302.         }
  1303.        
  1304.         return SCRIPT_CONTINUE;
  1305.     }
  1306.    
  1307.    
  1308.     public int sp_hd_range_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1309.     {
  1310.         if (!combatStandardAction("sp_hd_range_4", self, target, params, "", ""))
  1311.         {
  1312.             return SCRIPT_OVERRIDE;
  1313.         }
  1314.        
  1315.         return SCRIPT_CONTINUE;
  1316.     }
  1317.    
  1318.    
  1319.     public int sp_hd_range_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1320.     {
  1321.         if (!combatStandardAction("sp_hd_range_5", self, target, params, "", ""))
  1322.         {
  1323.             return SCRIPT_OVERRIDE;
  1324.         }
  1325.        
  1326.         return SCRIPT_CONTINUE;
  1327.     }
  1328.    
  1329.    
  1330.     public int sp_hd_range_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1331.     {
  1332.         if (!combatStandardAction("sp_hd_range_6", self, target, params, "", ""))
  1333.         {
  1334.             return SCRIPT_OVERRIDE;
  1335.         }
  1336.        
  1337.         return SCRIPT_CONTINUE;
  1338.     }
  1339.    
  1340.    
  1341.     public int sp_stealth_melee_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1342.     {
  1343.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1344.         {
  1345.             return SCRIPT_OVERRIDE;
  1346.         }
  1347.        
  1348.         if (!combatStandardAction("sp_stealth_melee_0", self, target, params, "", ""))
  1349.         {
  1350.             return SCRIPT_OVERRIDE;
  1351.         }
  1352.        
  1353.         return SCRIPT_CONTINUE;
  1354.     }
  1355.    
  1356.    
  1357.     public int sp_stealth_melee_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1358.     {
  1359.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1360.         {
  1361.             return SCRIPT_OVERRIDE;
  1362.         }
  1363.        
  1364.         if (!combatStandardAction("sp_stealth_melee_1", self, target, params, "", ""))
  1365.         {
  1366.             return SCRIPT_OVERRIDE;
  1367.         }
  1368.        
  1369.         return SCRIPT_CONTINUE;
  1370.     }
  1371.    
  1372.    
  1373.     public int sp_stealth_melee_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1374.     {
  1375.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1376.         {
  1377.             return SCRIPT_OVERRIDE;
  1378.         }
  1379.        
  1380.         if (!combatStandardAction("sp_stealth_melee_2", self, target, params, "", ""))
  1381.         {
  1382.             return SCRIPT_OVERRIDE;
  1383.         }
  1384.        
  1385.         return SCRIPT_CONTINUE;
  1386.     }
  1387.    
  1388.    
  1389.     public int sp_stealth_melee_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1390.     {
  1391.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1392.         {
  1393.             return SCRIPT_OVERRIDE;
  1394.         }
  1395.        
  1396.         if (!combatStandardAction("sp_stealth_melee_3", self, target, params, "", ""))
  1397.         {
  1398.             return SCRIPT_OVERRIDE;
  1399.         }
  1400.        
  1401.         return SCRIPT_CONTINUE;
  1402.     }
  1403.    
  1404.    
  1405.     public int sp_stealth_melee_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1406.     {
  1407.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1408.         {
  1409.             return SCRIPT_OVERRIDE;
  1410.         }
  1411.        
  1412.         if (!combatStandardAction("sp_stealth_melee_4", self, target, params, "", ""))
  1413.         {
  1414.             return SCRIPT_OVERRIDE;
  1415.         }
  1416.        
  1417.         return SCRIPT_CONTINUE;
  1418.     }
  1419.    
  1420.    
  1421.     public int sp_stealth_melee_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1422.     {
  1423.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1424.         {
  1425.             return SCRIPT_OVERRIDE;
  1426.         }
  1427.        
  1428.         if (!combatStandardAction("sp_stealth_melee_5", self, target, params, "", ""))
  1429.         {
  1430.             return SCRIPT_OVERRIDE;
  1431.         }
  1432.        
  1433.         return SCRIPT_CONTINUE;
  1434.     }
  1435.    
  1436.    
  1437.     public int sp_stealth_melee_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1438.     {
  1439.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1440.         {
  1441.             return SCRIPT_OVERRIDE;
  1442.         }
  1443.        
  1444.         if (!combatStandardAction("sp_stealth_melee_6", self, target, params, "", ""))
  1445.         {
  1446.             return SCRIPT_OVERRIDE;
  1447.         }
  1448.        
  1449.         return SCRIPT_CONTINUE;
  1450.     }
  1451.    
  1452.    
  1453.     public int sp_stealth_ranged_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1454.     {
  1455.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1456.         {
  1457.             return SCRIPT_OVERRIDE;
  1458.         }
  1459.        
  1460.         if (!combatStandardAction("sp_stealth_ranged_0", self, target, params, "", ""))
  1461.         {
  1462.             return SCRIPT_OVERRIDE;
  1463.         }
  1464.        
  1465.         return SCRIPT_CONTINUE;
  1466.     }
  1467.    
  1468.    
  1469.     public int sp_stealth_ranged_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1470.     {
  1471.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1472.         {
  1473.             return SCRIPT_OVERRIDE;
  1474.         }
  1475.        
  1476.         if (!combatStandardAction("sp_stealth_ranged_1", self, target, params, "", ""))
  1477.         {
  1478.             return SCRIPT_OVERRIDE;
  1479.         }
  1480.        
  1481.         return SCRIPT_CONTINUE;
  1482.     }
  1483.    
  1484.    
  1485.     public int sp_stealth_ranged_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1486.     {
  1487.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1488.         {
  1489.             return SCRIPT_OVERRIDE;
  1490.         }
  1491.        
  1492.         if (!combatStandardAction("sp_stealth_ranged_2", self, target, params, "", ""))
  1493.         {
  1494.             return SCRIPT_OVERRIDE;
  1495.         }
  1496.        
  1497.         return SCRIPT_CONTINUE;
  1498.     }
  1499.    
  1500.    
  1501.     public int sp_stealth_ranged_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1502.     {
  1503.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1504.         {
  1505.             return SCRIPT_OVERRIDE;
  1506.         }
  1507.        
  1508.         if (!combatStandardAction("sp_stealth_ranged_3", self, target, params, "", ""))
  1509.         {
  1510.             return SCRIPT_OVERRIDE;
  1511.         }
  1512.        
  1513.         return SCRIPT_CONTINUE;
  1514.     }
  1515.    
  1516.    
  1517.     public int sp_stealth_ranged_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1518.     {
  1519.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1520.         {
  1521.             return SCRIPT_OVERRIDE;
  1522.         }
  1523.        
  1524.         if (!combatStandardAction("sp_stealth_ranged_4", self, target, params, "", ""))
  1525.         {
  1526.             return SCRIPT_OVERRIDE;
  1527.         }
  1528.        
  1529.         return SCRIPT_CONTINUE;
  1530.     }
  1531.    
  1532.    
  1533.     public int sp_stealth_ranged_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1534.     {
  1535.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1536.         {
  1537.             return SCRIPT_OVERRIDE;
  1538.         }
  1539.        
  1540.         if (!combatStandardAction("sp_stealth_ranged_5", self, target, params, "", ""))
  1541.         {
  1542.             return SCRIPT_OVERRIDE;
  1543.         }
  1544.        
  1545.         return SCRIPT_CONTINUE;
  1546.     }
  1547.    
  1548.    
  1549.     public int sp_stealth_ranged_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1550.     {
  1551.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1552.         {
  1553.             return SCRIPT_OVERRIDE;
  1554.         }
  1555.        
  1556.         if (!combatStandardAction("sp_stealth_ranged_6", self, target, params, "", ""))
  1557.         {
  1558.             return SCRIPT_OVERRIDE;
  1559.         }
  1560.        
  1561.         return SCRIPT_CONTINUE;
  1562.     }
  1563.    
  1564.    
  1565.     public int sp_run_its_course(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1566.     {
  1567.        
  1568.         if (!combatStandardAction("sp_run_its_course", self, target, params, "", ""))
  1569.         {
  1570.             return SCRIPT_OVERRIDE;
  1571.         }
  1572.         return SCRIPT_CONTINUE;
  1573.     }
  1574.    
  1575.    
  1576.     public int sp_fld_debuff_ca(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1577.     {
  1578.         if (!combatStandardAction("sp_fld_debuff_ca", self, target, params, "", ""))
  1579.         {
  1580.             return SCRIPT_OVERRIDE;
  1581.         }
  1582.         return SCRIPT_CONTINUE;
  1583.     }
  1584.    
  1585.    
  1586.     public int sp_fldmot_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1587.     {
  1588.         int crippleChanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase");
  1589.        
  1590.         int roll = rand(1,100);
  1591.         if (roll < crippleChanceMod)
  1592.         {
  1593.             if (!combatStandardAction("sp_fldmot_1_snare", self, target, params, "", ""))
  1594.             {
  1595.                 return SCRIPT_OVERRIDE;
  1596.             }
  1597.         }
  1598.         else
  1599.         {
  1600.             if (!combatStandardAction("sp_fldmot_1", self, target, params, "", ""))
  1601.             {
  1602.                 return SCRIPT_OVERRIDE;
  1603.             }
  1604.         }
  1605.         return SCRIPT_CONTINUE;
  1606.     }
  1607.    
  1608.    
  1609.     public int sp_fldmot_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1610.     {
  1611.         int crippleChanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase");
  1612.        
  1613.         int roll = rand(1,100);
  1614.         if (roll < crippleChanceMod)
  1615.         {
  1616.             if (!combatStandardAction("sp_fldmot_2_snare", self, target, params, "", ""))
  1617.             {
  1618.                 return SCRIPT_OVERRIDE;
  1619.             }
  1620.         }
  1621.         else
  1622.         {
  1623.             if (!combatStandardAction("sp_fldmot_2", self, target, params, "", ""))
  1624.             {
  1625.                 return SCRIPT_OVERRIDE;
  1626.             }
  1627.         }
  1628.         return SCRIPT_CONTINUE;
  1629.     }
  1630.    
  1631.    
  1632.     public int sp_fldmot_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1633.     {
  1634.         int crippleChanceMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_sp_cripple_trap_proc_increase");
  1635.        
  1636.         int roll = rand(1,100);
  1637.         if (roll < crippleChanceMod)
  1638.         {
  1639.             if (!combatStandardAction("sp_fldmot_3_snare", self, target, params, "", ""))
  1640.             {
  1641.                 return SCRIPT_OVERRIDE;
  1642.             }
  1643.         }
  1644.         else
  1645.         {
  1646.             if (!combatStandardAction("sp_fldmot_3", self, target, params, "", ""))
  1647.             {
  1648.                 return SCRIPT_OVERRIDE;
  1649.             }
  1650.         }
  1651.         return SCRIPT_CONTINUE;
  1652.     }
  1653.    
  1654.    
  1655.     public int sp_sh_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1656.     {
  1657.         if (!healing.isDamaged(self))
  1658.         {
  1659.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1660.             return SCRIPT_OVERRIDE;
  1661.         }
  1662.        
  1663.         if (!combatStandardAction("sp_sh_0", self, target, params, "", ""))
  1664.         {
  1665.             return SCRIPT_OVERRIDE;
  1666.         }
  1667.        
  1668.         return SCRIPT_CONTINUE;
  1669.     }
  1670.    
  1671.    
  1672.     public int sp_sh_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1673.     {
  1674.         if (!healing.isDamaged(self))
  1675.         {
  1676.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1677.             return SCRIPT_OVERRIDE;
  1678.         }
  1679.        
  1680.         if (!combatStandardAction("sp_sh_1", self, target, params, "", ""))
  1681.         {
  1682.             return SCRIPT_OVERRIDE;
  1683.         }
  1684.        
  1685.         return SCRIPT_CONTINUE;
  1686.     }
  1687.    
  1688.    
  1689.     public int sp_sh_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1690.     {
  1691.         if (!healing.isDamaged(self))
  1692.         {
  1693.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1694.             return SCRIPT_OVERRIDE;
  1695.         }
  1696.        
  1697.         if (!combatStandardAction("sp_sh_2", self, target, params, "", ""))
  1698.         {
  1699.             return SCRIPT_OVERRIDE;
  1700.         }
  1701.        
  1702.         return SCRIPT_CONTINUE;
  1703.     }
  1704.    
  1705.    
  1706.     public int sp_sh_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1707.     {
  1708.         if (!healing.isDamaged(self))
  1709.         {
  1710.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1711.             return SCRIPT_OVERRIDE;
  1712.         }
  1713.        
  1714.         if (!combatStandardAction("sp_sh_3", self, target, params, "", ""))
  1715.         {
  1716.             return SCRIPT_OVERRIDE;
  1717.         }
  1718.        
  1719.         return SCRIPT_CONTINUE;
  1720.     }
  1721.    
  1722.    
  1723.     public int sp_cloaked_recovery_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1724.     {
  1725.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1726.         {
  1727.             return SCRIPT_OVERRIDE;
  1728.         }
  1729.        
  1730.         if (!healing.isDamaged(self))
  1731.         {
  1732.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1733.             return SCRIPT_OVERRIDE;
  1734.         }
  1735.        
  1736.         if (!combatStandardAction("sp_cloaked_recovery_0", self, target, params, "", ""))
  1737.         {
  1738.             return SCRIPT_OVERRIDE;
  1739.         }
  1740.        
  1741.         return SCRIPT_CONTINUE;
  1742.     }
  1743.    
  1744.    
  1745.     public int sp_cloaked_recovery_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1746.     {
  1747.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1748.         {
  1749.             return SCRIPT_OVERRIDE;
  1750.         }
  1751.        
  1752.         if (!healing.isDamaged(self))
  1753.         {
  1754.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1755.             return SCRIPT_OVERRIDE;
  1756.         }
  1757.        
  1758.         if (!combatStandardAction("sp_cloaked_recovery_1", self, target, params, "", ""))
  1759.         {
  1760.             return SCRIPT_OVERRIDE;
  1761.         }
  1762.        
  1763.         return SCRIPT_CONTINUE;
  1764.     }
  1765.    
  1766.    
  1767.     public int sp_cloaked_recovery_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1768.     {
  1769.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1770.         {
  1771.             return SCRIPT_OVERRIDE;
  1772.         }
  1773.        
  1774.         if (!healing.isDamaged(self))
  1775.         {
  1776.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1777.             return SCRIPT_OVERRIDE;
  1778.         }
  1779.        
  1780.         if (!combatStandardAction("sp_cloaked_recovery_2", self, target, params, "", ""))
  1781.         {
  1782.             return SCRIPT_OVERRIDE;
  1783.         }
  1784.        
  1785.         return SCRIPT_CONTINUE;
  1786.     }
  1787.    
  1788.    
  1789.     public int sp_cloaked_recovery_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1790.     {
  1791.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1792.         {
  1793.             return SCRIPT_OVERRIDE;
  1794.         }
  1795.        
  1796.         if (!healing.isDamaged(self))
  1797.         {
  1798.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1799.             return SCRIPT_OVERRIDE;
  1800.         }
  1801.        
  1802.         if (!combatStandardAction("sp_cloaked_recovery_3", self, target, params, "", ""))
  1803.         {
  1804.             return SCRIPT_OVERRIDE;
  1805.         }
  1806.        
  1807.         return SCRIPT_CONTINUE;
  1808.     }
  1809.    
  1810.    
  1811.     public int sp_cloaked_recovery_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1812.     {
  1813.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  1814.         {
  1815.             return SCRIPT_OVERRIDE;
  1816.         }
  1817.        
  1818.         if (!healing.isDamaged(self))
  1819.         {
  1820.             sendSystemMessage(self, new string_id("healing", "no_damage_to_heal_self"));
  1821.             return SCRIPT_OVERRIDE;
  1822.         }
  1823.        
  1824.         if (!combatStandardAction("sp_cloaked_recovery_4", self, target, params, "", ""))
  1825.         {
  1826.             return SCRIPT_OVERRIDE;
  1827.         }
  1828.        
  1829.         return SCRIPT_CONTINUE;
  1830.     }
  1831.    
  1832.    
  1833.     public int handleClearBuffEffect(obj_id self, dictionary params) throws InterruptedException
  1834.     {
  1835.         int buffCrc = params.getInt("buffCrc");
  1836.         if (buffCrc != 0)
  1837.         {
  1838.             stopClientEffectObjByLabel(self, buff.getBuffNameFromCrc(buffCrc));
  1839.         }
  1840.        
  1841.         return SCRIPT_CONTINUE;
  1842.     }
  1843.    
  1844.    
  1845.     public int failDefaultAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1846.     {
  1847.         return SCRIPT_OVERRIDE;
  1848.     }
  1849.    
  1850.    
  1851.     public int failSpecialAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1852.     {
  1853.         return SCRIPT_CONTINUE;
  1854.     }
  1855.    
  1856.    
  1857.     public int failProc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1858.     {
  1859.        
  1860.         return SCRIPT_CONTINUE;
  1861.     }
  1862.    
  1863.    
  1864.     public int fs_riposte(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1865.     {
  1866.         if (!buff.isInStance(self))
  1867.         {
  1868.             return SCRIPT_OVERRIDE;
  1869.         }
  1870.        
  1871.         if (!combatStandardAction("fs_riposte", self, target, params, "", ""))
  1872.         {
  1873.             return SCRIPT_OVERRIDE;
  1874.         }
  1875.        
  1876.         showFlyTextPrivate(self, self, new string_id("combat_effects", "riposte"), 1.5f, colors.ORANGERED);
  1877.        
  1878.         return SCRIPT_CONTINUE;
  1879.     }
  1880.    
  1881.    
  1882.     public int expertise_fs_force_clarity_1_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1883.     {
  1884.         if (!combatStandardAction("expertise_fs_force_clarity_1_proc", self, target, params, "", ""))
  1885.         {
  1886.             return SCRIPT_OVERRIDE;
  1887.         }
  1888.        
  1889.         return SCRIPT_CONTINUE;
  1890.     }
  1891.    
  1892.    
  1893.     public int meleeHit(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1894.     {
  1895.         if (!combatStandardAction("meleeHit", self, target, params, "", ""))
  1896.         {
  1897.             return SCRIPT_OVERRIDE;
  1898.         }
  1899.        
  1900.         return SCRIPT_CONTINUE;
  1901.     }
  1902.    
  1903.    
  1904.     public int rangedShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1905.     {
  1906.         if (!combatStandardAction("rangedShot", self, target, params, "", ""))
  1907.         {
  1908.             return SCRIPT_OVERRIDE;
  1909.         }
  1910.         return SCRIPT_CONTINUE;
  1911.     }
  1912.    
  1913.    
  1914.     public int saberHit(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1915.     {
  1916.         if (!combatStandardAction("saberHit", self, target, params, "", ""))
  1917.         {
  1918.             return SCRIPT_OVERRIDE;
  1919.         }
  1920.        
  1921.         return SCRIPT_CONTINUE;
  1922.     }
  1923.    
  1924.    
  1925.     public int proc_cyber_shock(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1926.     {
  1927.         if (!combatStandardAction("proc_cyber_shock", self, target, params, "", ""))
  1928.         {
  1929.             return SCRIPT_OVERRIDE;
  1930.         }
  1931.        
  1932.         return SCRIPT_CONTINUE;
  1933.     }
  1934.    
  1935.    
  1936.     public int proc_fire_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1937.     {
  1938.         LOG("procCommand", "proc found");
  1939.         if (!combatStandardAction("proc_fire_attack", self, target, params, "", ""))
  1940.         {
  1941.             LOG("procCommand", "proc failed in combat standard");
  1942.             return SCRIPT_OVERRIDE;
  1943.         }
  1944.        
  1945.         LOG("procCommand","proc worked in script");
  1946.         return SCRIPT_CONTINUE;
  1947.     }
  1948.    
  1949.    
  1950.     public int proc_generic_test(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1951.     {
  1952.         if (!combatStandardAction("proc_generic_test", self, target, params, "", ""))
  1953.         {
  1954.             return SCRIPT_OVERRIDE;
  1955.         }
  1956.        
  1957.         return SCRIPT_CONTINUE;
  1958.     }
  1959.    
  1960.    
  1961.     public int reac_generic_test(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1962.     {
  1963.         if (!combatStandardAction("reac_generic_test", self, target, params, "", ""))
  1964.         {
  1965.             return SCRIPT_OVERRIDE;
  1966.         }
  1967.        
  1968.         return SCRIPT_CONTINUE;
  1969.     }
  1970.    
  1971.    
  1972.     public int expertise_generic_test_proc(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1973.     {
  1974.         if (!combatStandardAction("expertise_generic_test_proc", self, target, params, "", ""))
  1975.         {
  1976.             return SCRIPT_OVERRIDE;
  1977.         }
  1978.        
  1979.         return SCRIPT_CONTINUE;
  1980.     }
  1981.    
  1982.    
  1983.     public int expertise_generic_test_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1984.     {
  1985.         if (!combatStandardAction("expertise_generic_test_reac", self, target, params, "", ""))
  1986.         {
  1987.             return SCRIPT_OVERRIDE;
  1988.         }
  1989.        
  1990.         return SCRIPT_CONTINUE;
  1991.     }
  1992.    
  1993.    
  1994.     public int proc_fire_attack_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  1995.     {
  1996.         if (!combatStandardAction("proc_fire_attack_1", self, target, params, "", ""))
  1997.         {
  1998.             return SCRIPT_OVERRIDE;
  1999.         }
  2000.        
  2001.         return SCRIPT_CONTINUE;
  2002.     }
  2003.    
  2004.    
  2005.     public int proc_tow_proc_a_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2006.     {
  2007.         if (!combatStandardAction("proc_tow_proc_a_1", self, target, params, "", ""))
  2008.         {
  2009.             return SCRIPT_OVERRIDE;
  2010.         }
  2011.        
  2012.         return SCRIPT_CONTINUE;
  2013.     }
  2014.    
  2015.    
  2016.     public int proc_tow_proc_a_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2017.     {
  2018.         if (!combatStandardAction("proc_tow_proc_a_2", self, target, params, "", ""))
  2019.         {
  2020.             return SCRIPT_OVERRIDE;
  2021.         }
  2022.        
  2023.         return SCRIPT_CONTINUE;
  2024.     }
  2025.    
  2026.    
  2027.     public int proc_tow_proc_a_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2028.     {
  2029.         if (!combatStandardAction("proc_tow_proc_a_3", self, target, params, "", ""))
  2030.         {
  2031.             return SCRIPT_OVERRIDE;
  2032.         }
  2033.        
  2034.         return SCRIPT_CONTINUE;
  2035.     }
  2036.    
  2037.    
  2038.     public int proc_tow_proc_b_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2039.     {
  2040.         if (!combatStandardAction("proc_tow_proc_b_3", self, target, params, "", ""))
  2041.         {
  2042.             return SCRIPT_OVERRIDE;
  2043.         }
  2044.        
  2045.         return SCRIPT_CONTINUE;
  2046.     }
  2047.    
  2048.    
  2049.     public int proc_tow_proc_b_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2050.     {
  2051.         if (!combatStandardAction("proc_tow_proc_b_2", self, target, params, "", ""))
  2052.         {
  2053.             return SCRIPT_OVERRIDE;
  2054.         }
  2055.        
  2056.         return SCRIPT_CONTINUE;
  2057.     }
  2058.    
  2059.    
  2060.     public int proc_tow_proc_b_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2061.     {
  2062.         if (!combatStandardAction("proc_tow_proc_b_1", self, target, params, "", ""))
  2063.         {
  2064.             return SCRIPT_OVERRIDE;
  2065.         }
  2066.        
  2067.         return SCRIPT_CONTINUE;
  2068.     }
  2069.    
  2070.    
  2071.     public int proc_tow_proc_b_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2072.     {
  2073.         if (!combatStandardAction("proc_tow_proc_b_4", self, target, params, "", ""))
  2074.         {
  2075.             return SCRIPT_OVERRIDE;
  2076.         }
  2077.        
  2078.         return SCRIPT_CONTINUE;
  2079.     }
  2080.    
  2081.    
  2082.     public int proc_tow_proc_b_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2083.     {
  2084.         if (!combatStandardAction("proc_tow_proc_b_5", self, target, params, "", ""))
  2085.         {
  2086.             return SCRIPT_OVERRIDE;
  2087.         }
  2088.        
  2089.         return SCRIPT_CONTINUE;
  2090.     }
  2091.    
  2092.    
  2093.     public int proc_tow_proc_b_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2094.     {
  2095.         if (!combatStandardAction("proc_tow_proc_b_6", self, target, params, "", ""))
  2096.         {
  2097.             return SCRIPT_OVERRIDE;
  2098.         }
  2099.        
  2100.         return SCRIPT_CONTINUE;
  2101.     }
  2102.    
  2103.    
  2104.     public int proc_tow_proc_b_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2105.     {
  2106.         if (!combatStandardAction("proc_tow_proc_b_7", self, target, params, "", ""))
  2107.         {
  2108.             return SCRIPT_OVERRIDE;
  2109.         }
  2110.        
  2111.         return SCRIPT_CONTINUE;
  2112.     }
  2113.    
  2114.    
  2115.     public int proc_tow_proc_coyn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2116.     {
  2117.         if (!combatStandardAction("proc_tow_proc_coyn", self, target, params, "", ""))
  2118.         {
  2119.             return SCRIPT_OVERRIDE;
  2120.         }
  2121.        
  2122.         return SCRIPT_CONTINUE;
  2123.     }
  2124.    
  2125.    
  2126.     public int proc_tow_proc_bracelet_melee(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2127.     {
  2128.         if (!combatStandardAction("proc_tow_proc_bracelet_melee", self, target, params, "", ""))
  2129.         {
  2130.             return SCRIPT_OVERRIDE;
  2131.         }
  2132.        
  2133.         return SCRIPT_CONTINUE;
  2134.     }
  2135.    
  2136.    
  2137.     public int proc_tow_proc_bracelet_range(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2138.     {
  2139.         if (!combatStandardAction("proc_tow_proc_bracelet_range", self, target, params, "", ""))
  2140.         {
  2141.             return SCRIPT_OVERRIDE;
  2142.         }
  2143.        
  2144.         return SCRIPT_CONTINUE;
  2145.     }
  2146.    
  2147.    
  2148.     public int proc_tow_proc_bracelet_combo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2149.     {
  2150.         if (!combatStandardAction("proc_tow_proc_bracelet_combo", self, target, params, "", ""))
  2151.         {
  2152.             return SCRIPT_OVERRIDE;
  2153.         }
  2154.        
  2155.         return SCRIPT_CONTINUE;
  2156.     }
  2157.    
  2158.    
  2159.     public int proc_content_charged_proc_fire(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2160.     {
  2161.         if (!combatStandardAction("proc_content_charged_proc_fire", self, target, params, "", ""))
  2162.         {
  2163.             return SCRIPT_OVERRIDE;
  2164.         }
  2165.        
  2166.         return SCRIPT_CONTINUE;
  2167.     }
  2168.    
  2169.    
  2170.     public int proc_content_charged_proc_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2171.     {
  2172.         if (!combatStandardAction("proc_content_charged_proc_cold", self, target, params, "", ""))
  2173.         {
  2174.             return SCRIPT_OVERRIDE;
  2175.         }
  2176.        
  2177.         return SCRIPT_CONTINUE;
  2178.     }
  2179.    
  2180.    
  2181.     public int proc_content_charged_proc_melee_poison_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2182.     {
  2183.         if (!combatStandardAction("proc_content_charged_proc_melee_poison_1", self, target, params, "", ""))
  2184.         {
  2185.             return SCRIPT_OVERRIDE;
  2186.         }
  2187.        
  2188.         return SCRIPT_CONTINUE;
  2189.     }
  2190.    
  2191.    
  2192.     public int proc_content_charged_proc_range_heat_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2193.     {
  2194.         if (!combatStandardAction("proc_content_charged_proc_range_heat_1", self, target, params, "", ""))
  2195.         {
  2196.             return SCRIPT_OVERRIDE;
  2197.         }
  2198.        
  2199.         return SCRIPT_CONTINUE;
  2200.     }
  2201.    
  2202.    
  2203.     public int proc_content_charged_proc_melee_poison_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2204.     {
  2205.         if (!combatStandardAction("proc_content_charged_proc_melee_poison_2", self, target, params, "", ""))
  2206.         {
  2207.             return SCRIPT_OVERRIDE;
  2208.         }
  2209.        
  2210.         return SCRIPT_CONTINUE;
  2211.     }
  2212.    
  2213.    
  2214.     public int proc_content_charged_proc_range_heat_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2215.     {
  2216.         if (!combatStandardAction("proc_content_charged_proc_range_heat_2", self, target, params, "", ""))
  2217.         {
  2218.             return SCRIPT_OVERRIDE;
  2219.         }
  2220.        
  2221.         return SCRIPT_CONTINUE;
  2222.     }
  2223.    
  2224.    
  2225.     public int proc_old_light_jedi_gift(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2226.     {
  2227.         if (!combatStandardAction("proc_old_light_jedi_gift", self, target, params, "", ""))
  2228.         {
  2229.             return SCRIPT_OVERRIDE;
  2230.         }
  2231.        
  2232.         return SCRIPT_CONTINUE;
  2233.     }
  2234.    
  2235.    
  2236.     public int proc_old_dark_jedi_gift(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2237.     {
  2238.         if (!combatStandardAction("proc_old_dark_jedi_gift", self, target, params, "", ""))
  2239.         {
  2240.             return SCRIPT_OVERRIDE;
  2241.         }
  2242.        
  2243.         return SCRIPT_CONTINUE;
  2244.     }
  2245.    
  2246.    
  2247.     public int bh_innate_assault_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2248.     {
  2249.         if (!combatStandardAction("bh_innate_assault_1", self, target, params, "", ""))
  2250.         {
  2251.             return SCRIPT_OVERRIDE;
  2252.         }
  2253.        
  2254.         return SCRIPT_CONTINUE;
  2255.     }
  2256.    
  2257.    
  2258.     public int bh_return_fire_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2259.     {
  2260.         if (!combatStandardAction("bh_return_fire_1", self, target, params, "", ""))
  2261.         {
  2262.             return SCRIPT_OVERRIDE;
  2263.         }
  2264.        
  2265.         return SCRIPT_CONTINUE;
  2266.     }
  2267.    
  2268.    
  2269.     public int bh_taunt_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2270.     {
  2271.         if (!isIdValid(target) || !exists(target))
  2272.         {
  2273.             return SCRIPT_OVERRIDE;
  2274.         }
  2275.        
  2276.         if (!ai_lib.isTauntable(target))
  2277.         {
  2278.             return SCRIPT_OVERRIDE;
  2279.         }
  2280.        
  2281.         if (!combatStandardAction("bh_taunt_1", self, target, params, "", ""))
  2282.         {
  2283.             return SCRIPT_OVERRIDE;
  2284.         }
  2285.        
  2286.         obj_id topHateTarget = getHateTarget(target);
  2287.        
  2288.         if (topHateTarget != self)
  2289.         {
  2290.             combat.doBhTaunt(self, target);
  2291.         }
  2292.         return SCRIPT_CONTINUE;
  2293.     }
  2294.    
  2295.    
  2296.     public int bh_taunt_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2297.     {
  2298.         if (!combatStandardAction("bh_taunt_2", self, target, params, "", ""))
  2299.         {
  2300.             return SCRIPT_OVERRIDE;
  2301.         }
  2302.        
  2303.         return SCRIPT_CONTINUE;
  2304.     }
  2305.    
  2306.    
  2307.     public int bh_taunt_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2308.     {
  2309.         if (!combatStandardAction("bh_taunt_3", self, target, params, "", ""))
  2310.         {
  2311.             return SCRIPT_OVERRIDE;
  2312.         }
  2313.        
  2314.         return SCRIPT_CONTINUE;
  2315.     }
  2316.    
  2317.    
  2318.     public int bh_taunt_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2319.     {
  2320.         if (!combatStandardAction("bh_taunt_4", self, target, params, "", ""))
  2321.         {
  2322.             return SCRIPT_OVERRIDE;
  2323.         }
  2324.        
  2325.         return SCRIPT_CONTINUE;
  2326.     }
  2327.    
  2328.    
  2329.     public int bh_taunt_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2330.     {
  2331.         if (!combatStandardAction("bh_taunt_5", self, target, params, "", ""))
  2332.         {
  2333.             return SCRIPT_OVERRIDE;
  2334.         }
  2335.        
  2336.         return SCRIPT_CONTINUE;
  2337.     }
  2338.    
  2339.    
  2340.     public int bh_taunt_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2341.     {
  2342.         if (!combatStandardAction("bh_taunt_6", self, target, params, "", ""))
  2343.         {
  2344.             return SCRIPT_OVERRIDE;
  2345.         }
  2346.        
  2347.         return SCRIPT_CONTINUE;
  2348.     }
  2349.    
  2350.    
  2351.     public int bh_fumble_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2352.     {
  2353.         if (!combatStandardAction("bh_fumble_1", self, target, params, "", ""))
  2354.         {
  2355.             return SCRIPT_OVERRIDE;
  2356.         }
  2357.        
  2358.         return SCRIPT_CONTINUE;
  2359.     }
  2360.    
  2361.    
  2362.     public int bh_fumble_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2363.     {
  2364.         if (!combatStandardAction("bh_fumble_2", self, target, params, "", ""))
  2365.         {
  2366.             return SCRIPT_OVERRIDE;
  2367.         }
  2368.        
  2369.         return SCRIPT_CONTINUE;
  2370.     }
  2371.    
  2372.    
  2373.     public int bh_fumble_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2374.     {
  2375.         if (!combatStandardAction("bh_fumble_3", self, target, params, "", ""))
  2376.         {
  2377.             return SCRIPT_OVERRIDE;
  2378.         }
  2379.        
  2380.         return SCRIPT_CONTINUE;
  2381.     }
  2382.    
  2383.    
  2384.     public int bh_fumble_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2385.     {
  2386.         if (!combatStandardAction("bh_fumble_4", self, target, params, "", ""))
  2387.         {
  2388.             return SCRIPT_OVERRIDE;
  2389.         }
  2390.        
  2391.         return SCRIPT_CONTINUE;
  2392.     }
  2393.    
  2394.    
  2395.     public int bh_fumble_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2396.     {
  2397.         if (!combatStandardAction("bh_fumble_5", self, target, params, "", ""))
  2398.         {
  2399.             return SCRIPT_OVERRIDE;
  2400.         }
  2401.        
  2402.         return SCRIPT_CONTINUE;
  2403.     }
  2404.    
  2405.    
  2406.     public int bh_fumble_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2407.     {
  2408.         if (!combatStandardAction("bh_fumble_6", self, target, params, "", ""))
  2409.         {
  2410.             return SCRIPT_OVERRIDE;
  2411.         }
  2412.        
  2413.         return SCRIPT_CONTINUE;
  2414.     }
  2415.    
  2416.    
  2417.     public int bh_stun_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2418.     {
  2419.         if (!combatStandardAction("bh_stun_1", self, target, params, "", ""))
  2420.         {
  2421.             return SCRIPT_OVERRIDE;
  2422.         }
  2423.        
  2424.         return SCRIPT_CONTINUE;
  2425.     }
  2426.    
  2427.    
  2428.     public int bh_stun_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2429.     {
  2430.         if (!combatStandardAction("bh_stun_2", self, target, params, "", ""))
  2431.         {
  2432.             return SCRIPT_OVERRIDE;
  2433.         }
  2434.        
  2435.         return SCRIPT_CONTINUE;
  2436.     }
  2437.    
  2438.    
  2439.     public int bh_stun_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2440.     {
  2441.         if (!combatStandardAction("bh_stun_3", self, target, params, "", ""))
  2442.         {
  2443.             return SCRIPT_OVERRIDE;
  2444.         }
  2445.        
  2446.         return SCRIPT_CONTINUE;
  2447.     }
  2448.    
  2449.    
  2450.     public int bh_stun_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2451.     {
  2452.         if (!combatStandardAction("bh_stun_4", self, target, params, "", ""))
  2453.         {
  2454.             return SCRIPT_OVERRIDE;
  2455.         }
  2456.        
  2457.         return SCRIPT_CONTINUE;
  2458.     }
  2459.    
  2460.    
  2461.     public int bh_stun_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2462.     {
  2463.         if (!combatStandardAction("bh_stun_5", self, target, params, "", ""))
  2464.         {
  2465.             return SCRIPT_OVERRIDE;
  2466.         }
  2467.        
  2468.         return SCRIPT_CONTINUE;
  2469.     }
  2470.    
  2471.    
  2472.     public int bh_prescience(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2473.     {
  2474.         if (!combatStandardAction("bh_prescience", self, target, params, "", ""))
  2475.         {
  2476.             return SCRIPT_OVERRIDE;
  2477.         }
  2478.        
  2479.         buff.applyBuff(self, target, "bh_prescience");
  2480.         obj_id[] viewers = new obj_id[2];
  2481.         viewers[0] = self;
  2482.         viewers[1] = target;
  2483.         playClientEffectObj(viewers, "appearance/pt_arrow_disc_temp.prt", target, "");
  2484.        
  2485.         return SCRIPT_CONTINUE;
  2486.     }
  2487.    
  2488.    
  2489.     public int bh_shields_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2490.     {
  2491.         if (!combatStandardAction("bh_shields_1", self, target, params, "", ""))
  2492.         {
  2493.             return SCRIPT_OVERRIDE;
  2494.         }
  2495.        
  2496.         return SCRIPT_CONTINUE;
  2497.     }
  2498.    
  2499.    
  2500.     public int bh_dm_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2501.     {
  2502.         if (!combatStandardAction("bh_dm_crit_3", self, target, params, "", ""))
  2503.         {
  2504.             return SCRIPT_OVERRIDE;
  2505.         }
  2506.        
  2507.         float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_3");
  2508.         if (baseCooldownTime < 0)
  2509.         {
  2510.             return SCRIPT_OVERRIDE;
  2511.         }
  2512.        
  2513.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10;
  2514.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2515.        
  2516.         return SCRIPT_CONTINUE;
  2517.     }
  2518.    
  2519.    
  2520.     public int bh_dm_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2521.     {
  2522.         if (!combatStandardAction("bh_dm_crit_4", self, target, params, "", ""))
  2523.         {
  2524.             return SCRIPT_OVERRIDE;
  2525.         }
  2526.        
  2527.         float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_4");
  2528.         if (baseCooldownTime < 0)
  2529.         {
  2530.             return SCRIPT_OVERRIDE;
  2531.         }
  2532.        
  2533.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10;
  2534.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2535.        
  2536.         return SCRIPT_CONTINUE;
  2537.     }
  2538.    
  2539.    
  2540.     public int bh_dm_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2541.     {
  2542.         if (!combatStandardAction("bh_dm_crit_5", self, target, params, "", ""))
  2543.         {
  2544.             return SCRIPT_OVERRIDE;
  2545.         }
  2546.        
  2547.         float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_5");
  2548.         if (baseCooldownTime < 0)
  2549.         {
  2550.             return SCRIPT_OVERRIDE;
  2551.         }
  2552.        
  2553.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10;
  2554.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2555.        
  2556.         return SCRIPT_CONTINUE;
  2557.     }
  2558.    
  2559.    
  2560.     public int bh_dm_crit_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2561.     {
  2562.         if (!combatStandardAction("bh_dm_crit_6", self, target, params, "", ""))
  2563.         {
  2564.             return SCRIPT_OVERRIDE;
  2565.         }
  2566.        
  2567.         float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_6");
  2568.         if (baseCooldownTime < 0)
  2569.         {
  2570.             return SCRIPT_OVERRIDE;
  2571.         }
  2572.        
  2573.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10;
  2574.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2575.        
  2576.         return SCRIPT_CONTINUE;
  2577.     }
  2578.    
  2579.    
  2580.     public int bh_dm_crit_7(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2581.     {
  2582.         if (!combatStandardAction("bh_dm_crit_7", self, target, params, "", ""))
  2583.         {
  2584.             return SCRIPT_OVERRIDE;
  2585.         }
  2586.        
  2587.         float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_7");
  2588.         if (baseCooldownTime < 0)
  2589.         {
  2590.             return SCRIPT_OVERRIDE;
  2591.         }
  2592.        
  2593.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10;
  2594.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2595.        
  2596.         return SCRIPT_CONTINUE;
  2597.     }
  2598.    
  2599.    
  2600.     public int bh_dm_crit_8(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2601.     {
  2602.         if (!combatStandardAction("bh_dm_crit_8", self, target, params, "", ""))
  2603.         {
  2604.             return SCRIPT_OVERRIDE;
  2605.         }
  2606.        
  2607.         float baseCooldownTime = getBaseCooldownTime("bh_dm_crit_8");
  2608.         if (baseCooldownTime < 0)
  2609.         {
  2610.             return SCRIPT_OVERRIDE;
  2611.         }
  2612.        
  2613.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_dm_crit") / 10;
  2614.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2615.        
  2616.         return SCRIPT_CONTINUE;
  2617.     }
  2618.    
  2619.    
  2620.     public int bh_intimidate_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2621.     {
  2622.         if (!combatStandardAction("bh_intimidate_1", self, target, params, "", ""))
  2623.         {
  2624.             return SCRIPT_OVERRIDE;
  2625.         }
  2626.        
  2627.         return SCRIPT_CONTINUE;
  2628.     }
  2629.    
  2630.    
  2631.     public int bh_intimidate_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2632.     {
  2633.         if (!combatStandardAction("bh_intimidate_2", self, target, params, "", ""))
  2634.         {
  2635.             return SCRIPT_OVERRIDE;
  2636.         }
  2637.        
  2638.         return SCRIPT_CONTINUE;
  2639.     }
  2640.    
  2641.    
  2642.     public int bh_intimidate_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2643.     {
  2644.         if (!combatStandardAction("bh_intimidate_3", self, target, params, "", ""))
  2645.         {
  2646.             return SCRIPT_OVERRIDE;
  2647.         }
  2648.        
  2649.         return SCRIPT_CONTINUE;
  2650.     }
  2651.    
  2652.    
  2653.     public int bh_intimidate_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2654.     {
  2655.         if (!combatStandardAction("bh_intimidate_4", self, target, params, "", ""))
  2656.         {
  2657.             return SCRIPT_OVERRIDE;
  2658.         }
  2659.        
  2660.         return SCRIPT_CONTINUE;
  2661.     }
  2662.    
  2663.    
  2664.     public int bh_intimidate_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2665.     {
  2666.         if (!combatStandardAction("bh_intimidate_5", self, target, params, "", ""))
  2667.         {
  2668.             return SCRIPT_OVERRIDE;
  2669.         }
  2670.        
  2671.         return SCRIPT_CONTINUE;
  2672.     }
  2673.    
  2674.    
  2675.     public int bh_intimidate_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2676.     {
  2677.         if (!combatStandardAction("bh_intimidate_6", self, target, params, "", ""))
  2678.         {
  2679.             return SCRIPT_OVERRIDE;
  2680.         }
  2681.        
  2682.         return SCRIPT_CONTINUE;
  2683.     }
  2684.    
  2685.    
  2686.     public int bh_dread_strike_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2687.     {
  2688.         if (!combatStandardAction("bh_dread_strike_1", self, target, params, "", ""))
  2689.         {
  2690.             return SCRIPT_OVERRIDE;
  2691.         }
  2692.        
  2693.         return SCRIPT_CONTINUE;
  2694.     }
  2695.    
  2696.    
  2697.     public int bh_dread_strike_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2698.     {
  2699.         if (!combatStandardAction("bh_dread_strike_2", self, target, params, "", ""))
  2700.         {
  2701.             return SCRIPT_OVERRIDE;
  2702.         }
  2703.        
  2704.         return SCRIPT_CONTINUE;
  2705.     }
  2706.    
  2707.    
  2708.     public int bh_dread_strike_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2709.     {
  2710.         if (!combatStandardAction("bh_dread_strike_3", self, target, params, "", ""))
  2711.         {
  2712.             return SCRIPT_OVERRIDE;
  2713.         }
  2714.        
  2715.         return SCRIPT_CONTINUE;
  2716.     }
  2717.    
  2718.    
  2719.     public int bh_dread_strike_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2720.     {
  2721.         if (!combatStandardAction("bh_dread_strike_4", self, target, params, "", ""))
  2722.         {
  2723.             return SCRIPT_OVERRIDE;
  2724.         }
  2725.        
  2726.         return SCRIPT_CONTINUE;
  2727.     }
  2728.    
  2729.    
  2730.     public int bh_dread_strike_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2731.     {
  2732.         if (!combatStandardAction("bh_dread_strike_5", self, target, params, "", ""))
  2733.         {
  2734.             return SCRIPT_OVERRIDE;
  2735.         }
  2736.        
  2737.         removeObjVar(self, "ai.combat.oneShotAction");
  2738.         removeObjVar(self, "oneShotActionComplete");
  2739.        
  2740.         return SCRIPT_CONTINUE;
  2741.     }
  2742.    
  2743.    
  2744.     public int bh_relentless_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2745.     {
  2746.         if (!combatStandardAction("bh_relentless_1", self, target, params, "", ""))
  2747.         {
  2748.             return SCRIPT_OVERRIDE;
  2749.         }
  2750.        
  2751.         return SCRIPT_CONTINUE;
  2752.     }
  2753.    
  2754.    
  2755.     public int bh_sniper_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2756.     {
  2757.         if (!combatStandardAction("bh_sniper_1", self, target, params, "", ""))
  2758.         {
  2759.             return SCRIPT_OVERRIDE;
  2760.         }
  2761.        
  2762.         return SCRIPT_CONTINUE;
  2763.     }
  2764.    
  2765.    
  2766.     public int bh_sniper_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2767.     {
  2768.         if (!combatStandardAction("bh_sniper_2", self, target, params, "", ""))
  2769.         {
  2770.             return SCRIPT_OVERRIDE;
  2771.         }
  2772.        
  2773.         return SCRIPT_CONTINUE;
  2774.     }
  2775.    
  2776.    
  2777.     public int bh_sniper_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2778.     {
  2779.         if (!combatStandardAction("bh_sniper_3", self, target, params, "", ""))
  2780.         {
  2781.             return SCRIPT_OVERRIDE;
  2782.         }
  2783.        
  2784.         return SCRIPT_CONTINUE;
  2785.     }
  2786.    
  2787.    
  2788.     public int bh_sniper_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2789.     {
  2790.         if (!combatStandardAction("bh_sniper_4", self, target, params, "", ""))
  2791.         {
  2792.             return SCRIPT_OVERRIDE;
  2793.         }
  2794.        
  2795.         return SCRIPT_CONTINUE;
  2796.     }
  2797.    
  2798.    
  2799.     public int bh_sniper_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2800.     {
  2801.         if (!combatStandardAction("bh_sniper_5", self, target, params, "", ""))
  2802.         {
  2803.             return SCRIPT_OVERRIDE;
  2804.         }
  2805.        
  2806.         return SCRIPT_CONTINUE;
  2807.     }
  2808.    
  2809.    
  2810.     public int bh_sniper_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2811.     {
  2812.         if (!combatStandardAction("bh_sniper_6", self, target, params, "", ""))
  2813.         {
  2814.             return SCRIPT_OVERRIDE;
  2815.         }
  2816.        
  2817.         return SCRIPT_CONTINUE;
  2818.     }
  2819.    
  2820.    
  2821.     public int bh_cover_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2822.     {
  2823.         if (!combatStandardAction("bh_cover_1", self, target, params, "", ""))
  2824.         {
  2825.             return SCRIPT_OVERRIDE;
  2826.         }
  2827.        
  2828.         return SCRIPT_CONTINUE;
  2829.     }
  2830.    
  2831.    
  2832.     public int bh_armor_sprint_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2833.     {
  2834.         if (!combatStandardAction("bh_armor_sprint_1", self, target, params, "", ""))
  2835.         {
  2836.             return SCRIPT_OVERRIDE;
  2837.         }
  2838.        
  2839.         return SCRIPT_CONTINUE;
  2840.     }
  2841.    
  2842.    
  2843.     public int bh_armor_duelist_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2844.     {
  2845.         if (!combatStandardAction("bh_armor_duelist_1", self, target, params, "", ""))
  2846.         {
  2847.             return SCRIPT_OVERRIDE;
  2848.         }
  2849.        
  2850.         return SCRIPT_CONTINUE;
  2851.     }
  2852.    
  2853.    
  2854.     public int bh_armor_duelist_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2855.     {
  2856.         if (!combatStandardAction("bh_armor_duelist_2", self, target, params, "", ""))
  2857.         {
  2858.             return SCRIPT_OVERRIDE;
  2859.         }
  2860.        
  2861.         return SCRIPT_CONTINUE;
  2862.     }
  2863.    
  2864.    
  2865.     public int bh_armor_duelist_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2866.     {
  2867.         if (!combatStandardAction("bh_armor_duelist_3", self, target, params, "", ""))
  2868.         {
  2869.             return SCRIPT_OVERRIDE;
  2870.         }
  2871.        
  2872.         return SCRIPT_CONTINUE;
  2873.     }
  2874.    
  2875.    
  2876.     public int bh_armor_duelist_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2877.     {
  2878.         if (!combatStandardAction("bh_armor_duelist_4", self, target, params, "", ""))
  2879.         {
  2880.             return SCRIPT_OVERRIDE;
  2881.         }
  2882.        
  2883.         return SCRIPT_CONTINUE;
  2884.     }
  2885.    
  2886.    
  2887.     public int bh_armor_duelist_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2888.     {
  2889.         if (!combatStandardAction("bh_armor_duelist_5", self, target, params, "", ""))
  2890.         {
  2891.             return SCRIPT_OVERRIDE;
  2892.         }
  2893.        
  2894.         return SCRIPT_CONTINUE;
  2895.     }
  2896.    
  2897.    
  2898.     public int bh_armor_duelist_heal_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2899.     {
  2900.         if (!combatStandardAction("bh_armor_duelist_heal_1", self, target, params, "", ""))
  2901.         {
  2902.             return SCRIPT_OVERRIDE;
  2903.         }
  2904.        
  2905.         return SCRIPT_CONTINUE;
  2906.     }
  2907.    
  2908.    
  2909.     public int bh_armor_duelist_heal_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2910.     {
  2911.         if (!combatStandardAction("bh_armor_duelist_heal_2", self, target, params, "", ""))
  2912.         {
  2913.             return SCRIPT_OVERRIDE;
  2914.         }
  2915.        
  2916.         return SCRIPT_CONTINUE;
  2917.     }
  2918.    
  2919.    
  2920.     public int bh_armor_duelist_heal_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2921.     {
  2922.         if (!combatStandardAction("bh_armor_duelist_heal_3", self, target, params, "", ""))
  2923.         {
  2924.             return SCRIPT_OVERRIDE;
  2925.         }
  2926.        
  2927.         return SCRIPT_CONTINUE;
  2928.     }
  2929.    
  2930.    
  2931.     public int bh_armor_duelist_heal_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2932.     {
  2933.         if (!combatStandardAction("bh_armor_duelist_heal_4", self, target, params, "", ""))
  2934.         {
  2935.             return SCRIPT_OVERRIDE;
  2936.         }
  2937.        
  2938.         return SCRIPT_CONTINUE;
  2939.     }
  2940.    
  2941.    
  2942.     public int bh_armor_duelist_heal_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2943.     {
  2944.         if (!combatStandardAction("bh_armor_duelist_heal_5", self, target, params, "", ""))
  2945.         {
  2946.             return SCRIPT_OVERRIDE;
  2947.         }
  2948.        
  2949.         return SCRIPT_CONTINUE;
  2950.     }
  2951.    
  2952.    
  2953.     public int bh_return_fire_command_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2954.     {
  2955.         if (!combatStandardAction("bh_return_fire_command_1", self, target, params, "", ""))
  2956.         {
  2957.             return SCRIPT_OVERRIDE;
  2958.         }
  2959.        
  2960.         float baseCooldownTime = getBaseCooldownTime("bh_return_fire_command_1");
  2961.        
  2962.         if (baseCooldownTime < 0)
  2963.         {
  2964.             return SCRIPT_OVERRIDE;
  2965.         }
  2966.        
  2967.         float cooldownTimeMod = getSkillStatisticModifier(self, "expertise_cooldown_line_bh_return_fire");
  2968.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  2969.        
  2970.         return SCRIPT_CONTINUE;
  2971.     }
  2972.    
  2973.    
  2974.     public int bh_dire_root_area_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2975.     {
  2976.         if (!combatStandardAction("bh_dire_root_area_1", self, target, params, "", ""))
  2977.         {
  2978.             return SCRIPT_OVERRIDE;
  2979.         }
  2980.        
  2981.         return SCRIPT_CONTINUE;
  2982.     }
  2983.    
  2984.    
  2985.     public int gcw_base_damage_shield_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2986.     {
  2987.         if (!combatStandardAction("gcw_base_damage_shield_a", self, target, params, "", ""))
  2988.         {
  2989.             return SCRIPT_OVERRIDE;
  2990.         }
  2991.        
  2992.         return SCRIPT_CONTINUE;
  2993.     }
  2994.    
  2995.    
  2996.     public int gcw_base_damage_shield_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  2997.     {
  2998.         if (!combatStandardAction("gcw_base_damage_shield_b", self, target, params, "", ""))
  2999.         {
  3000.             return SCRIPT_OVERRIDE;
  3001.         }
  3002.        
  3003.         return SCRIPT_CONTINUE;
  3004.     }
  3005.    
  3006.    
  3007.     public int gcw_base_damage_shield_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3008.     {
  3009.         if (!combatStandardAction("gcw_base_damage_shield_c", self, target, params, "", ""))
  3010.         {
  3011.             return SCRIPT_OVERRIDE;
  3012.         }
  3013.        
  3014.         return SCRIPT_CONTINUE;
  3015.     }
  3016.    
  3017.    
  3018.     public int gcw_base_damage_shield_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3019.     {
  3020.         if (!combatStandardAction("gcw_base_damage_shield_d", self, target, params, "", ""))
  3021.         {
  3022.             return SCRIPT_OVERRIDE;
  3023.         }
  3024.        
  3025.         return SCRIPT_CONTINUE;
  3026.     }
  3027.    
  3028.    
  3029.     public int gcw_base_damage_shield_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3030.     {
  3031.         if (!combatStandardAction("gcw_base_damage_shield_e", self, target, params, "", ""))
  3032.         {
  3033.             return SCRIPT_OVERRIDE;
  3034.         }
  3035.        
  3036.         return SCRIPT_CONTINUE;
  3037.     }
  3038.    
  3039.    
  3040.     public int proc_gcw_base_damage_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3041.     {
  3042.         if (!combatStandardAction("proc_gcw_base_damage_a", self, target, params, "", ""))
  3043.         {
  3044.             return SCRIPT_OVERRIDE;
  3045.         }
  3046.        
  3047.         return SCRIPT_CONTINUE;
  3048.     }
  3049.    
  3050.    
  3051.     public int proc_gcw_base_damage_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3052.     {
  3053.         if (!combatStandardAction("proc_gcw_base_damage_b", self, target, params, "", ""))
  3054.         {
  3055.             return SCRIPT_OVERRIDE;
  3056.         }
  3057.        
  3058.         return SCRIPT_CONTINUE;
  3059.     }
  3060.    
  3061.    
  3062.     public int proc_gcw_base_damage_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3063.     {
  3064.         if (!combatStandardAction("proc_gcw_base_damage_c", self, target, params, "", ""))
  3065.         {
  3066.             return SCRIPT_OVERRIDE;
  3067.         }
  3068.        
  3069.         return SCRIPT_CONTINUE;
  3070.     }
  3071.    
  3072.    
  3073.     public int proc_gcw_base_damage_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3074.     {
  3075.         if (!combatStandardAction("proc_gcw_base_damage_d", self, target, params, "", ""))
  3076.         {
  3077.             return SCRIPT_OVERRIDE;
  3078.         }
  3079.        
  3080.         return SCRIPT_CONTINUE;
  3081.     }
  3082.    
  3083.    
  3084.     public int proc_gcw_base_damage_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3085.     {
  3086.         if (!combatStandardAction("proc_gcw_base_damage_e", self, target, params, "", ""))
  3087.         {
  3088.             return SCRIPT_OVERRIDE;
  3089.         }
  3090.        
  3091.         return SCRIPT_CONTINUE;
  3092.     }
  3093.    
  3094.    
  3095.     public int gcw_base_reactive_heal_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3096.     {
  3097.         if (!combatStandardAction("gcw_base_reactive_heal_a", self, target, params, "", ""))
  3098.         {
  3099.             return SCRIPT_OVERRIDE;
  3100.         }
  3101.        
  3102.         return SCRIPT_CONTINUE;
  3103.     }
  3104.    
  3105.    
  3106.     public int gcw_base_reactive_heal_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3107.     {
  3108.         if (!combatStandardAction("gcw_base_reactive_heal_b", self, target, params, "", ""))
  3109.         {
  3110.             return SCRIPT_OVERRIDE;
  3111.         }
  3112.        
  3113.         return SCRIPT_CONTINUE;
  3114.     }
  3115.    
  3116.    
  3117.     public int gcw_base_reactive_heal_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3118.     {
  3119.         if (!combatStandardAction("gcw_base_reactive_heal_c", self, target, params, "", ""))
  3120.         {
  3121.             return SCRIPT_OVERRIDE;
  3122.         }
  3123.        
  3124.         return SCRIPT_CONTINUE;
  3125.     }
  3126.    
  3127.    
  3128.     public int gcw_base_reactive_heal_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3129.     {
  3130.         if (!combatStandardAction("gcw_base_reactive_heal_d", self, target, params, "", ""))
  3131.         {
  3132.             return SCRIPT_OVERRIDE;
  3133.         }
  3134.        
  3135.         return SCRIPT_CONTINUE;
  3136.     }
  3137.    
  3138.    
  3139.     public int gcw_base_reactive_heal_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3140.     {
  3141.         if (!combatStandardAction("gcw_base_reactive_heal_e", self, target, params, "", ""))
  3142.         {
  3143.             return SCRIPT_OVERRIDE;
  3144.         }
  3145.        
  3146.         return SCRIPT_CONTINUE;
  3147.     }
  3148.    
  3149.    
  3150.     public int gcw_base_reactive_action_a(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3151.     {
  3152.         if (!combatStandardAction("gcw_base_reactive_action_a", self, target, params, "", ""))
  3153.         {
  3154.             return SCRIPT_OVERRIDE;
  3155.         }
  3156.        
  3157.         return SCRIPT_CONTINUE;
  3158.     }
  3159.    
  3160.    
  3161.     public int gcw_base_reactive_action_b(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3162.     {
  3163.         if (!combatStandardAction("gcw_base_reactive_action_b", self, target, params, "", ""))
  3164.         {
  3165.             return SCRIPT_OVERRIDE;
  3166.         }
  3167.        
  3168.         return SCRIPT_CONTINUE;
  3169.     }
  3170.    
  3171.    
  3172.     public int gcw_base_reactive_action_c(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3173.     {
  3174.         if (!combatStandardAction("gcw_base_reactive_action_c", self, target, params, "", ""))
  3175.         {
  3176.             return SCRIPT_OVERRIDE;
  3177.         }
  3178.        
  3179.         return SCRIPT_CONTINUE;
  3180.     }
  3181.    
  3182.    
  3183.     public int gcw_base_reactive_action_d(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3184.     {
  3185.         if (!combatStandardAction("gcw_base_reactive_action_d", self, target, params, "", ""))
  3186.         {
  3187.             return SCRIPT_OVERRIDE;
  3188.         }
  3189.        
  3190.         return SCRIPT_CONTINUE;
  3191.     }
  3192.    
  3193.    
  3194.     public int gcw_base_reactive_action_e(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3195.     {
  3196.         if (!combatStandardAction("gcw_base_reactive_action_e", self, target, params, "", ""))
  3197.         {
  3198.             return SCRIPT_OVERRIDE;
  3199.         }
  3200.        
  3201.         return SCRIPT_CONTINUE;
  3202.     }
  3203.    
  3204.    
  3205.     public int throwGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3206.     {
  3207.         Long lngId;
  3208.        
  3209.         try
  3210.         {
  3211.             lngId = new Long(params);
  3212.         }
  3213.         catch (NumberFormatException err)
  3214.         {
  3215.             return SCRIPT_CONTINUE;
  3216.         }
  3217.        
  3218.         obj_id objGrenade = obj_id.getObjId(lngId.longValue());
  3219.        
  3220.         if (hasObjVar(objGrenade, "intUsed"))
  3221.         {
  3222.             return SCRIPT_OVERRIDE;
  3223.         }
  3224.        
  3225.         int intCount = getCount(objGrenade);
  3226.         intCount = intCount - 1;
  3227.        
  3228.         String strTemplate = getSharedObjectTemplateName(objGrenade);
  3229.         dictionary dctGrenadeCommand = dataTableGetRow("datatables/timer/template_command_mapping.iff", strTemplate);
  3230.         String strCommand = dctGrenadeCommand.getString("COMMAND");
  3231.        
  3232.         if (!combatStandardAction(strCommand, self, target, objGrenade, "", null, false ))
  3233.         {
  3234.             return SCRIPT_OVERRIDE;
  3235.         }
  3236.         else
  3237.         {
  3238.             if (intCount <= 0)
  3239.             {
  3240.                 setObjVar(objGrenade, "intUsed", 1);
  3241.                 destroyObject(objGrenade);
  3242.             }
  3243.             else
  3244.             {
  3245.                 setCount(objGrenade, intCount);
  3246.             }
  3247.         }
  3248.        
  3249.         return SCRIPT_CONTINUE;
  3250.     }
  3251.    
  3252.    
  3253.     public int failThrowGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3254.     {
  3255.         Long lngId;
  3256.        
  3257.         try
  3258.         {
  3259.             lngId = new Long(params);
  3260.         }
  3261.         catch (NumberFormatException err)
  3262.         {
  3263.             return SCRIPT_CONTINUE;
  3264.         }
  3265.        
  3266.         obj_id grenade = obj_id.getObjId(lngId.longValue());
  3267.        
  3268.         removeObjVar(grenade, "intUsed");
  3269.        
  3270.         return SCRIPT_CONTINUE;
  3271.     }
  3272.    
  3273.    
  3274.     public int cheapShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3275.     {
  3276.         if (!combatStandardAction("cheapShot", self, target, params, "", ""))
  3277.         {
  3278.             return SCRIPT_OVERRIDE;
  3279.         }
  3280.        
  3281.         return SCRIPT_CONTINUE;
  3282.     }
  3283.    
  3284.    
  3285.     public int blastAway(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3286.     {
  3287.         if (!combatStandardAction("blastAway", self, target, params, "", ""))
  3288.         {
  3289.             return SCRIPT_OVERRIDE;
  3290.         }
  3291.        
  3292.         return SCRIPT_CONTINUE;
  3293.     }
  3294.    
  3295.    
  3296.     public int hipShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3297.     {
  3298.         if (!combatStandardAction("hipShot", self, target, params, "", ""))
  3299.         {
  3300.             return SCRIPT_OVERRIDE;
  3301.         }
  3302.        
  3303.         return SCRIPT_CONTINUE;
  3304.     }
  3305.    
  3306.    
  3307.     public int assault(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3308.     {
  3309.         if (!combatStandardAction("assault", self, target, params, "", ""))
  3310.         {
  3311.             return SCRIPT_OVERRIDE;
  3312.         }
  3313.        
  3314.         return SCRIPT_CONTINUE;
  3315.     }
  3316.    
  3317.    
  3318.     public int crippleShot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3319.     {
  3320.         if (!combatStandardAction("crippleShot", self, target, params, "", ""))
  3321.         {
  3322.             return SCRIPT_OVERRIDE;
  3323.         }
  3324.        
  3325.         return SCRIPT_CONTINUE;
  3326.     }
  3327.    
  3328.    
  3329.     public int forceThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3330.     {
  3331.         if (!combatStandardAction("forceThrow", self, target, params, "", ""))
  3332.         {
  3333.             return SCRIPT_OVERRIDE;
  3334.         }
  3335.        
  3336.         return SCRIPT_CONTINUE;
  3337.     }
  3338.    
  3339.    
  3340.     public int ambush(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3341.     {
  3342.         if (!combatStandardAction("ambush", self, target, params, "", ""))
  3343.         {
  3344.             return SCRIPT_OVERRIDE;
  3345.         }
  3346.        
  3347.         return SCRIPT_CONTINUE;
  3348.     }
  3349.    
  3350.    
  3351.     public int demolition(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3352.     {
  3353.         if (!combatStandardAction("demolition", self, target, params, "", ""))
  3354.         {
  3355.             return SCRIPT_OVERRIDE;
  3356.         }
  3357.        
  3358.         return SCRIPT_CONTINUE;
  3359.     }
  3360.    
  3361.    
  3362.     public int stunGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3363.     {
  3364.         if (!combatStandardAction("stunGrenade", self, target, params, "", ""))
  3365.         {
  3366.             return SCRIPT_OVERRIDE;
  3367.         }
  3368.        
  3369.         return SCRIPT_CONTINUE;
  3370.     }
  3371.    
  3372.    
  3373.     public int barrage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3374.     {
  3375.         if (!combatStandardAction("barrage", self, target, params, "", ""))
  3376.         {
  3377.             return SCRIPT_OVERRIDE;
  3378.         }
  3379.        
  3380.         return SCRIPT_CONTINUE;
  3381.     }
  3382.    
  3383.    
  3384.     public int forceStrike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3385.     {
  3386.         if (!combatStandardAction("forceStrike", self, target, params, "", ""))
  3387.         {
  3388.             return SCRIPT_OVERRIDE;
  3389.         }
  3390.        
  3391.         return SCRIPT_CONTINUE;
  3392.     }
  3393.    
  3394.    
  3395.     public int actOfWar(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3396.     {
  3397.         if (!combatStandardAction("actOfWar", self, target, params, "", ""))
  3398.         {
  3399.             return SCRIPT_OVERRIDE;
  3400.         }
  3401.        
  3402.         return SCRIPT_CONTINUE;
  3403.     }
  3404.    
  3405.    
  3406.     public int terminateTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3407.     {
  3408.         if (!combatStandardAction("terminateTarget", self, target, params, "", ""))
  3409.         {
  3410.             return SCRIPT_OVERRIDE;
  3411.         }
  3412.        
  3413.         return SCRIPT_CONTINUE;
  3414.     }
  3415.    
  3416.    
  3417.     public int targetAnatomy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3418.     {
  3419.         if (!combatStandardAction("targetAnatomy", self, target, params, "", ""))
  3420.         {
  3421.             return SCRIPT_OVERRIDE;
  3422.         }
  3423.        
  3424.         return SCRIPT_CONTINUE;
  3425.     }
  3426.    
  3427.    
  3428.     public int neurotoxin(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3429.     {
  3430.         if (!combatStandardAction("neurotoxin", self, target, params, "", ""))
  3431.         {
  3432.             return SCRIPT_OVERRIDE;
  3433.         }
  3434.        
  3435.         return SCRIPT_CONTINUE;
  3436.     }
  3437.    
  3438.    
  3439.     public int onehandThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3440.     {
  3441.         if (!combatStandardAction("onehandThrow", self, target, params, "", ""))
  3442.         {
  3443.             return SCRIPT_OVERRIDE;
  3444.         }
  3445.        
  3446.         return SCRIPT_CONTINUE;
  3447.     }
  3448.    
  3449.    
  3450.     public int twohandThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3451.     {
  3452.         if (!combatStandardAction("twohandThrow", self, target, params, "", ""))
  3453.         {
  3454.             return SCRIPT_OVERRIDE;
  3455.         }
  3456.        
  3457.         return SCRIPT_CONTINUE;
  3458.     }
  3459.    
  3460.    
  3461.     public int polearmThrow(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3462.     {
  3463.         if (!combatStandardAction("polearmThrow", self, target, params, "", ""))
  3464.         {
  3465.             return SCRIPT_OVERRIDE;
  3466.         }
  3467.        
  3468.         return SCRIPT_CONTINUE;
  3469.     }
  3470.    
  3471.    
  3472.     public int stealth(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3473.     {
  3474.         if (!stealth.canPerformStealth(self) || !combatStandardAction("stealth", self, target, params, "", ""))
  3475.         {
  3476.             return SCRIPT_OVERRIDE;
  3477.         }
  3478.        
  3479.         return SCRIPT_CONTINUE;
  3480.     }
  3481.    
  3482.    
  3483.     public int smokeGrenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3484.     {
  3485.         if (!stealth.canPerformSmokeGrenade(self) || !combatStandardAction("smokeGrenade", self, target, params, "", ""))
  3486.         {
  3487.             return SCRIPT_OVERRIDE;
  3488.         }
  3489.        
  3490.         return SCRIPT_CONTINUE;
  3491.     }
  3492.    
  3493.    
  3494.     public int entrench(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3495.     {
  3496.         if (!combatStandardAction("entrench", self, target, params, "", ""))
  3497.         {
  3498.             return SCRIPT_OVERRIDE;
  3499.         }
  3500.        
  3501.         return SCRIPT_CONTINUE;
  3502.     }
  3503.    
  3504.    
  3505.     public int centerOfBeing(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3506.     {
  3507.         if (!combatStandardAction("centerOfBeing", self, target, params, "", ""))
  3508.         {
  3509.             return SCRIPT_OVERRIDE;
  3510.         }
  3511.        
  3512.         return SCRIPT_CONTINUE;
  3513.     }
  3514.    
  3515.    
  3516.     public int forceFocus(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3517.     {
  3518.         if (!combatStandardAction("forceFocus", self, target, params, "", ""))
  3519.         {
  3520.             return SCRIPT_OVERRIDE;
  3521.         }
  3522.        
  3523.         return SCRIPT_CONTINUE;
  3524.     }
  3525.    
  3526.    
  3527.     public int paintTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3528.     {
  3529.         if (!combatStandardAction("paintTarget", self, target, params, "", ""))
  3530.         {
  3531.             return SCRIPT_OVERRIDE;
  3532.         }
  3533.        
  3534.         return SCRIPT_CONTINUE;
  3535.     }
  3536.    
  3537.    
  3538.     public int blueGlowie(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3539.     {
  3540.        
  3541.         string_id SHAPECHANGE = new string_id("spam","not_while_shapechanged");
  3542.         int shapechange = buff.getBuffOnTargetFromGroup(self, "shapechange");
  3543.         if (shapechange != 0)
  3544.         {
  3545.             sendSystemMessage(self, SHAPECHANGE);
  3546.             return SCRIPT_OVERRIDE;
  3547.         }
  3548.        
  3549.         if (combat.isInCombat(self))
  3550.         {
  3551.             return SCRIPT_OVERRIDE;
  3552.         }
  3553.        
  3554.         if (getState(self, STATE_GLOWING_JEDI) == 0)
  3555.         {
  3556.             setState(self, STATE_GLOWING_JEDI, true);
  3557.         }
  3558.         else
  3559.         {
  3560.             setState(self, STATE_GLOWING_JEDI, false);
  3561.         }
  3562.        
  3563.         return SCRIPT_CONTINUE;
  3564.     }
  3565.    
  3566.    
  3567.     public int proc_pvp_despair(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3568.     {
  3569.         if (!combatStandardAction("proc_pvp_despair", self, target, params, "", ""))
  3570.         {
  3571.             return SCRIPT_OVERRIDE;
  3572.         }
  3573.        
  3574.         return SCRIPT_CONTINUE;
  3575.     }
  3576.    
  3577.    
  3578.     public int pvp_aura_buff_self(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3579.     {
  3580.         if (!combatStandardAction("pvp_aura_buff_self", self, target, params, "", ""))
  3581.         {
  3582.             return SCRIPT_OVERRIDE;
  3583.         }
  3584.        
  3585.         return SCRIPT_CONTINUE;
  3586.     }
  3587.    
  3588.    
  3589.     public int pvp_aura_buff_rebel_self(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3590.     {
  3591.         if (!combatStandardAction("pvp_aura_buff_rebel_self", self, target, params, "", ""))
  3592.         {
  3593.             return SCRIPT_OVERRIDE;
  3594.         }
  3595.        
  3596.         return SCRIPT_CONTINUE;
  3597.     }
  3598.    
  3599.    
  3600.     public int pvp_retaliation_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3601.     {
  3602.         if (!combatStandardAction("pvp_retaliation_ability", self, target, params, "", ""))
  3603.         {
  3604.             return SCRIPT_OVERRIDE;
  3605.         }
  3606.        
  3607.         return SCRIPT_CONTINUE;
  3608.     }
  3609.    
  3610.    
  3611.     public int pvp_retaliation_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3612.     {
  3613.         if (!combatStandardAction("pvp_retaliation_rebel_ability", self, target, params, "", ""))
  3614.         {
  3615.             return SCRIPT_OVERRIDE;
  3616.         }
  3617.        
  3618.         return SCRIPT_CONTINUE;
  3619.     }
  3620.    
  3621.    
  3622.     public int pvp_adrenaline_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3623.     {
  3624.         if (!combatStandardAction("pvp_adrenaline_ability", self, target, params, "", ""))
  3625.         {
  3626.             return SCRIPT_OVERRIDE;
  3627.         }
  3628.        
  3629.         return SCRIPT_CONTINUE;
  3630.     }
  3631.    
  3632.    
  3633.     public int pvp_adrenaline_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3634.     {
  3635.         if (!combatStandardAction("pvp_adrenaline_rebel_ability", self, target, params, "", ""))
  3636.         {
  3637.             return SCRIPT_OVERRIDE;
  3638.         }
  3639.        
  3640.         return SCRIPT_CONTINUE;
  3641.     }
  3642.    
  3643.    
  3644.     public int pvp_unstoppable_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3645.     {
  3646.         if (!combatStandardAction("pvp_unstoppable_ability", self, target, params, "", ""))
  3647.         {
  3648.             return SCRIPT_OVERRIDE;
  3649.         }
  3650.        
  3651.         return SCRIPT_CONTINUE;
  3652.     }
  3653.    
  3654.    
  3655.     public int pvp_unstoppable_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3656.     {
  3657.         if (!combatStandardAction("pvp_unstoppable_rebel_ability", self, target, params, "", ""))
  3658.         {
  3659.             return SCRIPT_OVERRIDE;
  3660.         }
  3661.        
  3662.         return SCRIPT_CONTINUE;
  3663.     }
  3664.    
  3665.    
  3666.     public int command_pvp_retaliation_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3667.     {
  3668.         if (!combatStandardAction("command_pvp_retaliation_ability", self, target, params, "", ""))
  3669.         {
  3670.             return SCRIPT_OVERRIDE;
  3671.         }
  3672.        
  3673.         return SCRIPT_CONTINUE;
  3674.     }
  3675.    
  3676.    
  3677.     public int command_pvp_retaliation_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3678.     {
  3679.         if (!combatStandardAction("command_pvp_retaliation_rebel_ability", self, target, params, "", ""))
  3680.         {
  3681.             return SCRIPT_OVERRIDE;
  3682.         }
  3683.        
  3684.         return SCRIPT_CONTINUE;
  3685.     }
  3686.    
  3687.    
  3688.     public int command_pvp_adrenaline_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3689.     {
  3690.         if (!combatStandardAction("command_pvp_adrenaline_ability", self, target, params, "", ""))
  3691.         {
  3692.             return SCRIPT_OVERRIDE;
  3693.         }
  3694.        
  3695.         return SCRIPT_CONTINUE;
  3696.     }
  3697.    
  3698.    
  3699.     public int command_pvp_adrenaline_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3700.     {
  3701.         if (!combatStandardAction("command_pvp_adrenaline_rebel_ability", self, target, params, "", ""))
  3702.         {
  3703.             return SCRIPT_OVERRIDE;
  3704.         }
  3705.        
  3706.         return SCRIPT_CONTINUE;
  3707.     }
  3708.    
  3709.    
  3710.     public int command_pvp_unstoppable_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3711.     {
  3712.         if (!combatStandardAction("command_pvp_unstoppable_ability", self, target, params, "", ""))
  3713.         {
  3714.             return SCRIPT_OVERRIDE;
  3715.         }
  3716.        
  3717.         return SCRIPT_CONTINUE;
  3718.     }
  3719.    
  3720.    
  3721.     public int command_pvp_unstoppable_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3722.     {
  3723.         if (!combatStandardAction("command_pvp_unstoppable_rebel_ability", self, target, params, "", ""))
  3724.         {
  3725.             return SCRIPT_OVERRIDE;
  3726.         }
  3727.        
  3728.         return SCRIPT_CONTINUE;
  3729.     }
  3730.    
  3731.    
  3732.     public int command_pvp_last_man_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3733.     {
  3734.         if (!combatStandardAction("command_pvp_last_man_ability", self, target, params, "", ""))
  3735.         {
  3736.             return SCRIPT_OVERRIDE;
  3737.         }
  3738.        
  3739.         return SCRIPT_CONTINUE;
  3740.     }
  3741.    
  3742.    
  3743.     public int command_pvp_last_man_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3744.     {
  3745.         if (!combatStandardAction("command_pvp_last_man_rebel_ability", self, target, params, "", ""))
  3746.         {
  3747.             return SCRIPT_OVERRIDE;
  3748.         }
  3749.        
  3750.         return SCRIPT_CONTINUE;
  3751.     }
  3752.    
  3753.    
  3754.     public int pvp_last_man_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3755.     {
  3756.         if (!combatStandardAction("pvp_last_man_ability", self, target, params, "", ""))
  3757.         {
  3758.             return SCRIPT_OVERRIDE;
  3759.         }
  3760.        
  3761.         return SCRIPT_CONTINUE;
  3762.     }
  3763.    
  3764.    
  3765.     public int pvp_last_man_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3766.     {
  3767.         if (!combatStandardAction("pvp_last_man_rebel_ability", self, target, params, "", ""))
  3768.         {
  3769.             return SCRIPT_OVERRIDE;
  3770.         }
  3771.        
  3772.         return SCRIPT_CONTINUE;
  3773.     }
  3774.    
  3775.    
  3776.     public int pvp_airstrike_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3777.     {
  3778.         if (getTopMostContainer(self) != self)
  3779.         {
  3780.             sendSystemMessage(self, new string_id("spam", "cant_do_indoors"));
  3781.             return SCRIPT_OVERRIDE;
  3782.         }
  3783.        
  3784.         if (!combatStandardAction("pvp_airstrike_ability", self, target, params, "", ""))
  3785.         {
  3786.             return SCRIPT_OVERRIDE;
  3787.         }
  3788.        
  3789.         prose_package p = prose.getPackage(new string_id("spam", "pvp_airstrike_imperial"));
  3790.         commPlayers(self, "object/mobile/space_comm_imperial_tiefighter_01.iff", "sound/sys_comm_other.snd", 5f, self, p);
  3791.         playClientEffectLoc(self, "clienteffect/pvp_imperial_airstrike.cef", getLocation(target), 0);
  3792.        
  3793.         return SCRIPT_CONTINUE;
  3794.     }
  3795.    
  3796.    
  3797.     public int pvp_airstrike_rebel_ability(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3798.     {
  3799.         if (getTopMostContainer(self) != self)
  3800.         {
  3801.             sendSystemMessage(self, new string_id("spam", "cant_do_indoors"));
  3802.             return SCRIPT_OVERRIDE;
  3803.         }
  3804.        
  3805.         if (!combatStandardAction("pvp_airstrike_rebel_ability", self, target, params, "", ""))
  3806.         {
  3807.             return SCRIPT_OVERRIDE;
  3808.         }
  3809.        
  3810.         prose_package p = prose.getPackage(new string_id("spam", "pvp_airstrike_rebel"));
  3811.         commPlayers(self, "object/mobile/space_comm_rebel_xwing_02.iff", "sound/sys_comm_other.snd", 5f, self, p);
  3812.         playClientEffectLoc(self, "clienteffect/pvp_rebel_airstrike.cef", getLocation(target), 0);
  3813.        
  3814.         return SCRIPT_CONTINUE;
  3815.     }
  3816.    
  3817.    
  3818.     public int gallop(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3819.     {
  3820.         obj_id objMount = getMountId(self);
  3821.         if (!isIdValid(objMount))
  3822.         {
  3823.             string_id strSpam = new string_id("combat_effects", "not_mounted");
  3824.             sendSystemMessage(self, strSpam);
  3825.             return SCRIPT_CONTINUE;
  3826.         }
  3827.         else if (vehicle.isDriveableVehicle(objMount))
  3828.         {
  3829.             string_id strSpam = new string_id("combat_effects", "not_mounted");
  3830.             sendSystemMessage(self, strSpam);
  3831.             return SCRIPT_OVERRIDE;
  3832.         }
  3833.        
  3834.         dictionary dctMountInfo = pet_lib.getMountMovementInfo(objMount);
  3835.         if (dctMountInfo == null)
  3836.         {
  3837.             return SCRIPT_CONTINUE;
  3838.         }
  3839.        
  3840.         obj_id objControlDevice = callable.getCallableCD(objMount);
  3841.        
  3842.         if (utils.hasScriptVar(objControlDevice, "mount.intGalloping"))
  3843.         {
  3844.             string_id strSpam = new string_id("combat_effects", "already_galloping");
  3845.             sendSystemMessage(self, strSpam);
  3846.             return SCRIPT_CONTINUE;
  3847.         }
  3848.        
  3849.         if (utils.hasScriptVar(objControlDevice, "mount.intTired"))
  3850.         {
  3851.             string_id strSpam = new string_id("combat_effects", "mount_tired");
  3852.             sendSystemMessage(self, strSpam);
  3853.             return SCRIPT_CONTINUE;
  3854.         }
  3855.        
  3856.         pet_lib.setMountBurstRunMovementRate(self, objMount);
  3857.        
  3858.         return SCRIPT_CONTINUE;
  3859.     }
  3860.    
  3861.    
  3862.     public int gallopStop(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3863.     {
  3864.         obj_id objMount = getMountId(self);
  3865.         if (!isIdValid(objMount))
  3866.         {
  3867.             string_id strSpam = new string_id("combat_effects", "cant_stop_gallop_not_mounted");
  3868.             sendSystemMessage(self, strSpam);
  3869.             return SCRIPT_CONTINUE;
  3870.            
  3871.         }
  3872.        
  3873.         if (!pet_lib.isGalloping(objMount))
  3874.         {
  3875.             string_id strSpam = new string_id("combat_effects", "cant_stop_galloping_not_galloping");
  3876.             sendSystemMessage(self, strSpam);
  3877.             return SCRIPT_CONTINUE;
  3878.         }
  3879.        
  3880.         obj_id objControlDevice = callable.getCallableCD(objMount);
  3881.         messageTo(objControlDevice, "removeGallop", null, 1, false);
  3882.        
  3883.         return SCRIPT_CONTINUE;
  3884.     }
  3885.    
  3886.    
  3887.     public int en_holographic_image(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3888.     {
  3889.         if (combat.isInCombat(self))
  3890.         {
  3891.             sendSystemMessage(self, new string_id("spam", "cant_do_holo_combat"));
  3892.             return SCRIPT_OVERRIDE;
  3893.         }
  3894.        
  3895.         if (performance.hasMaxHolo(self))
  3896.         {
  3897.             sendSystemMessage(self, new string_id("spam", "holo_maximum_reached"));
  3898.             return SCRIPT_OVERRIDE;
  3899.         }
  3900.        
  3901.         if (!performance.createHolographicBackup(self))
  3902.         {
  3903.             return SCRIPT_OVERRIDE;
  3904.         }
  3905.        
  3906.         return SCRIPT_CONTINUE;
  3907.     }
  3908.    
  3909.    
  3910.     public int en_holographic_recall(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3911.     {
  3912.         if (!utils.hasScriptVar(self, "holoMessageTime"))
  3913.         {
  3914.             sendSystemMessage(self, new string_id("spam", "no_holo_recall"));
  3915.             return SCRIPT_OVERRIDE;
  3916.         }
  3917.        
  3918.         performance.holographicCleanup(self);
  3919.         return SCRIPT_CONTINUE;
  3920.     }
  3921.    
  3922.    
  3923.     public int en_void_dance(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3924.     {
  3925.         int voidEffectMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "eexpertise_buff_en_void_dance_buff");
  3926.        
  3927.         if ((voidEffectMod == 5) && (!combatStandardAction("en_void_dance_1", self, target, params, "", "")))
  3928.         {
  3929.             return SCRIPT_OVERRIDE;
  3930.         }
  3931.        
  3932.         else if ((voidEffectMod == 10) && (!combatStandardAction("en_void_dance_2", self, target, params, "", "")))
  3933.         {
  3934.             return SCRIPT_OVERRIDE;
  3935.         }
  3936.        
  3937.         else if ((voidEffectMod == 15) && (!combatStandardAction("en_void_dance_3", self, target, params, "", "")))
  3938.         {
  3939.             return SCRIPT_OVERRIDE;
  3940.         }
  3941.        
  3942.         else if (!combatStandardAction("en_void_dance", self, target, params, "", ""))
  3943.         {
  3944.             return SCRIPT_OVERRIDE;
  3945.         }
  3946.        
  3947.         return SCRIPT_CONTINUE;
  3948.     }
  3949.    
  3950.    
  3951.     public int en_strike_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3952.     {
  3953.         if (!combatStandardAction("en_strike_0", self, target, params, "", ""))
  3954.         {
  3955.             return SCRIPT_OVERRIDE;
  3956.         }
  3957.         return SCRIPT_CONTINUE;
  3958.     }
  3959.    
  3960.    
  3961.     public int en_strike_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3962.     {
  3963.         if (!combatStandardAction("en_strike_1", self, target, params, "", ""))
  3964.         {
  3965.             return SCRIPT_OVERRIDE;
  3966.         }
  3967.         return SCRIPT_CONTINUE;
  3968.     }
  3969.    
  3970.    
  3971.     public int en_strike_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3972.     {
  3973.         if (!combatStandardAction("en_strike_2", self, target, params, "", ""))
  3974.         {
  3975.             return SCRIPT_OVERRIDE;
  3976.         }
  3977.         return SCRIPT_CONTINUE;
  3978.     }
  3979.    
  3980.    
  3981.     public int en_strike_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3982.     {
  3983.         if (!combatStandardAction("en_strike_3", self, target, params, "", ""))
  3984.         {
  3985.             return SCRIPT_OVERRIDE;
  3986.         }
  3987.         return SCRIPT_CONTINUE;
  3988.     }
  3989.    
  3990.    
  3991.     public int en_strike_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  3992.     {
  3993.         if (!combatStandardAction("en_strike_4", self, target, params, "", ""))
  3994.         {
  3995.             return SCRIPT_OVERRIDE;
  3996.         }
  3997.         return SCRIPT_CONTINUE;
  3998.     }
  3999.    
  4000.    
  4001.     public int en_strike_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4002.     {
  4003.         if (!combatStandardAction("en_strike_5", self, target, params, "", ""))
  4004.         {
  4005.             return SCRIPT_OVERRIDE;
  4006.         }
  4007.         return SCRIPT_CONTINUE;
  4008.     }
  4009.    
  4010.    
  4011.     public int en_strike_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4012.     {
  4013.         if (!combatStandardAction("en_strike_6", self, target, params, "", ""))
  4014.         {
  4015.             return SCRIPT_OVERRIDE;
  4016.         }
  4017.         return SCRIPT_CONTINUE;
  4018.     }
  4019.    
  4020.    
  4021.     public int en_thrill(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4022.     {
  4023.         int thrillEffectMod = (int)getEnhancedSkillStatisticModifierUncapped(self, "expertise_en_debuff_thrill_increase");
  4024.        
  4025.         if ((thrillEffectMod == 10) && (!combatStandardAction("en_thrill_1", self, target, params, "", "")))
  4026.         {
  4027.             return SCRIPT_OVERRIDE;
  4028.         }
  4029.         else if ((thrillEffectMod == 20) && (!combatStandardAction("en_thrill_2", self, target, params, "", "")))
  4030.         {
  4031.             return SCRIPT_OVERRIDE;
  4032.         }
  4033.         else if (!combatStandardAction("en_thrill", self, target, params, "", ""))
  4034.         {
  4035.             return SCRIPT_OVERRIDE;
  4036.         }
  4037.        
  4038.         return SCRIPT_CONTINUE;
  4039.     }
  4040.    
  4041.    
  4042.     public int en_project_will_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4043.     {
  4044.         if (!combatStandardAction("en_project_will_0", self, target, params, "", ""))
  4045.         {
  4046.             return SCRIPT_OVERRIDE;
  4047.         }
  4048.         return SCRIPT_CONTINUE;
  4049.     }
  4050.    
  4051.    
  4052.     public int en_project_will_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4053.     {
  4054.         if (!combatStandardAction("en_project_will_1", self, target, params, "", ""))
  4055.         {
  4056.             return SCRIPT_OVERRIDE;
  4057.         }
  4058.         return SCRIPT_CONTINUE;
  4059.     }
  4060.    
  4061.    
  4062.     public int en_project_will_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4063.     {
  4064.         if (!combatStandardAction("en_project_will_2", self, target, params, "", ""))
  4065.         {
  4066.             return SCRIPT_OVERRIDE;
  4067.         }
  4068.         return SCRIPT_CONTINUE;
  4069.     }
  4070.    
  4071.    
  4072.     public int en_project_will_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4073.     {
  4074.         if (!combatStandardAction("en_project_will_3", self, target, params, "", ""))
  4075.         {
  4076.             return SCRIPT_OVERRIDE;
  4077.         }
  4078.         return SCRIPT_CONTINUE;
  4079.     }
  4080.    
  4081.    
  4082.     public int en_project_will_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4083.     {
  4084.         if (!combatStandardAction("en_project_will_4", self, target, params, "", ""))
  4085.         {
  4086.             return SCRIPT_OVERRIDE;
  4087.         }
  4088.         return SCRIPT_CONTINUE;
  4089.     }
  4090.    
  4091.    
  4092.     public int en_project_will_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4093.     {
  4094.         if (!combatStandardAction("en_project_will_5", self, target, params, "", ""))
  4095.         {
  4096.             return SCRIPT_OVERRIDE;
  4097.         }
  4098.         return SCRIPT_CONTINUE;
  4099.     }
  4100.    
  4101.    
  4102.     public int en_project_will_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4103.     {
  4104.         if (!combatStandardAction("en_project_will_6", self, target, params, "", ""))
  4105.         {
  4106.             return SCRIPT_OVERRIDE;
  4107.         }
  4108.         return SCRIPT_CONTINUE;
  4109.     }
  4110.    
  4111.    
  4112.     public int en_sweeping_pirouette_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4113.     {
  4114.         if (!combatStandardAction("en_sweeping_pirouette_0", self, target, params, "", ""))
  4115.         {
  4116.             return SCRIPT_OVERRIDE;
  4117.         }
  4118.         return SCRIPT_CONTINUE;
  4119.     }
  4120.    
  4121.    
  4122.     public int en_sweeping_pirouette_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4123.     {
  4124.         if (!combatStandardAction("en_sweeping_pirouette_1", self, target, params, "", ""))
  4125.         {
  4126.             return SCRIPT_OVERRIDE;
  4127.         }
  4128.         return SCRIPT_CONTINUE;
  4129.     }
  4130.    
  4131.    
  4132.     public int en_sweeping_pirouette_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4133.     {
  4134.         if (!combatStandardAction("en_sweeping_pirouette_2", self, target, params, "", ""))
  4135.         {
  4136.             return SCRIPT_OVERRIDE;
  4137.         }
  4138.         return SCRIPT_CONTINUE;
  4139.     }
  4140.    
  4141.    
  4142.     public int en_sweeping_pirouette_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4143.     {
  4144.         if (!combatStandardAction("en_sweeping_pirouette_3", self, target, params, "", ""))
  4145.         {
  4146.             return SCRIPT_OVERRIDE;
  4147.         }
  4148.         return SCRIPT_CONTINUE;
  4149.     }
  4150.    
  4151.    
  4152.     public int en_sweeping_pirouette_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4153.     {
  4154.         if (!combatStandardAction("en_sweeping_pirouette_4", self, target, params, "", ""))
  4155.         {
  4156.             return SCRIPT_OVERRIDE;
  4157.         }
  4158.         return SCRIPT_CONTINUE;
  4159.     }
  4160.    
  4161.    
  4162.     public int en_sweeping_pirouette_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4163.     {
  4164.         if (!combatStandardAction("en_sweeping_pirouette_5", self, target, params, "", ""))
  4165.         {
  4166.             return SCRIPT_OVERRIDE;
  4167.         }
  4168.         return SCRIPT_CONTINUE;
  4169.     }
  4170.    
  4171.    
  4172.     public int en_unhealthy_fixation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4173.     {
  4174.         if (!combatStandardAction("en_unhealthy_fixation", self, target, params, "", ""))
  4175.         {
  4176.             return SCRIPT_OVERRIDE;
  4177.         }
  4178.         return SCRIPT_CONTINUE;
  4179.     }
  4180.    
  4181.    
  4182.     public int en_spiral_kick_0(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4183.     {
  4184.         if (!combatStandardAction("en_spiral_kick_0", self, target, params, "", ""))
  4185.         {
  4186.             return SCRIPT_OVERRIDE;
  4187.         }
  4188.         return SCRIPT_CONTINUE;
  4189.     }
  4190.    
  4191.    
  4192.     public int en_spiral_kick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4193.     {
  4194.         if (!combatStandardAction("en_spiral_kick_1", self, target, params, "", ""))
  4195.         {
  4196.             return SCRIPT_OVERRIDE;
  4197.         }
  4198.         return SCRIPT_CONTINUE;
  4199.     }
  4200.    
  4201.    
  4202.     public int en_spiral_kick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4203.     {
  4204.         if (!combatStandardAction("en_spiral_kick_2", self, target, params, "", ""))
  4205.         {
  4206.             return SCRIPT_OVERRIDE;
  4207.         }
  4208.         return SCRIPT_CONTINUE;
  4209.     }
  4210.    
  4211.    
  4212.     public int en_spiral_kick_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4213.     {
  4214.         if (!combatStandardAction("en_spiral_kick_3", self, target, params, "", ""))
  4215.         {
  4216.             return SCRIPT_OVERRIDE;
  4217.         }
  4218.         return SCRIPT_CONTINUE;
  4219.     }
  4220.    
  4221.    
  4222.     public int en_spiral_kick_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4223.     {
  4224.         if (!combatStandardAction("en_spiral_kick_4", self, target, params, "", ""))
  4225.         {
  4226.             return SCRIPT_OVERRIDE;
  4227.         }
  4228.         return SCRIPT_CONTINUE;
  4229.     }
  4230.    
  4231.    
  4232.     public int pingObject(obj_id self, dictionary params) throws InterruptedException
  4233.     {
  4234.        
  4235.         location locTest = getLocation(self);
  4236.         obj_id objSender = params.getObjId("objSender");
  4237.         dictionary dctParams = new dictionary();
  4238.         dctParams.put("locTest", locTest);
  4239.         obj_id objTopMostContainer = getTopMostContainer(self);
  4240.         if (isIdValid(objTopMostContainer))
  4241.         {
  4242.             dctParams.put("objTopMost", objTopMostContainer);
  4243.             dctParams.put("locTopMost", getLocation(objTopMostContainer));
  4244.         }
  4245.        
  4246.         dctParams.put("objSender", self);
  4247.         messageTo(objSender, "pingResponse", dctParams, 0, false);
  4248.         LOG("npe", self+" at "+locTest+" responded to ping");
  4249.         return SCRIPT_CONTINUE;
  4250.     }
  4251.    
  4252.    
  4253.     public int bountyTrackTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4254.     {
  4255.         obj_id droid = utils.stringToObjId(params);
  4256.        
  4257.         if (!isIdValid(droid))
  4258.         {
  4259.             return SCRIPT_OVERRIDE;
  4260.         }
  4261.         else
  4262.         {
  4263.             bounty_hunter.probeDroidTrackTarget(self, droid);
  4264.         }
  4265.        
  4266.         return SCRIPT_CONTINUE;
  4267.     }
  4268.    
  4269.    
  4270.     public int applyCritImmunityBuff(obj_id self, dictionary params) throws InterruptedException
  4271.     {
  4272.         if (!buff.hasBuff(self, "criticalImmunity"))
  4273.         {
  4274.             buff.applyBuff(self, self, "criticalImmunity");
  4275.         }
  4276.        
  4277.         return SCRIPT_CONTINUE;
  4278.     }
  4279.    
  4280.    
  4281.     public int applyStunImmunity(obj_id self, dictionary params) throws InterruptedException
  4282.     {
  4283.         if (!buff.hasBuff(self, "stun_immune"))
  4284.         {
  4285.             buff.applyBuff(self, self, "stun_immune");
  4286.         }
  4287.        
  4288.         return SCRIPT_CONTINUE;
  4289.     }
  4290.    
  4291.    
  4292.     public int applyVortexSnare(obj_id self, dictionary params) throws InterruptedException
  4293.     {
  4294.         if (!buff.hasBuff(self, "of_vortex_snare"))
  4295.         {
  4296.             buff.applyBuff(self, self, "of_vortex_snare");
  4297.         }
  4298.        
  4299.         return SCRIPT_CONTINUE;
  4300.     }
  4301.    
  4302.    
  4303.     public float getBaseCooldownTime(String commandName) throws InterruptedException
  4304.     {
  4305.         float cooldownTime = dataTableGetFloat("datatables/command/command_table.iff", commandName, "cooldownTime");
  4306.        
  4307.         return cooldownTime;
  4308.     }
  4309.    
  4310.    
  4311.     public int fs_dot_immunity_recourse(obj_id self, dictionary params) throws InterruptedException
  4312.     {
  4313.         if (!buff.hasBuff(self, "fs_dot_immunity_recourse"))
  4314.         {
  4315.             buff.applyBuff(self, self, "fs_dot_immunity_recourse");
  4316.         }
  4317.        
  4318.         return SCRIPT_CONTINUE;
  4319.     }
  4320.    
  4321.    
  4322.     public int throwFan(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4323.     {
  4324.         if (!combatStandardAction("throwFan", self, target, params, "", ""))
  4325.         {
  4326.             return SCRIPT_OVERRIDE;
  4327.         }
  4328.        
  4329.         return SCRIPT_CONTINUE;
  4330.     }
  4331.    
  4332.    
  4333.     public int creature_milking_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4334.     {
  4335.         if (!combatStandardAction("creature_milking_buff", self, target, params, "", ""))
  4336.         {
  4337.             return SCRIPT_OVERRIDE;
  4338.         }
  4339.         return SCRIPT_CONTINUE;
  4340.     }
  4341.    
  4342.    
  4343.     public int lair_egg_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4344.     {
  4345.         if (!combatStandardAction("lair_egg_buff", self, target, params, "", ""))
  4346.         {
  4347.             return SCRIPT_OVERRIDE;
  4348.         }
  4349.         return SCRIPT_CONTINUE;
  4350.     }
  4351.    
  4352.    
  4353.     public int expertise_buildabuff_heal_1_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4354.     {
  4355.         if (!combatStandardAction("expertise_buildabuff_heal_1_reac", self, target, params, "", ""))
  4356.         {
  4357.             return SCRIPT_OVERRIDE;
  4358.         }
  4359.        
  4360.         return SCRIPT_CONTINUE;
  4361.     }
  4362.    
  4363.    
  4364.     public int expertise_buildabuff_heal_2_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4365.     {
  4366.         if (!combatStandardAction("expertise_buildabuff_heal_2_reac", self, target, params, "", ""))
  4367.         {
  4368.             return SCRIPT_OVERRIDE;
  4369.         }
  4370.        
  4371.         return SCRIPT_CONTINUE;
  4372.     }
  4373.    
  4374.    
  4375.     public int expertise_buildabuff_heal_3_reac(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4376.     {
  4377.         if (!combatStandardAction("expertise_buildabuff_heal_3_reac", self, target, params, "", ""))
  4378.         {
  4379.             return SCRIPT_OVERRIDE;
  4380.         }
  4381.        
  4382.         return SCRIPT_CONTINUE;
  4383.     }
  4384.    
  4385.    
  4386.     public int forceCrystalForce(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4387.     {
  4388.         LOG("procCommand", "proc found");
  4389.         if (!combatStandardAction("forceCrystalForce", self, target, params, "", ""))
  4390.         {
  4391.             LOG("procCommand", "proc failed in combat standard");
  4392.             return SCRIPT_OVERRIDE;
  4393.         }
  4394.        
  4395.         LOG("procCommand","proc worked in script");
  4396.         return SCRIPT_CONTINUE;
  4397.     }
  4398.    
  4399.    
  4400.     public int bm_soothing_comfort_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4401.     {
  4402.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  4403.        
  4404.         if (!exists(beast) || isIdNull(beast))
  4405.         {
  4406.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4407.             sendSystemMessage(self, new string_id("spam", "no_beast_out") );
  4408.             return SCRIPT_OVERRIDE;
  4409.         }
  4410.        
  4411.         target = beast;
  4412.        
  4413.         if (!isDead(beast) == false)
  4414.         {
  4415.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4416.             sendSystemMessage(self, new string_id("spam", "pet_beyond_healing") );
  4417.             return SCRIPT_OVERRIDE;
  4418.         }
  4419.        
  4420.         if (!combatStandardAction("bm_soothing_comfort_1", self, target, params, "", ""))
  4421.         {
  4422.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4423.             return SCRIPT_OVERRIDE;
  4424.         }
  4425.        
  4426.         return SCRIPT_CONTINUE;
  4427.     }
  4428.    
  4429.    
  4430.     public int bm_mend_pet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4431.     {
  4432.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  4433.        
  4434.         if (!exists(beast) || isIdNull(beast))
  4435.         {
  4436.             sendSystemMessage(self, new string_id("spam", "no_beast_out") );
  4437.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4438.             return SCRIPT_OVERRIDE;
  4439.         }
  4440.        
  4441.         target = beast;
  4442.        
  4443.         if (isDead(beast))
  4444.         {
  4445.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4446.             sendSystemMessage(self, new string_id("spam", "pet_beyond_healing") );
  4447.             return SCRIPT_OVERRIDE;
  4448.         }
  4449.        
  4450.         if (!healing.canDoBeastHeal(self, target))
  4451.         {
  4452.             return SCRIPT_OVERRIDE;
  4453.         }
  4454.        
  4455.         if (!combatStandardAction("bm_mend_pet_1", self, target, params, "", ""))
  4456.         {
  4457.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4458.             return SCRIPT_OVERRIDE;
  4459.         }
  4460.        
  4461.         int toHeal = dataTableGetInt(COMBAT_TABLE, "bm_mend_pet_1", "addedDamage");
  4462.         healing.doBeastHeal(self, target, toHeal);
  4463.        
  4464.         return SCRIPT_CONTINUE;
  4465.     }
  4466.    
  4467.    
  4468.     public int bm_mend_pet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4469.     {
  4470.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  4471.        
  4472.         if (!exists(beast) || isIdNull(beast))
  4473.         {
  4474.             sendSystemMessage(self, new string_id("spam", "no_beast_out") );
  4475.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4476.             return SCRIPT_OVERRIDE;
  4477.         }
  4478.        
  4479.         target = beast;
  4480.        
  4481.         if (isDead(beast))
  4482.         {
  4483.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4484.             sendSystemMessage(self, new string_id("spam", "pet_beyond_healing") );
  4485.             return SCRIPT_OVERRIDE;
  4486.         }
  4487.        
  4488.         if (!healing.canDoBeastHeal(self, target))
  4489.         {
  4490.             return SCRIPT_OVERRIDE;
  4491.         }
  4492.        
  4493.         if (!combatStandardAction("bm_mend_pet_2", self, target, params, "", ""))
  4494.         {
  4495.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4496.             return SCRIPT_OVERRIDE;
  4497.         }
  4498.        
  4499.         int toHeal = dataTableGetInt(COMBAT_TABLE, "bm_mend_pet_2", "addedDamage");
  4500.         healing.doBeastHeal(self, target, toHeal);
  4501.        
  4502.         return SCRIPT_CONTINUE;
  4503.     }
  4504.    
  4505.    
  4506.     public int bm_mend_pet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4507.     {
  4508.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  4509.        
  4510.         if (!exists(beast) || isIdNull(beast))
  4511.         {
  4512.             sendSystemMessage(self, new string_id("spam", "no_beast_out") );
  4513.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4514.             return SCRIPT_OVERRIDE;
  4515.         }
  4516.        
  4517.         target = beast;
  4518.        
  4519.         if (isDead(beast))
  4520.         {
  4521.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4522.             sendSystemMessage(self, new string_id("spam", "pet_beyond_healing") );
  4523.             return SCRIPT_OVERRIDE;
  4524.         }
  4525.        
  4526.         if (!healing.canDoBeastHeal(self, target))
  4527.         {
  4528.             return SCRIPT_OVERRIDE;
  4529.         }
  4530.        
  4531.         if (!combatStandardAction("bm_mend_pet_3", self, target, params, "", ""))
  4532.         {
  4533.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4534.             return SCRIPT_OVERRIDE;
  4535.         }
  4536.        
  4537.         int toHeal = dataTableGetInt(COMBAT_TABLE, "bm_mend_pet_3", "addedDamage");
  4538.         healing.doBeastHeal(self, target, toHeal);
  4539.        
  4540.         return SCRIPT_CONTINUE;
  4541.     }
  4542.    
  4543.    
  4544.     public int bm_revive_pet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4545.     {
  4546.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  4547.        
  4548.         if (!exists(beast) || isIdNull(beast))
  4549.         {
  4550.             sendSystemMessage(self, new string_id("spam", "no_beast_out") );
  4551.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4552.             return SCRIPT_OVERRIDE;
  4553.         }
  4554.        
  4555.         target = beast;
  4556.        
  4557.         if (!isDead(beast))
  4558.         {
  4559.             sendSystemMessage(self, new string_id("spam", "beast_not_dead") );
  4560.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4561.             return SCRIPT_OVERRIDE;
  4562.         }
  4563.        
  4564.         if (getDistance(getLocation(self), getLocation(beast)) > 7.0f)
  4565.         {
  4566.             sendSystemMessage(self, new string_id("spam", "stand_next_to_corpse") );
  4567.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4568.             return SCRIPT_OVERRIDE;
  4569.         }
  4570.        
  4571.         if (!combatStandardAction("bm_revive_pet_1", self, target, params, "", ""))
  4572.         {
  4573.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  4574.             return SCRIPT_OVERRIDE;
  4575.         }
  4576.        
  4577.         messageTo(self, "channelRevivePet", null, 0, false);
  4578.        
  4579.         float baseCooldownTime = getBaseCooldownTime("bm_revive_pet_1");
  4580.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_bm_pet_revive_time");
  4581.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - cooldownTimeMod);
  4582.        
  4583.         return SCRIPT_CONTINUE;
  4584.     }
  4585.    
  4586.    
  4587.     public int bm_paralytic_poison_recourse(obj_id self, dictionary params) throws InterruptedException
  4588.     {
  4589.         if (!buff.hasBuff(self, "bm_paralytic_poison_recourse"))
  4590.         {
  4591.             buff.applyBuff(self, self, "bm_paralytic_poison_recourse");
  4592.         }
  4593.        
  4594.         return SCRIPT_CONTINUE;
  4595.     }
  4596.    
  4597.    
  4598.     public int handlePostureRestore(obj_id self, dictionary params) throws InterruptedException
  4599.     {
  4600.         stopClientEffectObjByLabel(self, "state_knockdown");
  4601.        
  4602.         if (getPosture(self) == POSTURE_KNOCKED_DOWN)
  4603.         {
  4604.             setPostureClientImmediate(self, utils.getIntScriptVar(self, "combat.intKnockdownTime.posture"));
  4605.         }
  4606.        
  4607.         return SCRIPT_CONTINUE;
  4608.     }
  4609.    
  4610.    
  4611.     public int performHateTick(obj_id self, dictionary params) throws InterruptedException
  4612.     {
  4613.         obj_id attacker = params.getObjId("attacker");
  4614.         int hate = params.getInt("hate");
  4615.         int tick = params.getInt("tick");
  4616.         int duration = params.getInt("duration");
  4617.        
  4618.         addHate(attacker, self, 0.0f);
  4619.         addHate(self, attacker, hate);
  4620.        
  4621.         if (duration < getGameTime())
  4622.         {
  4623.             messageTo(self, "performHateTick", params, tick, false);
  4624.         }
  4625.        
  4626.         return SCRIPT_CONTINUE;
  4627.     }
  4628.    
  4629.    
  4630.     public int combatTarget(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4631.     {
  4632.         if (!isIdValid(target))
  4633.         {
  4634.             return SCRIPT_OVERRIDE;
  4635.         }
  4636.        
  4637.         setTarget(self, target);
  4638.        
  4639.         return SCRIPT_OVERRIDE;
  4640.     }
  4641.    
  4642.    
  4643.     public int updateCrowdControlEffect(obj_id self, dictionary params) throws InterruptedException
  4644.     {
  4645.         boolean effectActive = false;
  4646.        
  4647.         int[] buffList = buff.getAllBuffs(self);
  4648.        
  4649.         if (buffList == null || buffList.length == 0)
  4650.         {
  4651.             return SCRIPT_CONTINUE;
  4652.         }
  4653.        
  4654.         prose_package pp = new prose_package();
  4655.        
  4656.         for (int i = 0; i < buffList.length; i++)
  4657.         {
  4658.             testAbortScript();
  4659.             if (movement.isStunEffect(buff.getBuffNameFromCrc(buffList[i])))
  4660.             {
  4661.                 effectActive = true;
  4662.                 pp = prose.setStringId(pp, new string_id("combat_effects", "go_stunned"));
  4663.                 showFlyTextPrivateProseWithFlags(self, self, pp, 1.5f, colors.LAWNGREEN, FLY_TEXT_FLAG_IS_SNARE );
  4664.                
  4665.             }
  4666.             if (movement.isRoot(buffList[i]))
  4667.             {
  4668.                 effectActive = true;
  4669.                 pp = prose.setStringId(pp, new string_id("combat_effects", "go_rooted"));
  4670.                 showFlyTextPrivateProseWithFlags(self, self, pp, 1.5f, colors.LAWNGREEN, FLY_TEXT_FLAG_IS_SNARE );
  4671.             }
  4672.            
  4673.             if (movement.isSnare(buffList[i]))
  4674.             {
  4675.                 effectActive = true;
  4676.                 pp = prose.setStringId(pp, new string_id("combat_effects", "go_snare"));
  4677.                 showFlyTextPrivateProseWithFlags(self, self, pp, 1.5f, colors.LAWNGREEN, FLY_TEXT_FLAG_IS_SNARE );
  4678.                
  4679.             }
  4680.         }
  4681.        
  4682.         if (effectActive)
  4683.         {
  4684.             messageTo (self, "updateCrowdControlEffect", null, 4f, false);
  4685.         }
  4686.        
  4687.         return SCRIPT_CONTINUE;
  4688.     }
  4689.    
  4690.    
  4691.     public int creatureMeleeAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4692.     {
  4693.         if (!combatStandardAction("creatureMeleeAttack", self, target, params, "", ""))
  4694.         {
  4695.             return SCRIPT_OVERRIDE;
  4696.         }
  4697.        
  4698.         return SCRIPT_CONTINUE;
  4699.     }
  4700.    
  4701.    
  4702.     public int creatureRangedAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4703.     {
  4704.         if (!combatStandardAction("creatureRangedAttack", self, target, params, "", ""))
  4705.         {
  4706.             return SCRIPT_OVERRIDE;
  4707.         }
  4708.        
  4709.         return SCRIPT_CONTINUE;
  4710.     }
  4711.    
  4712.    
  4713.     public int creatureBlindAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4714.     {
  4715.         if (!combatStandardAction("creatureBlindAttack", self, target, params, "", ""))
  4716.         {
  4717.             return SCRIPT_OVERRIDE;
  4718.         }
  4719.        
  4720.         return SCRIPT_CONTINUE;
  4721.     }
  4722.    
  4723.    
  4724.     public int creatureDizzyAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4725.     {
  4726.         if (!combatStandardAction("creatureDizzyAttack", self, target, params, "", ""))
  4727.         {
  4728.             return SCRIPT_OVERRIDE;
  4729.         }
  4730.        
  4731.         return SCRIPT_CONTINUE;
  4732.     }
  4733.    
  4734.    
  4735.     public int creatureStunAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4736.     {
  4737.         if (!combatStandardAction("creatureStunAttack", self, target, params, "", ""))
  4738.         {
  4739.             return SCRIPT_OVERRIDE;
  4740.         }
  4741.        
  4742.         return SCRIPT_CONTINUE;
  4743.     }
  4744.    
  4745.    
  4746.     public int creatureIntimidationAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4747.     {
  4748.         if (!combatStandardAction("creatureIntimidationAttack", self, target, params, "", ""))
  4749.         {
  4750.             return SCRIPT_OVERRIDE;
  4751.         }
  4752.        
  4753.         return SCRIPT_CONTINUE;
  4754.     }
  4755.    
  4756.    
  4757.     public int creatureKnockdownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4758.     {
  4759.         if (!combatStandardAction("creatureKnockdownAttack", self, target, params, "", ""))
  4760.         {
  4761.             return SCRIPT_OVERRIDE;
  4762.         }
  4763.        
  4764.         return SCRIPT_CONTINUE;
  4765.     }
  4766.    
  4767.    
  4768.     public int creaturePostureDownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4769.     {
  4770.         if (!combatStandardAction("creaturePostureDownAttack", self, target, params, "", ""))
  4771.         {
  4772.             return SCRIPT_OVERRIDE;
  4773.         }
  4774.        
  4775.         return SCRIPT_CONTINUE;
  4776.     }
  4777.    
  4778.    
  4779.     public int creaturePostureUpAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4780.     {
  4781.         if (!combatStandardAction("creaturePostureUpAttack", self, target, params, "", ""))
  4782.         {
  4783.             return SCRIPT_OVERRIDE;
  4784.         }
  4785.        
  4786.         return SCRIPT_CONTINUE;
  4787.     }
  4788.    
  4789.    
  4790.     public int creatureAreaAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4791.     {
  4792.         if (!combatStandardAction("creatureAreaAttack", self, target, params, "", ""))
  4793.         {
  4794.             return SCRIPT_OVERRIDE;
  4795.         }
  4796.        
  4797.         return SCRIPT_CONTINUE;
  4798.     }
  4799.    
  4800.    
  4801.     public int creatureAreaCombo(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4802.     {
  4803.         if (!combatStandardAction("creatureAreaCombo", self, target, params, "", ""))
  4804.         {
  4805.             return SCRIPT_OVERRIDE;
  4806.         }
  4807.        
  4808.         return SCRIPT_CONTINUE;
  4809.     }
  4810.    
  4811.    
  4812.     public int creatureAreaBleeding(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4813.     {
  4814.         if (!combatStandardAction("creatureAreaBleeding", self, target, params, "", ""))
  4815.         {
  4816.             return SCRIPT_OVERRIDE;
  4817.         }
  4818.        
  4819.         return SCRIPT_CONTINUE;
  4820.     }
  4821.    
  4822.    
  4823.     public int creatureAreaDisease(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4824.     {
  4825.         if (!combatStandardAction("creatureAreaDisease", self, target, params, "creatureAreaDiseaseSuccess", ""))
  4826.         {
  4827.             return SCRIPT_OVERRIDE;
  4828.         }
  4829.        
  4830.         return SCRIPT_CONTINUE;
  4831.     }
  4832.    
  4833.    
  4834.     public int creatureAreaPoison(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4835.     {
  4836.         if (!combatStandardAction("creatureAreaPoison", self, target, params, "creatureAreaPoisonSuccess", ""))
  4837.         {
  4838.             return SCRIPT_OVERRIDE;
  4839.         }
  4840.        
  4841.         return SCRIPT_CONTINUE;
  4842.     }
  4843.    
  4844.    
  4845.     public int creatureAreaKnockdown(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4846.     {
  4847.         if (!combatStandardAction("creatureAreaKnockdown", self, target, params, "", ""))
  4848.         {
  4849.             return SCRIPT_OVERRIDE;
  4850.         }
  4851.        
  4852.         return SCRIPT_CONTINUE;
  4853.     }
  4854.    
  4855.    
  4856.     public int creaturePoisonAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4857.     {
  4858.         if (!combatStandardAction("creaturePoisonAttack", self, target, params, "", ""))
  4859.         {
  4860.             return SCRIPT_OVERRIDE;
  4861.         }
  4862.        
  4863.         return SCRIPT_CONTINUE;
  4864.     }
  4865.    
  4866.    
  4867.     public int creatureFireAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4868.     {
  4869.         if (!combatStandardAction("creatureFireAttack", self, target, params, "", ""))
  4870.         {
  4871.             return SCRIPT_OVERRIDE;
  4872.         }
  4873.        
  4874.         return SCRIPT_CONTINUE;
  4875.     }
  4876.    
  4877.    
  4878.     public int creatureSnareAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4879.     {
  4880.         if (!combatStandardAction("creatureSnareAttack", self, target, params, "", ""))
  4881.         {
  4882.             return SCRIPT_OVERRIDE;
  4883.         }
  4884.        
  4885.         return SCRIPT_CONTINUE;
  4886.     }
  4887.    
  4888.    
  4889.     public int creatureAreaDiseaseSuccess(obj_id self, dictionary params) throws InterruptedException
  4890.     {
  4891.         obj_id[] defenders = params.getObjIdArray("defenders");
  4892.        
  4893.         for (int i = 0; i < defenders.length; i++)
  4894.         {
  4895.             testAbortScript();
  4896.             dot.applyDotEffect(defenders[i], self, dot.DOT_DISEASE, "creatureDiseaseAttack", HEALTH, 100, 300, 300);
  4897.         }
  4898.        
  4899.         return SCRIPT_CONTINUE;
  4900.     }
  4901.    
  4902.    
  4903.     public int creatureAreaPoisonSuccess(obj_id self, dictionary params) throws InterruptedException
  4904.     {
  4905.         obj_id[] defenders = params.getObjIdArray("defenders");
  4906.        
  4907.         for (int i = 0; i < defenders.length; i++)
  4908.         {
  4909.             testAbortScript();
  4910.             if (dot.canApplyDotType(defenders[i], dot.DOT_POISON))
  4911.             {
  4912.                 dot.applyDotEffect(defenders[i], self, dot.DOT_POISON, "creaturePoisonAttack", HEALTH, 100, 150, 300);
  4913.             }
  4914.         }
  4915.        
  4916.         return SCRIPT_CONTINUE;
  4917.     }
  4918.    
  4919.    
  4920.     public int knockdownRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4921.     {
  4922.         if (!combatStandardAction("knockdownRecovery", self, target, params, "knockdownRecoverySuccess", ""))
  4923.         {
  4924.             return SCRIPT_OVERRIDE;
  4925.         }
  4926.        
  4927.         return SCRIPT_CONTINUE;
  4928.     }
  4929.    
  4930.    
  4931.     public int stunRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4932.     {
  4933.         if (!combatStandardAction("stunRecovery", self, target, params, "stunRecoverySuccess", ""))
  4934.         {
  4935.             return SCRIPT_OVERRIDE;
  4936.         }
  4937.        
  4938.         return SCRIPT_CONTINUE;
  4939.     }
  4940.    
  4941.    
  4942.     public int blindRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4943.     {
  4944.         if (!combatStandardAction("blindRecovery", self, target, params, "blindRecoverySuccess", ""))
  4945.         {
  4946.             return SCRIPT_OVERRIDE;
  4947.         }
  4948.        
  4949.         return SCRIPT_CONTINUE;
  4950.     }
  4951.    
  4952.    
  4953.     public int dizzyRecovery(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  4954.     {
  4955.         if (!combatStandardAction("dizzyRecovery", self, target, params, "dizzyRecoverySuccess", ""))
  4956.         {
  4957.             return SCRIPT_OVERRIDE;
  4958.         }
  4959.        
  4960.         return SCRIPT_CONTINUE;
  4961.     }
  4962.    
  4963.    
  4964.     public int iceCreamRecourse(obj_id self, dictionary params) throws InterruptedException
  4965.     {
  4966.         if (!buff.hasBuff(self, "ice_cream_recourse"))
  4967.         {
  4968.             buff.applyBuff(self, self, "ice_cream_recourse");
  4969.         }
  4970.        
  4971.         return SCRIPT_CONTINUE;
  4972.     }
  4973.    
  4974.    
  4975.     public int dazeRecourse(obj_id self, dictionary params) throws InterruptedException
  4976.     {
  4977.         if (!buff.hasBuff(self, "dazeBlockDebuff"))
  4978.         {
  4979.             buff.applyBuff(self, self, "dazeBlockDebuff");
  4980.         }
  4981.        
  4982.         return SCRIPT_CONTINUE;
  4983.     }
  4984.    
  4985.    
  4986.     public int mezRecourse(obj_id self, dictionary params) throws InterruptedException
  4987.     {
  4988.         if (!buff.hasBuff(self, "mezBlockDebuff"))
  4989.         {
  4990.             buff.applyBuff(self, self, "mezBlockDebuff");
  4991.         }
  4992.        
  4993.         return SCRIPT_CONTINUE;
  4994.     }
  4995.    
  4996.    
  4997.     public int seetingAngerRecourse(obj_id self, dictionary params) throws InterruptedException
  4998.     {
  4999.         if (!buff.hasBuff(self, "seetingAnger_1"))
  5000.         {
  5001.             buff.applyBuff(self, self, "seethingAnger_1");
  5002.         }
  5003.        
  5004.         return SCRIPT_CONTINUE;
  5005.     }
  5006.    
  5007.     public int seetingAngerRecourse_1(obj_id self, dictionary params) throws InterruptedException
  5008.     {
  5009.         if (!buff.hasBuff(self, "seetingAnger_2"))
  5010.         {
  5011.             buff.applyBuff(self, self, "seethingAnger_2");
  5012.         }
  5013.        
  5014.         return SCRIPT_CONTINUE;
  5015.     }
  5016.    
  5017.     public int seetingAngerRecourse_2(obj_id self, dictionary params) throws InterruptedException
  5018.     {
  5019.         if (!buff.hasBuff(self, "seetingAnger_3"))
  5020.         {
  5021.             buff.applyBuff(self, self, "seethingAnger_3");
  5022.         }
  5023.        
  5024.         return SCRIPT_CONTINUE;
  5025.     }
  5026.    
  5027.    
  5028.     public int seetingAngerRecourse_3(obj_id self, dictionary params) throws InterruptedException
  5029.     {
  5030.         if (!buff.hasBuff(self, "seetingAnger_4"))
  5031.         {
  5032.             buff.applyBuff(self, self, "seethingAnger_4");
  5033.         }
  5034.        
  5035.         return SCRIPT_CONTINUE;
  5036.     }
  5037.    
  5038.    
  5039.     public int petSnareAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5040.     {
  5041.         if (!combatStandardAction("petSnareAttack", self, target, params, "", ""))
  5042.         {
  5043.             return SCRIPT_OVERRIDE;
  5044.         }
  5045.        
  5046.         return SCRIPT_CONTINUE;
  5047.     }
  5048.    
  5049.    
  5050.     public int petPinAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5051.     {
  5052.         if (!combatStandardAction("petPinAttack", self, target, params, "", ""))
  5053.         {
  5054.             return SCRIPT_OVERRIDE;
  5055.         }
  5056.        
  5057.         return SCRIPT_CONTINUE;
  5058.     }
  5059.    
  5060.    
  5061.     public int petBleedAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5062.     {
  5063.         if (!combatStandardAction("petBleedAttack", self, target, params, "", ""))
  5064.         {
  5065.             return SCRIPT_OVERRIDE;
  5066.         }
  5067.        
  5068.         return SCRIPT_CONTINUE;
  5069.     }
  5070.    
  5071.    
  5072.     public int petIntimidateAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5073.     {
  5074.         if (!combatStandardAction("petIntimidateAttack", self, target, params, "", ""))
  5075.         {
  5076.             return SCRIPT_OVERRIDE;
  5077.         }
  5078.        
  5079.         return SCRIPT_CONTINUE;
  5080.     }
  5081.    
  5082.    
  5083.     public int petStunAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5084.     {
  5085.         if (!combatStandardAction("petStunAttack", self, target, params, "", ""))
  5086.         {
  5087.             return SCRIPT_OVERRIDE;
  5088.         }
  5089.        
  5090.         return SCRIPT_CONTINUE;
  5091.     }
  5092.    
  5093.    
  5094.     public int petBlindAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5095.     {
  5096.         if (!combatStandardAction("petBlindAttack", self, target, params, "", ""))
  5097.         {
  5098.             return SCRIPT_OVERRIDE;
  5099.         }
  5100.        
  5101.         return SCRIPT_CONTINUE;
  5102.     }
  5103.    
  5104.    
  5105.     public int petKnockdownAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5106.     {
  5107.         if (!combatStandardAction("petKnockdownAttack", self, target, params, "", ""))
  5108.         {
  5109.             return SCRIPT_OVERRIDE;
  5110.         }
  5111.        
  5112.         return SCRIPT_CONTINUE;
  5113.     }
  5114.    
  5115.    
  5116.     public int petDefenseBreakAttack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5117.     {
  5118.         if (!combatStandardAction("petDefenseBreakAttack", self, target, params, "", ""))
  5119.         {
  5120.             return SCRIPT_OVERRIDE;
  5121.         }
  5122.        
  5123.         return SCRIPT_CONTINUE;
  5124.     }
  5125.    
  5126.    
  5127.     public int insidiousMalady(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5128.     {
  5129.         if (!combatStandardAction("insidiousMalady", self, target, params, "", ""))
  5130.         {
  5131.             return SCRIPT_OVERRIDE;
  5132.         }
  5133.         return SCRIPT_CONTINUE;
  5134.     }
  5135.    
  5136.    
  5137.     public int euphoria(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5138.     {
  5139.         if (!combatStandardAction("euphoria", self, target, params, "", ""))
  5140.         {
  5141.             return SCRIPT_OVERRIDE;
  5142.         }
  5143.         return SCRIPT_CONTINUE;
  5144.        
  5145.     }
  5146.    
  5147.    
  5148.     public int rampage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5149.     {
  5150.         if (!combatStandardAction("rampage", self, target, params, "", ""))
  5151.         {
  5152.             return SCRIPT_OVERRIDE;
  5153.         }
  5154.         return SCRIPT_CONTINUE;
  5155.     }
  5156.    
  5157.    
  5158.     public int seethingAnger(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5159.     {
  5160.         if (!combatStandardAction("seethingAnger", self, target, params, "", ""))
  5161.         {
  5162.             return SCRIPT_OVERRIDE;
  5163.         }
  5164.         return SCRIPT_CONTINUE;
  5165.     }
  5166.    
  5167.    
  5168.     public int cloakOfLava(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5169.     {
  5170.         if (!combatStandardAction("cloakOfLava", self, target, params, "", ""))
  5171.         {
  5172.             return SCRIPT_OVERRIDE;
  5173.         }
  5174.         return SCRIPT_CONTINUE;
  5175.        
  5176.     }
  5177.    
  5178.    
  5179.     public int sherKarRage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5180.     {
  5181.         if (!combatStandardAction("sherKarRage", self, target, params, "", ""))
  5182.         {
  5183.             return SCRIPT_OVERRIDE;
  5184.         }
  5185.         return SCRIPT_CONTINUE;
  5186.        
  5187.     }
  5188.    
  5189.    
  5190.     public int decrepitStrike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5191.     {
  5192.         if (!combatStandardAction("decrepitStrike", self, target, params, "", ""))
  5193.         {
  5194.             return SCRIPT_OVERRIDE;
  5195.         }
  5196.         return SCRIPT_CONTINUE;
  5197.        
  5198.     }
  5199.    
  5200.    
  5201.     public int sk_shockWave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5202.     {
  5203.         if (!combatStandardAction("sk_shockWave", self, target, params, "", ""))
  5204.         {
  5205.             return SCRIPT_OVERRIDE;
  5206.         }
  5207.         return SCRIPT_CONTINUE;
  5208.        
  5209.     }
  5210.    
  5211.    
  5212.     public int bm_charge_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5213.     {
  5214.         if (!combatStandardAction("bm_charge_1", self, target, params, "", "", true))
  5215.         {
  5216.             return SCRIPT_OVERRIDE;
  5217.         }
  5218.        
  5219.         return SCRIPT_CONTINUE;
  5220.        
  5221.     }
  5222.    
  5223.    
  5224.     public int bm_charge_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5225.     {
  5226.        
  5227.         if (!combatStandardAction("bm_charge_2", self, target, params, "", "", true))
  5228.         {
  5229.             return SCRIPT_OVERRIDE;
  5230.         }
  5231.        
  5232.         return SCRIPT_CONTINUE;
  5233.        
  5234.     }
  5235.    
  5236.    
  5237.     public int bm_charge_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5238.     {
  5239.        
  5240.         if (!combatStandardAction("bm_charge_3", self, target, params, "", "", true))
  5241.         {
  5242.             return SCRIPT_OVERRIDE;
  5243.         }
  5244.        
  5245.         return SCRIPT_CONTINUE;
  5246.        
  5247.     }
  5248.    
  5249.    
  5250.     public int bm_charge_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5251.     {
  5252.        
  5253.         if (!combatStandardAction("bm_charge_4", self, target, params, "", "", true))
  5254.         {
  5255.             return SCRIPT_OVERRIDE;
  5256.         }
  5257.        
  5258.         return SCRIPT_CONTINUE;
  5259.        
  5260.     }
  5261.    
  5262.    
  5263.     public int bm_charge_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5264.     {
  5265.        
  5266.         if (!combatStandardAction("bm_charge_5", self, target, params, "", "", true))
  5267.         {
  5268.             return SCRIPT_OVERRIDE;
  5269.         }
  5270.        
  5271.         return SCRIPT_CONTINUE;
  5272.        
  5273.     }
  5274.    
  5275.    
  5276.     public int bm_trample(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5277.     {
  5278.        
  5279.         if (!combatStandardAction("bm_trample", self, target, params, "", "", true))
  5280.         {
  5281.             return SCRIPT_OVERRIDE;
  5282.         }
  5283.        
  5284.         return SCRIPT_CONTINUE;
  5285.        
  5286.     }
  5287.    
  5288.    
  5289.     public int bm_bite_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5290.     {
  5291.        
  5292.         if (!combatStandardAction("bm_bite_1", self, target, params, "", "", true))
  5293.         {
  5294.             return SCRIPT_OVERRIDE;
  5295.         }
  5296.        
  5297.         return SCRIPT_CONTINUE;
  5298.     }
  5299.    
  5300.    
  5301.     public int bm_bite_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5302.     {
  5303.        
  5304.         if (!combatStandardAction("bm_bite_2", self, target, params, "", "", true))
  5305.         {
  5306.             return SCRIPT_OVERRIDE;
  5307.         }
  5308.        
  5309.         return SCRIPT_CONTINUE;
  5310.     }
  5311.    
  5312.    
  5313.     public int bm_bite_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5314.     {
  5315.         if (!combatStandardAction("bm_bite_3", self, target, params, "", "", true))
  5316.         {
  5317.             return SCRIPT_OVERRIDE;
  5318.         }
  5319.        
  5320.         return SCRIPT_CONTINUE;
  5321.     }
  5322.    
  5323.    
  5324.     public int bm_bite_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5325.     {
  5326.         if (!combatStandardAction("bm_bite_4", self, target, params, "", "", true))
  5327.         {
  5328.             return SCRIPT_OVERRIDE;
  5329.         }
  5330.        
  5331.         return SCRIPT_CONTINUE;
  5332.     }
  5333.    
  5334.    
  5335.     public int bm_bite_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5336.     {
  5337.         if (!combatStandardAction("bm_bite_5", self, target, params, "", "", true))
  5338.         {
  5339.             return SCRIPT_OVERRIDE;
  5340.         }
  5341.        
  5342.         return SCRIPT_CONTINUE;
  5343.     }
  5344.    
  5345.    
  5346.     public int bm_puncture_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5347.     {
  5348.         if (!combatStandardAction("bm_puncture_1", self, target, params, "", "", true))
  5349.         {
  5350.             return SCRIPT_OVERRIDE;
  5351.         }
  5352.        
  5353.         return SCRIPT_CONTINUE;
  5354.     }
  5355.    
  5356.    
  5357.     public int bm_puncture_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5358.     {
  5359.         if (!combatStandardAction("bm_puncture_2", self, target, params, "", "", true))
  5360.         {
  5361.             return SCRIPT_OVERRIDE;
  5362.         }
  5363.        
  5364.         return SCRIPT_CONTINUE;
  5365.     }
  5366.    
  5367.    
  5368.     public int bm_puncture_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5369.     {
  5370.         if (!combatStandardAction("bm_puncture_3", self, target, params, "", "", true))
  5371.         {
  5372.             return SCRIPT_OVERRIDE;
  5373.         }
  5374.        
  5375.         return SCRIPT_CONTINUE;
  5376.     }
  5377.    
  5378.    
  5379.     public int bm_siphon_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5380.     {
  5381.         if (!combatStandardAction("bm_siphon_1", self, target, params, "", "", true))
  5382.         {
  5383.             return SCRIPT_OVERRIDE;
  5384.         }
  5385.        
  5386.         return SCRIPT_CONTINUE;
  5387.     }
  5388.    
  5389.    
  5390.     public int bm_siphon_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5391.     {
  5392.         if (!combatStandardAction("bm_siphon_2", self, target, params, "", "", true))
  5393.         {
  5394.             return SCRIPT_OVERRIDE;
  5395.         }
  5396.        
  5397.         return SCRIPT_CONTINUE;
  5398.     }
  5399.    
  5400.    
  5401.     public int bm_siphon_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5402.     {
  5403.         if (!combatStandardAction("bm_siphon_3", self, target, params, "", "", true))
  5404.         {
  5405.             return SCRIPT_OVERRIDE;
  5406.         }
  5407.        
  5408.         return SCRIPT_CONTINUE;
  5409.     }
  5410.    
  5411.    
  5412.     public int bm_siphon_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5413.     {
  5414.         if (!combatStandardAction("bm_siphon_4", self, target, params, "", "", true))
  5415.         {
  5416.             return SCRIPT_OVERRIDE;
  5417.         }
  5418.        
  5419.         return SCRIPT_CONTINUE;
  5420.     }
  5421.    
  5422.    
  5423.     public int bm_siphon_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5424.     {
  5425.         if (!combatStandardAction("bm_siphon_5", self, target, params, "", "", true))
  5426.         {
  5427.             return SCRIPT_OVERRIDE;
  5428.         }
  5429.        
  5430.         return SCRIPT_CONTINUE;
  5431.     }
  5432.    
  5433.    
  5434.     public int bm_hamstring_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5435.     {
  5436.         if (!combatStandardAction("bm_hamstring_1", self, target, params, "", "", true))
  5437.         {
  5438.             return SCRIPT_OVERRIDE;
  5439.         }
  5440.        
  5441.         return SCRIPT_CONTINUE;
  5442.     }
  5443.    
  5444.    
  5445.     public int bm_hamstring_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5446.     {
  5447.         if (!combatStandardAction("bm_hamstring_2", self, target, params, "", "", true))
  5448.         {
  5449.             return SCRIPT_OVERRIDE;
  5450.         }
  5451.        
  5452.         return SCRIPT_CONTINUE;
  5453.     }
  5454.    
  5455.    
  5456.     public int bm_hamstring_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5457.     {
  5458.         if (!combatStandardAction("bm_hamstring_3", self, target, params, "", "", true))
  5459.         {
  5460.             return SCRIPT_OVERRIDE;
  5461.         }
  5462.        
  5463.         return SCRIPT_CONTINUE;
  5464.     }
  5465.    
  5466.    
  5467.     public int bm_hamstring_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5468.     {
  5469.         if (!combatStandardAction("bm_hamstring_4", self, target, params, "", "", true))
  5470.         {
  5471.             return SCRIPT_OVERRIDE;
  5472.         }
  5473.        
  5474.         return SCRIPT_CONTINUE;
  5475.     }
  5476.    
  5477.    
  5478.     public int bm_hamstring_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5479.     {
  5480.         if (!combatStandardAction("bm_hamstring_5", self, target, params, "", "", true))
  5481.         {
  5482.             return SCRIPT_OVERRIDE;
  5483.         }
  5484.        
  5485.         return SCRIPT_CONTINUE;
  5486.     }
  5487.    
  5488.    
  5489.     public int bm_claw_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5490.     {
  5491.         if (!combatStandardAction("bm_claw_1", self, target, params, "", "", true))
  5492.         {
  5493.             return SCRIPT_OVERRIDE;
  5494.         }
  5495.        
  5496.         return SCRIPT_CONTINUE;
  5497.     }
  5498.    
  5499.    
  5500.     public int bm_claw_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5501.     {
  5502.         if (!combatStandardAction("bm_claw_2", self, target, params, "", "", true))
  5503.         {
  5504.             return SCRIPT_OVERRIDE;
  5505.         }
  5506.        
  5507.         return SCRIPT_CONTINUE;
  5508.     }
  5509.    
  5510.    
  5511.     public int bm_claw_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5512.     {
  5513.         if (!combatStandardAction("bm_claw_3", self, target, params, "", "", true))
  5514.         {
  5515.             return SCRIPT_OVERRIDE;
  5516.         }
  5517.        
  5518.         return SCRIPT_CONTINUE;
  5519.     }
  5520.    
  5521.    
  5522.     public int bm_claw_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5523.     {
  5524.         if (!combatStandardAction("bm_claw_4", self, target, params, "", "", true))
  5525.         {
  5526.             return SCRIPT_OVERRIDE;
  5527.         }
  5528.        
  5529.         return SCRIPT_CONTINUE;
  5530.     }
  5531.    
  5532.    
  5533.     public int bm_claw_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5534.     {
  5535.         if (!combatStandardAction("bm_claw_5", self, target, params, "", "", true))
  5536.         {
  5537.             return SCRIPT_OVERRIDE;
  5538.         }
  5539.        
  5540.         return SCRIPT_CONTINUE;
  5541.     }
  5542.    
  5543.    
  5544.     public int bm_slash_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5545.     {
  5546.         if (!combatStandardAction("bm_slash_1", self, target, params, "", "", true))
  5547.         {
  5548.             return SCRIPT_OVERRIDE;
  5549.         }
  5550.        
  5551.         return SCRIPT_CONTINUE;
  5552.     }
  5553.    
  5554.    
  5555.     public int bm_slash_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5556.     {
  5557.         if (!combatStandardAction("bm_slash_2", self, target, params, "", "", true))
  5558.         {
  5559.             return SCRIPT_OVERRIDE;
  5560.         }
  5561.        
  5562.         return SCRIPT_CONTINUE;
  5563.     }
  5564.    
  5565.    
  5566.     public int bm_slash_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5567.     {
  5568.         if (!combatStandardAction("bm_slash_3", self, target, params, "", "", true))
  5569.         {
  5570.             return SCRIPT_OVERRIDE;
  5571.         }
  5572.        
  5573.         return SCRIPT_CONTINUE;
  5574.     }
  5575.    
  5576.    
  5577.     public int bm_slash_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5578.     {
  5579.         if (!combatStandardAction("bm_slash_4", self, target, params, "", "", true))
  5580.         {
  5581.             return SCRIPT_OVERRIDE;
  5582.         }
  5583.        
  5584.         return SCRIPT_CONTINUE;
  5585.     }
  5586.    
  5587.    
  5588.     public int bm_slash_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5589.     {
  5590.         if (!combatStandardAction("bm_slash_5", self, target, params, "", "", true))
  5591.         {
  5592.             return SCRIPT_OVERRIDE;
  5593.         }
  5594.        
  5595.         return SCRIPT_CONTINUE;
  5596.     }
  5597.    
  5598.    
  5599.     public int bm_flank_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5600.     {
  5601.         if (!combatStandardAction("bm_flank_1", self, target, params, "", "", true))
  5602.         {
  5603.             return SCRIPT_OVERRIDE;
  5604.         }
  5605.        
  5606.         return SCRIPT_CONTINUE;
  5607.     }
  5608.    
  5609.    
  5610.     public int bm_flank_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5611.     {
  5612.         if (!combatStandardAction("bm_flank_2", self, target, params, "", "", true))
  5613.         {
  5614.             return SCRIPT_OVERRIDE;
  5615.         }
  5616.        
  5617.         return SCRIPT_CONTINUE;
  5618.     }
  5619.    
  5620.    
  5621.     public int bm_flank_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5622.     {
  5623.         if (!combatStandardAction("bm_flank_3", self, target, params, "", "", true))
  5624.         {
  5625.             return SCRIPT_OVERRIDE;
  5626.         }
  5627.        
  5628.         return SCRIPT_CONTINUE;
  5629.     }
  5630.    
  5631.    
  5632.     public int bm_bolster_armor_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5633.     {
  5634.         if (!combatStandardAction("bm_bolster_armor_1", self, target, params, "", "", true))
  5635.         {
  5636.             return SCRIPT_OVERRIDE;
  5637.         }
  5638.         return SCRIPT_CONTINUE;
  5639.     }
  5640.    
  5641.    
  5642.     public int bm_bolster_armor_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5643.     {
  5644.         if (!combatStandardAction("bm_bolster_armor_2", self, target, params, "", "", true))
  5645.         {
  5646.             return SCRIPT_OVERRIDE;
  5647.         }
  5648.        
  5649.         return SCRIPT_CONTINUE;
  5650.     }
  5651.    
  5652.    
  5653.     public int bm_bolster_armor_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5654.     {
  5655.         if (!combatStandardAction("bm_bolster_armor_3", self, target, params, "", "", true))
  5656.         {
  5657.             return SCRIPT_OVERRIDE;
  5658.         }
  5659.        
  5660.         return SCRIPT_CONTINUE;
  5661.     }
  5662.    
  5663.    
  5664.     public int bm_bolster_armor_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5665.     {
  5666.         if (!combatStandardAction("bm_bolster_armor_4", self, target, params, "", "", true))
  5667.         {
  5668.             return SCRIPT_OVERRIDE;
  5669.         }
  5670.        
  5671.         return SCRIPT_CONTINUE;
  5672.     }
  5673.    
  5674.    
  5675.     public int bm_bolster_armor_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5676.     {
  5677.         if (!combatStandardAction("bm_bolster_armor_5", self, target, params, "", "", true))
  5678.         {
  5679.             return SCRIPT_OVERRIDE;
  5680.         }
  5681.        
  5682.         return SCRIPT_CONTINUE;
  5683.     }
  5684.    
  5685.    
  5686.     public int bm_dampen_pain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5687.     {
  5688.         if (!combatStandardAction("bm_dampen_pain_1", self, target, params, "", "", true))
  5689.         {
  5690.             return SCRIPT_OVERRIDE;
  5691.         }
  5692.         return SCRIPT_CONTINUE;
  5693.     }
  5694.    
  5695.    
  5696.     public int bm_dampen_pain_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5697.     {
  5698.         if (!combatStandardAction("bm_dampen_pain_2", self, target, params, "", "", true))
  5699.         {
  5700.             return SCRIPT_OVERRIDE;
  5701.         }
  5702.        
  5703.         return SCRIPT_CONTINUE;
  5704.     }
  5705.    
  5706.    
  5707.     public int bm_dampen_pain_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5708.     {
  5709.         if (!combatStandardAction("bm_dampen_pain_3", self, target, params, "", "", true))
  5710.         {
  5711.             return SCRIPT_OVERRIDE;
  5712.         }
  5713.        
  5714.         return SCRIPT_CONTINUE;
  5715.     }
  5716.    
  5717.    
  5718.     public int bm_dampen_pain_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5719.     {
  5720.         if (!combatStandardAction("bm_dampen_pain_4", self, target, params, "", "", true))
  5721.         {
  5722.             return SCRIPT_OVERRIDE;
  5723.         }
  5724.        
  5725.         return SCRIPT_CONTINUE;
  5726.     }
  5727.    
  5728.    
  5729.     public int bm_dampen_pain_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5730.     {
  5731.         if (!combatStandardAction("bm_dampen_pain_5", self, target, params, "", "", true))
  5732.         {
  5733.             return SCRIPT_OVERRIDE;
  5734.         }
  5735.        
  5736.         return SCRIPT_CONTINUE;
  5737.     }
  5738.    
  5739.    
  5740.     public int bm_shield_master(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5741.     {
  5742.         if (!combatStandardAction("bm_shield_master", self, target, params, "", "", true))
  5743.         {
  5744.             return SCRIPT_OVERRIDE;
  5745.         }
  5746.         return SCRIPT_CONTINUE;
  5747.     }
  5748.    
  5749.    
  5750.     public int bm_deflective_hide(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5751.     {
  5752.         if (!combatStandardAction("bm_deflective_hide", self, target, params, "", "", true))
  5753.         {
  5754.             return SCRIPT_OVERRIDE;
  5755.         }
  5756.         return SCRIPT_CONTINUE;
  5757.     }
  5758.    
  5759.    
  5760.     public int bm_defensive_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5761.     {
  5762.         if (!combatStandardAction("bm_defensive_1", self, target, params, "", "", true))
  5763.         {
  5764.             return SCRIPT_OVERRIDE;
  5765.         }
  5766.         return SCRIPT_CONTINUE;
  5767.     }
  5768.    
  5769.     public int bm_defensive_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5770.     {
  5771.         if (!combatStandardAction("bm_defensive_2", self, target, params, "", "", true))
  5772.         {
  5773.             return SCRIPT_OVERRIDE;
  5774.         }
  5775.         return SCRIPT_CONTINUE;
  5776.     }
  5777.    
  5778.     public int bm_defensive_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5779.     {
  5780.         if (!combatStandardAction("bm_defensive_3", self, target, params, "", "", true))
  5781.         {
  5782.             return SCRIPT_OVERRIDE;
  5783.         }
  5784.         return SCRIPT_CONTINUE;
  5785.     }
  5786.    
  5787.     public int bm_defensive_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5788.     {
  5789.         if (!combatStandardAction("bm_defensive_4", self, target, params, "", "", true))
  5790.         {
  5791.             return SCRIPT_OVERRIDE;
  5792.         }
  5793.         return SCRIPT_CONTINUE;
  5794.     }
  5795.    
  5796.     public int bm_defensive_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5797.     {
  5798.         if (!combatStandardAction("bm_defensive_5", self, target, params, "", "", true))
  5799.         {
  5800.             return SCRIPT_OVERRIDE;
  5801.         }
  5802.         return SCRIPT_CONTINUE;
  5803.     }
  5804.    
  5805.    
  5806.     public int bm_damage_poison_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5807.     {
  5808.         if (!combatStandardAction("bm_damage_poison_1", self, target, params, "", "", true))
  5809.         {
  5810.             return SCRIPT_OVERRIDE;
  5811.         }
  5812.        
  5813.         return SCRIPT_CONTINUE;
  5814.     }
  5815.    
  5816.     public int bm_damage_poison_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5817.     {
  5818.         if (!combatStandardAction("bm_damage_poison_2", self, target, params, "", "", true))
  5819.         {
  5820.             return SCRIPT_OVERRIDE;
  5821.         }
  5822.        
  5823.         return SCRIPT_CONTINUE;
  5824.     }
  5825.    
  5826.     public int bm_damage_poison_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5827.     {
  5828.         if (!combatStandardAction("bm_damage_poison_3", self, target, params, "", "", true))
  5829.         {
  5830.             return SCRIPT_OVERRIDE;
  5831.         }
  5832.        
  5833.         return SCRIPT_CONTINUE;
  5834.     }
  5835.    
  5836.     public int bm_damage_poison_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5837.     {
  5838.         if (!combatStandardAction("bm_damage_poison_4", self, target, params, "", "", true))
  5839.         {
  5840.             return SCRIPT_OVERRIDE;
  5841.         }
  5842.        
  5843.         return SCRIPT_CONTINUE;
  5844.     }
  5845.    
  5846.     public int bm_damage_poison_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5847.     {
  5848.         if (!combatStandardAction("bm_damage_poison_5", self, target, params, "", "", true))
  5849.         {
  5850.             return SCRIPT_OVERRIDE;
  5851.         }
  5852.        
  5853.         return SCRIPT_CONTINUE;
  5854.     }
  5855.    
  5856.    
  5857.     public int bm_damage_disease_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5858.     {
  5859.         if (!combatStandardAction("bm_damage_disease_1", self, target, params, "", "", true))
  5860.         {
  5861.             return SCRIPT_OVERRIDE;
  5862.         }
  5863.        
  5864.         return SCRIPT_CONTINUE;
  5865.     }
  5866.    
  5867.    
  5868.     public int bm_damage_disease_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5869.     {
  5870.         if (!combatStandardAction("bm_damage_disease_2", self, target, params, "", "", true))
  5871.         {
  5872.             return SCRIPT_OVERRIDE;
  5873.         }
  5874.        
  5875.         return SCRIPT_CONTINUE;
  5876.     }
  5877.    
  5878.    
  5879.     public int bm_damage_disease_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5880.     {
  5881.         if (!combatStandardAction("bm_damage_disease_3", self, target, params, "", "", true))
  5882.         {
  5883.             return SCRIPT_OVERRIDE;
  5884.         }
  5885.        
  5886.         return SCRIPT_CONTINUE;
  5887.     }
  5888.    
  5889.    
  5890.     public int bm_damage_disease_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5891.     {
  5892.         if (!combatStandardAction("bm_damage_disease_4", self, target, params, "", "", true))
  5893.         {
  5894.             return SCRIPT_OVERRIDE;
  5895.         }
  5896.        
  5897.         return SCRIPT_CONTINUE;
  5898.     }
  5899.    
  5900.    
  5901.     public int bm_damage_disease_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5902.     {
  5903.         if (!combatStandardAction("bm_damage_disease_5", self, target, params, "", "", true))
  5904.         {
  5905.             return SCRIPT_OVERRIDE;
  5906.         }
  5907.        
  5908.         return SCRIPT_CONTINUE;
  5909.     }
  5910.    
  5911.    
  5912.     public int bm_paralytic_poison(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5913.     {
  5914.         if (!combatStandardAction("bm_paralytic_poison", self, target, params, "", "", true))
  5915.         {
  5916.             return SCRIPT_OVERRIDE;
  5917.         }
  5918.        
  5919.         return SCRIPT_CONTINUE;
  5920.     }
  5921.    
  5922.    
  5923.     public int bm_enfeeble_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5924.     {
  5925.         if (!combatStandardAction("bm_enfeeble_1", self, target, params, "", "", true))
  5926.         {
  5927.             return SCRIPT_OVERRIDE;
  5928.         }
  5929.        
  5930.         return SCRIPT_CONTINUE;
  5931.     }
  5932.    
  5933.    
  5934.     public int bm_enfeeble_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5935.     {
  5936.         if (!combatStandardAction("bm_enfeeble_2", self, target, params, "", "", true))
  5937.         {
  5938.             return SCRIPT_OVERRIDE;
  5939.         }
  5940.        
  5941.         return SCRIPT_CONTINUE;
  5942.     }
  5943.    
  5944.    
  5945.     public int bm_enfeeble_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5946.     {
  5947.         if (!combatStandardAction("bm_enfeeble_3", self, target, params, "", "", true))
  5948.         {
  5949.             return SCRIPT_OVERRIDE;
  5950.         }
  5951.        
  5952.         return SCRIPT_CONTINUE;
  5953.     }
  5954.    
  5955.    
  5956.     public int bm_enfeeble_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5957.     {
  5958.         if (!combatStandardAction("bm_enfeeble_4", self, target, params, "", "", true))
  5959.         {
  5960.             return SCRIPT_OVERRIDE;
  5961.         }
  5962.        
  5963.         return SCRIPT_CONTINUE;
  5964.     }
  5965.    
  5966.    
  5967.     public int bm_enfeeble_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5968.     {
  5969.         if (!combatStandardAction("bm_enfeeble_5", self, target, params, "", "", true))
  5970.         {
  5971.             return SCRIPT_OVERRIDE;
  5972.         }
  5973.        
  5974.         return SCRIPT_CONTINUE;
  5975.     }
  5976.    
  5977.    
  5978.     public int bm_preperation(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5979.     {
  5980.         if (!combatStandardAction("bm_preperation", self, target, params, "", "", true))
  5981.         {
  5982.             return SCRIPT_OVERRIDE;
  5983.         }
  5984.        
  5985.         return SCRIPT_CONTINUE;
  5986.     }
  5987.    
  5988.    
  5989.     public int bm_stomp_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  5990.     {
  5991.         if (!combatStandardAction("bm_stomp_1", self, target, params, "", "", true))
  5992.         {
  5993.             return SCRIPT_OVERRIDE;
  5994.         }
  5995.        
  5996.         return SCRIPT_CONTINUE;
  5997.     }
  5998.    
  5999.    
  6000.     public int bm_stomp_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6001.     {
  6002.         if (!combatStandardAction("bm_stomp_2", self, target, params, "", "", true))
  6003.         {
  6004.             return SCRIPT_OVERRIDE;
  6005.         }
  6006.        
  6007.         return SCRIPT_CONTINUE;
  6008.     }
  6009.    
  6010.    
  6011.     public int bm_stomp_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6012.     {
  6013.         if (!combatStandardAction("bm_stomp_3", self, target, params, "", "", true))
  6014.         {
  6015.             return SCRIPT_OVERRIDE;
  6016.         }
  6017.        
  6018.         return SCRIPT_CONTINUE;
  6019.     }
  6020.    
  6021.    
  6022.     public int bm_stomp_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6023.     {
  6024.         if (!combatStandardAction("bm_stomp_4", self, target, params, "", "", true))
  6025.         {
  6026.             return SCRIPT_OVERRIDE;
  6027.         }
  6028.        
  6029.         return SCRIPT_CONTINUE;
  6030.     }
  6031.    
  6032.    
  6033.     public int bm_stomp_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6034.     {
  6035.         if (!combatStandardAction("bm_stomp_5", self, target, params, "", "", true))
  6036.         {
  6037.             return SCRIPT_OVERRIDE;
  6038.         }
  6039.        
  6040.         return SCRIPT_CONTINUE;
  6041.     }
  6042.    
  6043.    
  6044.     public int bm_shaken_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6045.     {
  6046.         if (!combatStandardAction("bm_shaken_1", self, target, params, "", "", true))
  6047.         {
  6048.             return SCRIPT_OVERRIDE;
  6049.         }
  6050.        
  6051.         return SCRIPT_CONTINUE;
  6052.     }
  6053.    
  6054.    
  6055.     public int bm_shaken_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6056.     {
  6057.         if (!combatStandardAction("bm_shaken_2", self, target, params, "", "", true))
  6058.         {
  6059.             return SCRIPT_OVERRIDE;
  6060.         }
  6061.        
  6062.         return SCRIPT_CONTINUE;
  6063.     }
  6064.    
  6065.    
  6066.     public int bm_shaken_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6067.     {
  6068.         if (!combatStandardAction("bm_shaken_3", self, target, params, "", "", true))
  6069.         {
  6070.             return SCRIPT_OVERRIDE;
  6071.         }
  6072.        
  6073.         return SCRIPT_CONTINUE;
  6074.     }
  6075.    
  6076.    
  6077.     public int bm_wing_buffet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6078.     {
  6079.         if (!combatStandardAction("bm_wing_buffet_1", self, target, params, "", "", true))
  6080.         {
  6081.             return SCRIPT_OVERRIDE;
  6082.         }
  6083.        
  6084.         return SCRIPT_CONTINUE;
  6085.     }
  6086.    
  6087.    
  6088.     public int bm_wing_buffet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6089.     {
  6090.         if (!combatStandardAction("bm_wing_buffet_2", self, target, params, "", "", true))
  6091.         {
  6092.             return SCRIPT_OVERRIDE;
  6093.         }
  6094.        
  6095.         return SCRIPT_CONTINUE;
  6096.     }
  6097.    
  6098.    
  6099.     public int bm_wing_buffet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6100.     {
  6101.         if (!combatStandardAction("bm_wing_buffet_3", self, target, params, "", "", true))
  6102.         {
  6103.             return SCRIPT_OVERRIDE;
  6104.         }
  6105.        
  6106.         return SCRIPT_CONTINUE;
  6107.     }
  6108.    
  6109.    
  6110.     public int bm_wing_buffet_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6111.     {
  6112.         if (!combatStandardAction("bm_wing_buffet_4", self, target, params, "", "", true))
  6113.         {
  6114.             return SCRIPT_OVERRIDE;
  6115.         }
  6116.        
  6117.         return SCRIPT_CONTINUE;
  6118.     }
  6119.    
  6120.    
  6121.     public int bm_wing_buffet_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6122.     {
  6123.         if (!combatStandardAction("bm_wing_buffet_5", self, target, params, "", "", true))
  6124.         {
  6125.             return SCRIPT_OVERRIDE;
  6126.         }
  6127.        
  6128.         return SCRIPT_CONTINUE;
  6129.     }
  6130.    
  6131.    
  6132.     public int bm_spit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6133.     {
  6134.         if (!combatStandardAction("bm_spit_1", self, target, params, "", "", true))
  6135.         {
  6136.             return SCRIPT_OVERRIDE;
  6137.         }
  6138.        
  6139.         return SCRIPT_CONTINUE;
  6140.     }
  6141.    
  6142.    
  6143.     public int bm_spit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6144.     {
  6145.         if (!combatStandardAction("bm_spit_2", self, target, params, "", "", true))
  6146.         {
  6147.             return SCRIPT_OVERRIDE;
  6148.         }
  6149.        
  6150.         return SCRIPT_CONTINUE;
  6151.     }
  6152.    
  6153.    
  6154.     public int bm_spit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6155.     {
  6156.         if (!combatStandardAction("bm_spit_3", self, target, params, "", "", true))
  6157.         {
  6158.             return SCRIPT_OVERRIDE;
  6159.         }
  6160.        
  6161.         return SCRIPT_CONTINUE;
  6162.     }
  6163.    
  6164.    
  6165.     public int bm_spit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6166.     {
  6167.         if (!combatStandardAction("bm_spit_4", self, target, params, "", "", true))
  6168.         {
  6169.             return SCRIPT_OVERRIDE;
  6170.         }
  6171.        
  6172.         return SCRIPT_CONTINUE;
  6173.     }
  6174.    
  6175.    
  6176.     public int bm_spit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6177.     {
  6178.         if (!combatStandardAction("bm_spit_5", self, target, params, "", "", true))
  6179.         {
  6180.             return SCRIPT_OVERRIDE;
  6181.         }
  6182.        
  6183.         return SCRIPT_CONTINUE;
  6184.     }
  6185.    
  6186.    
  6187.     public int bm_kick_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6188.     {
  6189.         if (!combatStandardAction("bm_kick_1", self, target, params, "", "", true))
  6190.         {
  6191.             return SCRIPT_OVERRIDE;
  6192.         }
  6193.        
  6194.         return SCRIPT_CONTINUE;
  6195.     }
  6196.    
  6197.    
  6198.     public int bm_kick_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6199.     {
  6200.         if (!combatStandardAction("bm_kick_2", self, target, params, "", "", true))
  6201.         {
  6202.             return SCRIPT_OVERRIDE;
  6203.         }
  6204.        
  6205.         return SCRIPT_CONTINUE;
  6206.     }
  6207.    
  6208.    
  6209.     public int bm_kick_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6210.     {
  6211.         if (!combatStandardAction("bm_kick_3", self, target, params, "", "", true))
  6212.         {
  6213.             return SCRIPT_OVERRIDE;
  6214.         }
  6215.        
  6216.         return SCRIPT_CONTINUE;
  6217.     }
  6218.    
  6219.    
  6220.     public int bm_kick_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6221.     {
  6222.         if (!combatStandardAction("bm_kick_4", self, target, params, "", "", true))
  6223.         {
  6224.             return SCRIPT_OVERRIDE;
  6225.         }
  6226.        
  6227.         return SCRIPT_CONTINUE;
  6228.     }
  6229.    
  6230.    
  6231.     public int bm_kick_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6232.     {
  6233.         if (!combatStandardAction("bm_kick_5", self, target, params, "", "", true))
  6234.         {
  6235.             return SCRIPT_OVERRIDE;
  6236.         }
  6237.        
  6238.         return SCRIPT_CONTINUE;
  6239.     }
  6240.    
  6241.    
  6242.     public int bm_enrage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6243.     {
  6244.         if (!combatStandardAction("bm_enrage", self, target, params, "", "", true))
  6245.         {
  6246.             return SCRIPT_OVERRIDE;
  6247.         }
  6248.        
  6249.         return SCRIPT_CONTINUE;
  6250.     }
  6251.    
  6252.    
  6253.     public int bm_frenzy(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6254.     {
  6255.         if (!combatStandardAction("bm_frenzy", self, target, params, "", "", true))
  6256.         {
  6257.             return SCRIPT_OVERRIDE;
  6258.         }
  6259.        
  6260.         return SCRIPT_CONTINUE;
  6261.     }
  6262.    
  6263.    
  6264.     public int bm_provoke_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6265.     {
  6266.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6267.         target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self);
  6268.        
  6269.         if (!ai_lib.isTauntable(target))
  6270.         {
  6271.             return SCRIPT_OVERRIDE;
  6272.         }
  6273.        
  6274.         if (!combatStandardAction("bm_provoke_1", self, target, params, "", "", true))
  6275.         {
  6276.             return SCRIPT_OVERRIDE;
  6277.         }
  6278.        
  6279.         beast_lib.doBmProvokeCommand(beast, target, 1);
  6280.        
  6281.         return SCRIPT_CONTINUE;
  6282.     }
  6283.    
  6284.    
  6285.     public int bm_provoke_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6286.     {
  6287.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6288.         target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self);
  6289.        
  6290.         if (!ai_lib.isTauntable(target))
  6291.         {
  6292.             return SCRIPT_OVERRIDE;
  6293.         }
  6294.        
  6295.         if (!combatStandardAction("bm_provoke_2", self, target, params, "", "", true))
  6296.         {
  6297.             return SCRIPT_OVERRIDE;
  6298.         }
  6299.        
  6300.         beast_lib.doBmProvokeCommand(beast, target, 2);
  6301.        
  6302.         return SCRIPT_CONTINUE;
  6303.     }
  6304.    
  6305.    
  6306.     public int bm_provoke_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6307.     {
  6308.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6309.         target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self);
  6310.        
  6311.         if (!ai_lib.isTauntable(target))
  6312.         {
  6313.             return SCRIPT_OVERRIDE;
  6314.         }
  6315.        
  6316.         if (!combatStandardAction("bm_provoke_3", self, target, params, "", "", true))
  6317.         {
  6318.             return SCRIPT_OVERRIDE;
  6319.         }
  6320.        
  6321.         beast_lib.doBmProvokeCommand(beast, target, 3);
  6322.        
  6323.         return SCRIPT_CONTINUE;
  6324.     }
  6325.    
  6326.    
  6327.     public int bm_provoke_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6328.     {
  6329.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6330.         target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self);
  6331.        
  6332.         if (!ai_lib.isTauntable(target))
  6333.         {
  6334.             return SCRIPT_OVERRIDE;
  6335.         }
  6336.        
  6337.         if (!combatStandardAction("bm_provoke_4", self, target, params, "", "", true))
  6338.         {
  6339.             return SCRIPT_OVERRIDE;
  6340.         }
  6341.        
  6342.         beast_lib.doBmProvokeCommand(beast, target, 4);
  6343.        
  6344.         return SCRIPT_CONTINUE;
  6345.     }
  6346.    
  6347.    
  6348.     public int bm_provoke_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6349.     {
  6350.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6351.         target = isIdValid(getTarget(beast)) ? getTarget(beast) : getIntendedTarget(self);
  6352.        
  6353.         if (!ai_lib.isTauntable(target))
  6354.         {
  6355.             return SCRIPT_OVERRIDE;
  6356.         }
  6357.        
  6358.         if (!combatStandardAction("bm_provoke_5", self, target, params, "", "", true))
  6359.         {
  6360.             return SCRIPT_OVERRIDE;
  6361.         }
  6362.        
  6363.         beast_lib.doBmProvokeCommand(beast, target, 5);
  6364.        
  6365.         return SCRIPT_CONTINUE;
  6366.     }
  6367.    
  6368.    
  6369.     public int fs_taunt(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6370.     {
  6371.        
  6372.         int stanceBuff = buff.getBuffOnTargetFromGroup(self, "fsDefStance");
  6373.         if (stanceBuff == 0)
  6374.         {
  6375.             return SCRIPT_OVERRIDE;
  6376.         }
  6377.        
  6378.         target = isIdValid(getIntendedTarget(self)) ? getIntendedTarget(self): getTarget(self) ;
  6379.        
  6380.         if (!isIdValid(target) || !exists(target))
  6381.         {
  6382.             return SCRIPT_OVERRIDE;
  6383.         }
  6384.        
  6385.         if (!ai_lib.isTauntable(target))
  6386.         {
  6387.             return SCRIPT_OVERRIDE;
  6388.         }
  6389.        
  6390.         if (isPlayer(target) || beast_lib.isBeast(target))
  6391.         {
  6392.             return SCRIPT_OVERRIDE;
  6393.         }
  6394.        
  6395.         obj_id topHateTarget = getHateTarget(target);
  6396.        
  6397.         if (topHateTarget == self)
  6398.         {
  6399.             return SCRIPT_CONTINUE;
  6400.         }
  6401.        
  6402.         if (!combatStandardAction("fs_taunt", self, target, params, "", "", false))
  6403.         {
  6404.             return SCRIPT_OVERRIDE;
  6405.         }
  6406.        
  6407.         combat.dsFsTaunt(self, target);
  6408.        
  6409.         return SCRIPT_CONTINUE;
  6410.     }
  6411.    
  6412.    
  6413.     public int togglePetAutoRepeatOn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6414.     {
  6415.         beast_lib.setAbilityAutoRepeat(beast_lib.getBeastOnPlayer(self), params);
  6416.         return SCRIPT_CONTINUE;
  6417.     }
  6418.    
  6419.    
  6420.     public int togglePetAutoRepeatOff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6421.     {
  6422.         beast_lib.unsetAbilityAutoRepeat(beast_lib.getBeastOnPlayer(self), params);
  6423.         return SCRIPT_CONTINUE;
  6424.     }
  6425.    
  6426.    
  6427.     public int toggleBeastDefensive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6428.     {
  6429.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6430.         if (!isIdValid(beast) || !exists(beast))
  6431.         {
  6432.             return SCRIPT_OVERRIDE;
  6433.         }
  6434.        
  6435.         if (isDead(beast))
  6436.         {
  6437.             sendSystemMessage(self, beast_lib.SID_BEAST_CANT_WHEN_DEAD);
  6438.             return SCRIPT_OVERRIDE;
  6439.         }
  6440.        
  6441.         beast_lib.setBeastDefensive(beast, self, true);
  6442.         return SCRIPT_CONTINUE;
  6443.     }
  6444.    
  6445.    
  6446.     public int toggleBeastPassive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6447.     {
  6448.         obj_id beast = beast_lib.getBeastOnPlayer(self);
  6449.         if (!isIdValid(beast) || !exists(beast))
  6450.         {
  6451.             return SCRIPT_OVERRIDE;
  6452.         }
  6453.        
  6454.         if (isDead(beast))
  6455.         {
  6456.             sendSystemMessage(self, beast_lib.SID_BEAST_CANT_WHEN_DEAD);
  6457.             return SCRIPT_OVERRIDE;
  6458.         }
  6459.        
  6460.         beast_lib.setBeastDefensive(beast, self, false);
  6461.         return SCRIPT_CONTINUE;
  6462.     }
  6463.    
  6464.    
  6465.     public int bm_forage_enzyme_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6466.     {
  6467.         if (!combatStandardAction("bm_forage_enzyme_buff", self, target, params, "", "", true))
  6468.         {
  6469.             return SCRIPT_OVERRIDE;
  6470.         }
  6471.        
  6472.         return SCRIPT_CONTINUE;
  6473.     }
  6474.    
  6475.    
  6476.     public int devastating_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6477.     {
  6478.         if (!combatStandardAction("devastating_strike", self, target, params, "", "", true))
  6479.         {
  6480.             return SCRIPT_OVERRIDE;
  6481.         }
  6482.        
  6483.         return SCRIPT_CONTINUE;
  6484.     }
  6485.    
  6486.    
  6487.     public int human_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6488.     {
  6489.        
  6490.         if (!combatStandardAction("human_ability_1", self, target, params, "", ""))
  6491.         {
  6492.             return SCRIPT_OVERRIDE;
  6493.         }
  6494.        
  6495.         showFlyText(self, new string_id("spam", "fly_human_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6496.        
  6497.         return SCRIPT_CONTINUE;
  6498.     }
  6499.    
  6500.    
  6501.     public int wookiee_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6502.     {
  6503.         if (!combatStandardAction("wookiee_ability_1", self, target, params, "", ""))
  6504.         {
  6505.             return SCRIPT_OVERRIDE;
  6506.         }
  6507.        
  6508.         showFlyText(self, new string_id("spam", "fly_wookiee_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6509.        
  6510.         return SCRIPT_CONTINUE;
  6511.     }
  6512.    
  6513.    
  6514.     public int rodian_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6515.     {
  6516.         if (!combatStandardAction("rodian_ability_1", self, target, params, "", ""))
  6517.         {
  6518.             return SCRIPT_OVERRIDE;
  6519.         }
  6520.        
  6521.         showFlyText(self, new string_id("spam", "fly_rodian_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6522.        
  6523.         return SCRIPT_CONTINUE;
  6524.     }
  6525.    
  6526.    
  6527.     public int bothan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6528.     {
  6529.         if (!stealth.canPerformSmokeGrenade(self) || !combatStandardAction("bothan_ability_1", self, target, params, "", "") || !buff.canApplyBuff(target, "invis_bothan_ability_1"))
  6530.         {
  6531.             return SCRIPT_OVERRIDE;
  6532.         }
  6533.        
  6534.         return SCRIPT_CONTINUE;
  6535.     }
  6536.    
  6537.    
  6538.     public int ithorian_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6539.     {
  6540.         if (!combatStandardAction("ithorian_ability_1", self, target, params, "", ""))
  6541.         {
  6542.             return SCRIPT_OVERRIDE;
  6543.         }
  6544.        
  6545.         float level = getLevel(self);
  6546.         float blockValue = level * (1000.0f/90.0f);
  6547.        
  6548.         buff.applyBuff(self, self, "ithorian_ability_1", 30.0f,blockValue);
  6549.         showFlyText(self, new string_id("spam", "fly_ithorian_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6550.        
  6551.         return SCRIPT_CONTINUE;
  6552.     }
  6553.    
  6554.    
  6555.     public int twilek_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6556.     {
  6557.         if (!combatStandardAction("twilek_ability_1", self, target, params, "", ""))
  6558.         {
  6559.             return SCRIPT_OVERRIDE;
  6560.         }
  6561.        
  6562.         showFlyText(self, new string_id("spam", "fly_twilek_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6563.        
  6564.         return SCRIPT_CONTINUE;
  6565.     }
  6566.    
  6567.    
  6568.     public int sullustan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6569.     {
  6570.         if (!combatStandardAction("sullustan_ability_1", self, target, params, "", ""))
  6571.         {
  6572.             return SCRIPT_OVERRIDE;
  6573.         }
  6574.        
  6575.         showFlyText(self, new string_id("spam", "fly_sullustan_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6576.        
  6577.         return SCRIPT_CONTINUE;
  6578.     }
  6579.    
  6580.    
  6581.     public int moncal_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6582.     {
  6583.         if (!combatStandardAction("moncal_ability_1", self, target, params, "", ""))
  6584.         {
  6585.             return SCRIPT_OVERRIDE;
  6586.         }
  6587.        
  6588.         showFlyText(self, new string_id("spam", "fly_moncal_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6589.        
  6590.         return SCRIPT_CONTINUE;
  6591.     }
  6592.    
  6593.    
  6594.     public int trandoshan_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6595.     {
  6596.         if (!combatStandardAction("trandoshan_ability_1", self, target, params, "", ""))
  6597.         {
  6598.             return SCRIPT_OVERRIDE;
  6599.         }
  6600.        
  6601.         int level = getLevel(self);
  6602.         int healPerTick = level * 20;
  6603.        
  6604.         healing.startHealOverTime(self, self, "trandoshan_ability_1", 4.0f, 1.0f, healPerTick, true);
  6605.         showFlyText(self, new string_id("spam", "fly_trandoshan_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6606.        
  6607.         return SCRIPT_CONTINUE;
  6608.     }
  6609.    
  6610.    
  6611.     public int zabrak_ability_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6612.     {
  6613.         if (!combatStandardAction("zabrak_ability_1", self, target, params, "", ""))
  6614.         {
  6615.             return SCRIPT_OVERRIDE;
  6616.         }
  6617.        
  6618.         int level = getLevel(self);
  6619.         int amount = level * 40;
  6620.         int actionBefore = getAttrib(self, ACTION);
  6621.        
  6622.         int healthDelta = healing.healDamage(self, self, HEALTH, amount);
  6623.         healing.healDamage(self, ACTION, amount);
  6624.        
  6625.         int actionDelta = getAttrib(self, ACTION) - actionBefore;
  6626.        
  6627.         prose_package pp = new prose_package();
  6628.         pp = prose.setStringId(pp, new string_id("spam", "zabrak_equilibrium_spam"));
  6629.         pp = prose.setTT(pp, self);
  6630.         pp = prose.setDI(pp, healthDelta);
  6631.         healing.sendMedicalSpam(self, self, pp, true, true, true, COMBAT_RESULT_MEDICAL);
  6632.        
  6633.         prose_package ppp = new prose_package();
  6634.         pp = prose.setStringId(ppp, new string_id("spam", "zabrak_equilibrium_spam_action"));
  6635.         pp = prose.setTT(ppp, self);
  6636.         pp = prose.setDI(ppp, actionDelta);
  6637.         healing.sendMedicalSpam(self, self, ppp, true, true, true, COMBAT_RESULT_MEDICAL);
  6638.        
  6639.         showFlyText(self, new string_id("spam", "fly_zabrak_ability_1"), 1.5f, colors.LEMONCHIFFON);
  6640.         return SCRIPT_CONTINUE;
  6641.     }
  6642.    
  6643.    
  6644.     public int gcw_reward_comlink(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6645.     {
  6646.         if (!faction_perk.executeComlinkReinforcements(self))
  6647.         {
  6648.             return SCRIPT_OVERRIDE;
  6649.         }
  6650.        
  6651.         return SCRIPT_CONTINUE;
  6652.     }
  6653.    
  6654.    
  6655.     public int trample_random(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6656.     {
  6657.         if (!combatStandardAction("trample_random", self, target, params, "", ""))
  6658.         {
  6659.             return SCRIPT_OVERRIDE;
  6660.         }
  6661.        
  6662.         setLocation(self, getLocation(utils.getObjIdScriptVar(self, combat.CHARGE_TARGET)));
  6663.        
  6664.         return SCRIPT_CONTINUE;
  6665.        
  6666.     }
  6667.    
  6668.    
  6669.     public int bodyguard(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6670.     {
  6671.         if (!combatStandardAction("bodyguard", self, target, params, "", ""))
  6672.         {
  6673.             return SCRIPT_OVERRIDE;
  6674.         }
  6675.        
  6676.         return SCRIPT_CONTINUE;
  6677.     }
  6678.    
  6679.    
  6680.     public int nandina_heal(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6681.     {
  6682.        
  6683.         obj_id[] spawn_id = trial.getObjectsInDungeonWithObjVar(trial.getTop(self), "spawn_id");
  6684.        
  6685.         if (spawn_id == null || spawn_id.length == 0)
  6686.         {
  6687.            
  6688.             return SCRIPT_CONTINUE;
  6689.         }
  6690.         obj_id gorvo = null;
  6691.        
  6692.         for (int i=0; i<spawn_id.length; i++)
  6693.         {
  6694.             testAbortScript();
  6695.             if (getStringObjVar(spawn_id[i], "spawn_id").equals("gorvo"))
  6696.             {
  6697.                 gorvo = spawn_id[i];
  6698.             }
  6699.         }
  6700.        
  6701.         if (!isIdValid(gorvo) || ai_lib.isDead(gorvo))
  6702.         {
  6703.             return SCRIPT_CONTINUE;
  6704.         }
  6705.        
  6706.         int healingReduction = getEnhancedSkillStatisticModifierUncapped(gorvo, "expertise_healing_reduction");
  6707.         float redux = (float)healingReduction / ((float)healingReduction + 75.0f);
  6708.         int toHeal = (int)(50000.0f - (50000.0f * redux));
  6709.         toHeal = toHeal < 1 ? 1 : toHeal;
  6710.        
  6711.         healing.healDamage(gorvo, HEALTH, toHeal);
  6712.         playClientEffectLoc(gorvo, "clienteffect/bacta_bomb.cef", getLocation(target), 0);
  6713.        
  6714.         return SCRIPT_CONTINUE;
  6715.     }
  6716.    
  6717.    
  6718.     public int lelli_bleed(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6719.     {
  6720.         if (!combatStandardAction("lelli_bleed", self, target, params, "", ""))
  6721.         {
  6722.             return SCRIPT_OVERRIDE;
  6723.         }
  6724.        
  6725.         return SCRIPT_CONTINUE;
  6726.     }
  6727.    
  6728.    
  6729.     public int lelli_ambush(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6730.     {
  6731.         setInvulnerable(self, true);
  6732.         setCreatureCoverVisibility(self, false);
  6733.         utils.setScriptVar(self, combat.DEFAULT_ATTACK_OVERRIDE, "null_attack");
  6734.         messageTo(self, "dropMines", trial.getSessionDict(self, "ambush"), 1.0f, false);
  6735.         messageTo(self, "performAmbush", trial.getSessionDict(self, "ambush"), 2.0f, false);
  6736.         return SCRIPT_CONTINUE;
  6737.     }
  6738.    
  6739.    
  6740.     public int ig88_bomb_explode(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6741.     {
  6742.         if (!combatStandardAction("ig88_bomb_explode", self, target, params, "", "", true) && !utils.hasScriptVar(self, "exploded"))
  6743.         {
  6744.             return SCRIPT_OVERRIDE;
  6745.         }
  6746.        
  6747.         utils.setScriptVar(self, "exploded", 1);
  6748.        
  6749.         obj_id dungeon = getTopMostContainer(self);
  6750.        
  6751.         if (isIdValid(dungeon))
  6752.         {
  6753.            
  6754.             dictionary messageParams = trial.getSessionDict(dungeon);
  6755.             messageParams.put("npc", self);
  6756.            
  6757.             messageTo(dungeon, "killNPC", messageParams, 0, false);
  6758.         }
  6759.        
  6760.         return SCRIPT_CONTINUE;
  6761.     }
  6762.    
  6763.    
  6764.     public int ig88_droideka_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6765.     {
  6766.         if (!combatStandardAction("ig88_droideka_shield", self, target, params, "", ""))
  6767.         {
  6768.             return SCRIPT_OVERRIDE;
  6769.         }
  6770.        
  6771.         return SCRIPT_CONTINUE;
  6772.     }
  6773.    
  6774.    
  6775.     public int ig88_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6776.     {
  6777.         if (!combatStandardAction("ig88_shield", self, target, params, "", ""))
  6778.         {
  6779.             return SCRIPT_OVERRIDE;
  6780.         }
  6781.        
  6782.         return SCRIPT_CONTINUE;
  6783.     }
  6784.    
  6785.    
  6786.     public int ig88_droideka_electrify(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6787.     {
  6788.         if (!combatStandardAction("ig88_droideka_electrify", self, target, params, "", ""))
  6789.         {
  6790.             return SCRIPT_OVERRIDE;
  6791.         }
  6792.        
  6793.         setHate(self, target, 1);
  6794.        
  6795.         playClientEffectObj(self, "appearance/pt_ig88_electrify.prt", self, "");
  6796.         playClientEffectObj(target, "appearance/pt_ig88_electrify_target.prt", target, "");
  6797.        
  6798.         removeObjVar(self, "ai.combat.oneShotAction");
  6799.         removeObjVar(self, "oneShotActionComplete");
  6800.        
  6801.         return SCRIPT_CONTINUE;
  6802.     }
  6803.    
  6804.    
  6805.     public int ig88_flame_thrower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6806.     {
  6807.         if (!isIdValid(target))
  6808.         {
  6809.             return SCRIPT_OVERRIDE;
  6810.         }
  6811.        
  6812.         location where = getLocation(target);
  6813.        
  6814.         obj_id[] defenders = pvpGetTargetsInCone(self, self, where, 64, 10);
  6815.        
  6816.         Vector filteredDefenders = new Vector();
  6817.         filteredDefenders.setSize(0);
  6818.        
  6819.         if (defenders != null && defenders.length > 0)
  6820.         {
  6821.             for (int i = 0; i < defenders.length; i++)
  6822.             {
  6823.                 testAbortScript();
  6824.                 if (isIdValid(defenders[i]) && !isDead(defenders[i]) && isPlayer(defenders[i]))
  6825.                 {
  6826.                     filteredDefenders = utils.addElement(filteredDefenders, defenders[i]);
  6827.                 }
  6828.             }
  6829.         }
  6830.        
  6831.         if (filteredDefenders != null && filteredDefenders.size() > 0)
  6832.         {
  6833.             target = ((obj_id)(filteredDefenders.get(rand(0, filteredDefenders.size() - 1))));
  6834.         }
  6835.        
  6836.         if (!combatStandardAction("ig88_flame_thrower", self, target, params, "", ""))
  6837.         {
  6838.             return SCRIPT_OVERRIDE;
  6839.         }
  6840.        
  6841.         return SCRIPT_CONTINUE;
  6842.     }
  6843.    
  6844.    
  6845.     public int ig88_flame_thrower_vertical(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6846.     {
  6847.         if (!isIdValid(target))
  6848.         {
  6849.             return SCRIPT_OVERRIDE;
  6850.         }
  6851.        
  6852.         location where = getLocation(target);
  6853.        
  6854.         obj_id[] defenders = pvpGetTargetsInCone(self, self, where, 64, 10);
  6855.        
  6856.         Vector filteredDefenders = new Vector();
  6857.         filteredDefenders.setSize(0);
  6858.        
  6859.         if (defenders != null && defenders.length > 0)
  6860.         {
  6861.             for (int i = 0; i < defenders.length; i++)
  6862.             {
  6863.                 testAbortScript();
  6864.                 if (isIdValid(defenders[i]) && !isDead(defenders[i]) && isPlayer(defenders[i]))
  6865.                 {
  6866.                     filteredDefenders = utils.addElement(filteredDefenders, defenders[i]);
  6867.                 }
  6868.             }
  6869.         }
  6870.        
  6871.         if (filteredDefenders != null && filteredDefenders.size() > 0)
  6872.         {
  6873.             target = ((obj_id)(filteredDefenders.get(rand(0, filteredDefenders.size() - 1))));
  6874.         }
  6875.        
  6876.         if (!combatStandardAction("ig88_flame_thrower_vertical", self, target, params, "", ""))
  6877.         {
  6878.             return SCRIPT_OVERRIDE;
  6879.         }
  6880.        
  6881.         return SCRIPT_CONTINUE;
  6882.     }
  6883.    
  6884.    
  6885.     public obj_id getRocketTarget(obj_id self, obj_id target) throws InterruptedException
  6886.     {
  6887.         obj_id dungeon = getTopMostContainer(self);
  6888.        
  6889.         if (!isIdValid(dungeon))
  6890.         {
  6891.             return target;
  6892.         }
  6893.        
  6894.         obj_id[] targets = trial.getNonStealthedTargetsInCell(dungeon, "r1");
  6895.        
  6896.         if (targets == null || targets.length <= 0)
  6897.         {
  6898.             dictionary sessionDict = new dictionary();
  6899.            
  6900.             messageTo(dungeon, "ig88_failed", sessionDict, 0, false);
  6901.            
  6902.             return target;
  6903.         }
  6904.        
  6905.         target = targets[rand(0, targets.length - 1)];
  6906.        
  6907.         if (!isIdValid(target))
  6908.         {
  6909.             debugSpeakMsg(self, "I couldn't find a valid target.");
  6910.             return target;
  6911.         }
  6912.        
  6913.         return target;
  6914.     }
  6915.    
  6916.    
  6917.     public int gcw_rocket_launch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6918.     {
  6919.         if (!combatStandardAction("ig88_rocket_launch", self, target, params, "", ""))
  6920.         {
  6921.             return SCRIPT_OVERRIDE;
  6922.         }
  6923.        
  6924.         playClientEffectObj(self, "appearance/pt_gcw_rocket_launch.prt", self, "");
  6925.         playClientEffectObj(self, "sound/wep_heavy_rocket_launcher.snd", self, "");
  6926.        
  6927.         playClientEffectLoc(target, "appearance/pt_ig88_rocket_target.prt", getLocation(target), 0f);
  6928.        
  6929.         dictionary rocketParams = new dictionary();
  6930.        
  6931.         rocketParams.put("loc", getLocation(target));
  6932.        
  6933.         messageTo(self, "gcw_rocket_hit", rocketParams, 2f, false);
  6934.        
  6935.         removeObjVar(self, "ai.combat.oneShotAction");
  6936.         removeObjVar(self, "oneShotActionComplete");
  6937.        
  6938.         return SCRIPT_CONTINUE;
  6939.     }
  6940.    
  6941.    
  6942.     public int gcw_rocket_launcher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6943.     {
  6944.         if (!combatStandardAction("ig88_rocket_launcher", self, target, params, "", ""))
  6945.         {
  6946.             return SCRIPT_OVERRIDE;
  6947.         }
  6948.        
  6949.         return SCRIPT_CONTINUE;
  6950.     }
  6951.    
  6952.    
  6953.     public int gcw_rocket_hit(obj_id self, dictionary params) throws InterruptedException
  6954.     {
  6955.         location loc = params.getLocation("loc");
  6956.        
  6957.         playClientEffectLoc(self, "appearance/pt_gcw_rocket_hit.prt", loc, 0f);
  6958.        
  6959.         return SCRIPT_CONTINUE;
  6960.     }
  6961.    
  6962.    
  6963.     public int ig88_rocket_launch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6964.     {
  6965.         target = getRocketTarget(self, target);
  6966.        
  6967.         LOG("combat_actions", "gcw ig88_rocket_launch 1");
  6968.        
  6969.         if (!combatStandardAction("ig88_rocket_launch", self, target, params, "", ""))
  6970.         {
  6971.             LOG("combat_actions", "gcw ig88_rocket_launch FAIL self: "+ self + " target: "+ target + " params: "+ params);
  6972.             return SCRIPT_OVERRIDE;
  6973.         }
  6974.        
  6975.         playClientEffectObj(self, "appearance/pt_ig88_rocket_launch.prt", self, "");
  6976.         playClientEffectObj(self, "sound/wep_heavy_rocket_launcher.snd", self, "");
  6977.        
  6978.         playClientEffectLoc(target, "appearance/pt_ig88_rocket_target.prt", getLocation(target), 0f);
  6979.        
  6980.         dictionary rocketParams = new dictionary();
  6981.        
  6982.         rocketParams.put("loc", getLocation(target));
  6983.        
  6984.         messageTo(self, "ig88_rocket_hit", rocketParams, 2f, false);
  6985.        
  6986.         removeObjVar(self, "ai.combat.oneShotAction");
  6987.         removeObjVar(self, "oneShotActionComplete");
  6988.        
  6989.         return SCRIPT_CONTINUE;
  6990.     }
  6991.    
  6992.    
  6993.     public int ig88_rocket_launcher(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  6994.     {
  6995.         if (!combatStandardAction("ig88_rocket_launcher", self, target, params, "", ""))
  6996.         {
  6997.             return SCRIPT_OVERRIDE;
  6998.         }
  6999.        
  7000.         return SCRIPT_CONTINUE;
  7001.     }
  7002.    
  7003.    
  7004.     public int ig88_rocket_hit(obj_id self, dictionary params) throws InterruptedException
  7005.     {
  7006.         location loc = params.getLocation("loc");
  7007.        
  7008.         playClientEffectLoc(self, "appearance/pt_ig88_rocket_hit.prt", loc, 0f);
  7009.        
  7010.         return SCRIPT_CONTINUE;
  7011.     }
  7012.    
  7013.    
  7014.     public int ig88_shockwave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7015.     {
  7016.         location loc = getLocation(self);
  7017.        
  7018.         String strLoc = ""+ loc.x + " "+ loc.y + " "+ loc.z + " "+ loc.cell + " "+ loc.x + " "+ loc.y + " "+ loc.z;
  7019.        
  7020.         if (!combatStandardAction("ig88_shockwave", self, target, strLoc, "", ""))
  7021.         {
  7022.             return SCRIPT_OVERRIDE;
  7023.         }
  7024.        
  7025.         return SCRIPT_CONTINUE;
  7026.     }
  7027.    
  7028.    
  7029.     public int ig88_grenade(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7030.     {
  7031.         location loc = getLocation(self);
  7032.        
  7033.         String strLoc = ""+ loc.x + " "+ loc.y + " "+ loc.z + " "+ loc.cell + " "+ loc.x + " "+ loc.y + " "+ loc.z;
  7034.        
  7035.         if (!combatStandardAction("ig88_grenade", self, target, strLoc, "", ""))
  7036.         {
  7037.             return SCRIPT_OVERRIDE;
  7038.         }
  7039.        
  7040.         return SCRIPT_CONTINUE;
  7041.     }
  7042.    
  7043.    
  7044.     public int nandina_fester(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7045.     {
  7046.         if (!combatStandardAction("nandina_fester", self, target, params, "", ""))
  7047.         {
  7048.             return SCRIPT_OVERRIDE;
  7049.         }
  7050.        
  7051.         return SCRIPT_CONTINUE;
  7052.     }
  7053.    
  7054.    
  7055.     public int lelli_mine(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7056.     {
  7057.         obj_id[] hateList = getHateList(self);
  7058.        
  7059.         Vector vectorList = new Vector(Arrays.asList(hateList));
  7060.         vectorList = utils.shuffleArray(vectorList);
  7061.        
  7062.         for (int i=0; i<hateList.length && i < 4; i++)
  7063.         {
  7064.             testAbortScript();
  7065.             combatStandardAction("lelli_mine", self, hateList[i], params, "", "");
  7066.         }
  7067.        
  7068.         return SCRIPT_CONTINUE;
  7069.     }
  7070.    
  7071.    
  7072.     public int lelli_chain_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7073.     {
  7074.         if (!combatStandardAction("lelli_chain_cleave", self, target, params, "", ""))
  7075.         {
  7076.             return SCRIPT_OVERRIDE;
  7077.         }
  7078.        
  7079.         return SCRIPT_CONTINUE;
  7080.     }
  7081.    
  7082.    
  7083.     public int kimaru_storm_pulse(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7084.     {
  7085.         if (!combatStandardAction("kimaru_storm_pulse", self, target, params, "", ""))
  7086.         {
  7087.             return SCRIPT_OVERRIDE;
  7088.         }
  7089.        
  7090.         return SCRIPT_CONTINUE;
  7091.     }
  7092.    
  7093.    
  7094.     public int kimaru_generate_storm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7095.     {
  7096.         obj_id[] hateList = getHateList(self);
  7097.         location loc1 = new location(-63.6f, 16.f, 36.4f, "dungeon1", getCellId(trial.getTop(self), "r2"));
  7098.         location loc2 = new location(-69.8f, 15.0f, 9.6f, "dungeon1", getCellId(trial.getTop(self), "r2"));
  7099.         location loc3 = new location(-44.4f, 9f, 1.5f, "dungeon1", getCellId(trial.getTop(self), "r2"));
  7100.         location loc4 = new location(-42.7f, 10.3f, 20.9f, "dungeon1", getCellId(trial.getTop(self), "r2"));
  7101.         location[] locList =
  7102.         {
  7103.             loc1, loc2, loc3, loc4
  7104.         };
  7105.        
  7106.         for (int i=0; i<4; i++)
  7107.         {
  7108.             testAbortScript();
  7109.             obj_id storm = create.object("kimaru_force_storm", locList[i]);
  7110.             playClientEffectLoc(hateList[0], "appearance/pt_kimaru_force_storm_birth.prt", locList[i], 0.0f);
  7111.             setMaster(storm, self);
  7112.             utils.setScriptVar(storm, trial.KIMARU_HATE_LIST, hateList);
  7113.         }
  7114.        
  7115.         return SCRIPT_CONTINUE;
  7116.     }
  7117.    
  7118.    
  7119.     public int kimaru_flame_patch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7120.     {
  7121.         obj_id[] hateList = getHateList(self);
  7122.         location loc = getLocation(hateList[rand(0, hateList.length -1)]);
  7123.         String targetLoc = ""+loc.x+" "+loc.y+" "+loc.z+" "+loc.cell+" "+loc.x+" "+loc.y+" "+loc.z;
  7124.        
  7125.         if (!combatStandardAction("kimaru_flame_patch", self, target, targetLoc, "", ""))
  7126.         {
  7127.             return SCRIPT_OVERRIDE;
  7128.         }
  7129.        
  7130.         return SCRIPT_CONTINUE;
  7131.     }
  7132.    
  7133.    
  7134.     public int heat_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7135.     {
  7136.         if (!combatStandardAction("heat_aspect", self, target, params, "", ""))
  7137.         {
  7138.             return SCRIPT_OVERRIDE;
  7139.         }
  7140.        
  7141.         return SCRIPT_CONTINUE;
  7142.     }
  7143.    
  7144.    
  7145.     public int acid_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7146.     {
  7147.         if (!combatStandardAction("acid_aspect", self, target, params, "", ""))
  7148.         {
  7149.             return SCRIPT_OVERRIDE;
  7150.         }
  7151.        
  7152.         return SCRIPT_CONTINUE;
  7153.     }
  7154.    
  7155.    
  7156.     public int elec_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7157.     {
  7158.         if (!combatStandardAction("elec_aspect", self, target, params, "", ""))
  7159.         {
  7160.             return SCRIPT_OVERRIDE;
  7161.         }
  7162.        
  7163.         return SCRIPT_CONTINUE;
  7164.     }
  7165.    
  7166.    
  7167.     public int cold_aspect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7168.     {
  7169.         if (!combatStandardAction("cold_aspect", self, target, params, "", ""))
  7170.         {
  7171.             return SCRIPT_OVERRIDE;
  7172.         }
  7173.        
  7174.         return SCRIPT_CONTINUE;
  7175.     }
  7176.    
  7177.    
  7178.     public int axkva_contagion_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7179.     {
  7180.         if (!combatStandardAction("axkva_contagion_bomb", self, target, params, "", ""))
  7181.         {
  7182.             return SCRIPT_OVERRIDE;
  7183.         }
  7184.        
  7185.         return SCRIPT_CONTINUE;
  7186.     }
  7187.    
  7188.    
  7189.     public int axkva_contagion(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7190.     {
  7191.         if (!combatStandardAction("axkva_contagion", self, target, params, "", ""))
  7192.         {
  7193.             return SCRIPT_OVERRIDE;
  7194.         }
  7195.        
  7196.         return SCRIPT_CONTINUE;
  7197.     }
  7198.    
  7199.    
  7200.     public int axkva_force_storm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7201.     {
  7202.         if (!combatStandardAction("axkva_force_storm", self, target, params, "", ""))
  7203.         {
  7204.             return SCRIPT_OVERRIDE;
  7205.         }
  7206.        
  7207.         return SCRIPT_CONTINUE;
  7208.     }
  7209.    
  7210.    
  7211.     public int axkva_whirl_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7212.     {
  7213.         if (!combatStandardAction("axkva_whirl_blast", self, target, params, "", ""))
  7214.         {
  7215.             return SCRIPT_OVERRIDE;
  7216.         }
  7217.        
  7218.         return SCRIPT_CONTINUE;
  7219.        
  7220.     }
  7221.    
  7222.    
  7223.     public int suin_rampage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7224.     {
  7225.         if (!combatStandardAction("suin_rampage", self, target, params, "", ""))
  7226.         {
  7227.             return SCRIPT_OVERRIDE;
  7228.         }
  7229.        
  7230.         return SCRIPT_CONTINUE;
  7231.     }
  7232.    
  7233.    
  7234.     public int suin_healing_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7235.     {
  7236.         if (!combatStandardAction("suin_healing_debuff", self, target, params, "", ""))
  7237.         {
  7238.             return SCRIPT_OVERRIDE;
  7239.         }
  7240.        
  7241.         return SCRIPT_CONTINUE;
  7242.        
  7243.     }
  7244.    
  7245.    
  7246.     public int axkva_warden_flame(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7247.     {
  7248.         if (!combatStandardAction("axkva_warden_flame", self, target, params, "", ""))
  7249.         {
  7250.             return SCRIPT_OVERRIDE;
  7251.         }
  7252.        
  7253.         return SCRIPT_CONTINUE;
  7254.     }
  7255.    
  7256.    
  7257.     public int macy_ywing_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7258.     {
  7259.         if (!combatStandardAction("macy_ywing_bomb", self, target, params, "", ""))
  7260.         {
  7261.             return SCRIPT_OVERRIDE;
  7262.         }
  7263.        
  7264.         return SCRIPT_CONTINUE;
  7265.     }
  7266.    
  7267.    
  7268.     public int kav_tuken_killer(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7269.     {
  7270.         if (!combatStandardAction("kav_tuken_killer", self, target, params, "", ""))
  7271.         {
  7272.             return SCRIPT_OVERRIDE;
  7273.         }
  7274.        
  7275.         return SCRIPT_CONTINUE;
  7276.     }
  7277.    
  7278.    
  7279.     public int king_rend(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7280.     {
  7281.         if (!combatStandardAction("king_rend", self, target, params, "", ""))
  7282.         {
  7283.             return SCRIPT_OVERRIDE;
  7284.         }
  7285.        
  7286.         return SCRIPT_CONTINUE;
  7287.     }
  7288.    
  7289.    
  7290.     public int king_head_crack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7291.     {
  7292.         if (!combatStandardAction("king_head_crack", self, target, params, "", ""))
  7293.         {
  7294.             return SCRIPT_OVERRIDE;
  7295.         }
  7296.        
  7297.         return SCRIPT_CONTINUE;
  7298.     }
  7299.    
  7300.    
  7301.     public int king_sandstorm(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7302.     {
  7303.         if (!combatStandardAction("king_sandstorm", self, target, params, "", ""))
  7304.         {
  7305.             return SCRIPT_OVERRIDE;
  7306.         }
  7307.        
  7308.         return SCRIPT_CONTINUE;
  7309.     }
  7310.    
  7311.    
  7312.     public int axkva_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7313.     {
  7314.         if (!combatStandardAction("axkva_drain", self, target, params, "", ""))
  7315.         {
  7316.             return SCRIPT_OVERRIDE;
  7317.         }
  7318.        
  7319.         return SCRIPT_CONTINUE;
  7320.     }
  7321.    
  7322.    
  7323.     public int axkva_crystalize(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7324.     {
  7325.         obj_id[] hateList = getHateList(self);
  7326.         obj_id topHate = getHateTarget(self);
  7327.         obj_id target1 = null;
  7328.         obj_id target2 = null;
  7329.        
  7330.         Vector targets = new Vector();
  7331.         targets.setSize(0);
  7332.        
  7333.         if (hateList == null || hateList.length == 0)
  7334.         {
  7335.             return SCRIPT_CONTINUE;
  7336.         }
  7337.        
  7338.         for (int i=0; i<hateList.length; i++)
  7339.         {
  7340.             testAbortScript();
  7341.             if (hateList[i] != topHate && !buff.hasBuff(hateList[i], "axkva_crystalize"))
  7342.             {
  7343.                 targets.add(hateList[i]);
  7344.             }
  7345.         }
  7346.        
  7347.         if (targets == null || targets.size() == 0)
  7348.         {
  7349.             if (!buff.hasBuff(topHate, "axkva_crystalize"))
  7350.             {
  7351.                 target1 = topHate;
  7352.             }
  7353.         }
  7354.         else
  7355.         {
  7356.             target1 = ((obj_id)(targets.get(rand(0, targets.size() -1))));
  7357.             targets.remove(target1);
  7358.            
  7359.             if (targets.size() > 0)
  7360.             {
  7361.                 target2 = ((obj_id)(targets.get(rand(0, targets.size() -1))));
  7362.             }
  7363.         }
  7364.        
  7365.         if (isIdValid(target1))
  7366.         {
  7367.             utils.setScriptVar(target1, "axkva_min", self);
  7368.             buff.applyBuff(target1, self, "axkva_crystalize");
  7369.         }
  7370.        
  7371.         if (isIdValid(target2))
  7372.         {
  7373.             utils.setScriptVar(target2, "axkva_min", self);
  7374.             buff.applyBuff(target2, self, "axkva_crystalize");
  7375.         }
  7376.        
  7377.         return SCRIPT_CONTINUE;
  7378.     }
  7379.    
  7380.    
  7381.     public int stasis_recourse(obj_id self, dictionary params) throws InterruptedException
  7382.     {
  7383.         if (!buff.hasBuff(self, "stasis_recourse"))
  7384.         {
  7385.             buff.applyBuff(self, self, "stasis_recourse");
  7386.         }
  7387.        
  7388.         return SCRIPT_CONTINUE;
  7389.     }
  7390.    
  7391.    
  7392.     public int grenadier_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7393.     {
  7394.         location loc = getLocation(target);
  7395.         String targetLoc = ""+loc.x+" "+loc.y+" "+loc.z+" "+loc.cell+" "+loc.x+" "+loc.y+" "+loc.z;
  7396.        
  7397.         if (!combatStandardAction("grenadier_cold", self, target, targetLoc, "", ""))
  7398.         {
  7399.             return SCRIPT_OVERRIDE;
  7400.         }
  7401.        
  7402.         clearOneShotAction(self);
  7403.        
  7404.         return SCRIPT_CONTINUE;
  7405.     }
  7406.    
  7407.    
  7408.     public int grenadier_heat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7409.     {
  7410.        
  7411.         location loc = getLocation(target);
  7412.         String targetLoc = ""+loc.x+" "+loc.y+" "+loc.z+" "+loc.cell+" "+loc.x+" "+loc.y+" "+loc.z;
  7413.        
  7414.         if (!combatStandardAction("grenadier_heat", self, target, targetLoc, "", ""))
  7415.         {
  7416.             return SCRIPT_OVERRIDE;
  7417.         }
  7418.        
  7419.         clearOneShotAction(self);
  7420.        
  7421.         return SCRIPT_CONTINUE;
  7422.     }
  7423.    
  7424.    
  7425.     public int grenadier_acid(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7426.     {
  7427.         location loc = getLocation(target);
  7428.         String targetLoc = ""+loc.x+" "+loc.y+" "+loc.z+" "+loc.cell+" "+loc.x+" "+loc.y+" "+loc.z;
  7429.        
  7430.         if (!combatStandardAction("grenadier_acid", self, target, targetLoc, "", ""))
  7431.         {
  7432.             return SCRIPT_OVERRIDE;
  7433.         }
  7434.        
  7435.         clearOneShotAction(self);
  7436.        
  7437.         return SCRIPT_CONTINUE;
  7438.     }
  7439.    
  7440.    
  7441.     public int grenadier_kinetic(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7442.     {
  7443.         location loc = getLocation(target);
  7444.         String targetLoc = ""+loc.x+" "+loc.y+" "+loc.z+" "+loc.cell+" "+loc.x+" "+loc.y+" "+loc.z;
  7445.        
  7446.         if (!combatStandardAction("grenadier_kinetic", self, target, targetLoc, "", ""))
  7447.         {
  7448.             return SCRIPT_OVERRIDE;
  7449.         }
  7450.        
  7451.         clearOneShotAction(self);
  7452.        
  7453.         return SCRIPT_CONTINUE;
  7454.     }
  7455.    
  7456.    
  7457.     public void clearOneShotAction(obj_id self) throws InterruptedException
  7458.     {
  7459.         setObjVar(self, "ai.combat.oneShotAction", "non_attack");
  7460.     }
  7461.    
  7462.    
  7463.     public int krix_burn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7464.     {
  7465.         if (!combatStandardAction("krix_burn", self, target, params, "", ""))
  7466.         {
  7467.             return SCRIPT_OVERRIDE;
  7468.         }
  7469.        
  7470.         return SCRIPT_CONTINUE;
  7471.     }
  7472.    
  7473.    
  7474.     public int ito_nerve_gas(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7475.     {
  7476.         if (!combatStandardAction("ito_nerve_gas", self, target, params, "", ""))
  7477.         {
  7478.             return SCRIPT_OVERRIDE;
  7479.         }
  7480.        
  7481.         playClientEffectLoc(self, "appearance/pt_sd_ito_nerve_gas.prt", getLocation(self), 0);
  7482.        
  7483.         return SCRIPT_CONTINUE;
  7484.     }
  7485.    
  7486.    
  7487.     public int kenkirk_droid_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7488.     {
  7489.         location loc = getLocation(target);
  7490.        
  7491.         String strLoc = ""+ loc.x + " "+ loc.y + " "+ loc.z + " "+ loc.cell + " "+ loc.x + " "+ loc.y + " "+ loc.z;
  7492.        
  7493.         if (!combatStandardAction("kenkirk_droid_blast", self, target, strLoc, "", ""))
  7494.         {
  7495.             return SCRIPT_OVERRIDE;
  7496.         }
  7497.        
  7498.         playClientEffectLoc(target, "appearance/pt_sd_kenkirk_hallway_strike.prt", getLocation(target), 0f);
  7499.        
  7500.         return SCRIPT_CONTINUE;
  7501.     }
  7502.    
  7503.    
  7504.     public int sd_obliterate(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7505.     {
  7506.         if (!combatStandardAction("sd_obliterate", self, target, params, "", ""))
  7507.         {
  7508.             return SCRIPT_OVERRIDE;
  7509.         }
  7510.        
  7511.         return SCRIPT_CONTINUE;
  7512.     }
  7513.    
  7514.    
  7515.     public int krix_megaburn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7516.     {
  7517.         if (!combatStandardAction("krix_megaburn", self, target, params, "", ""))
  7518.         {
  7519.             return SCRIPT_OVERRIDE;
  7520.         }
  7521.        
  7522.         return SCRIPT_CONTINUE;
  7523.        
  7524.     }
  7525.    
  7526.    
  7527.     public int krix_megapatch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7528.     {
  7529.         if (!combatStandardAction("krix_megapatch", self, target, params, "", ""))
  7530.         {
  7531.             return SCRIPT_OVERRIDE;
  7532.         }
  7533.        
  7534.         return SCRIPT_CONTINUE;
  7535.        
  7536.     }
  7537.    
  7538.    
  7539.     public int vicious_swing(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7540.     {
  7541.         if (!combatStandardAction("vicious_swing", self, target, params, "", ""))
  7542.         {
  7543.             return SCRIPT_OVERRIDE;
  7544.         }
  7545.        
  7546.         return SCRIPT_CONTINUE;
  7547.        
  7548.     }
  7549.    
  7550.    
  7551.     public int sp_action_regen(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7552.     {
  7553.         if (!combatStandardAction("sp_action_regen", self, target, params, "", ""))
  7554.         {
  7555.             return SCRIPT_OVERRIDE;
  7556.         }
  7557.        
  7558.         return SCRIPT_CONTINUE;
  7559.     }
  7560.    
  7561.    
  7562.     public int sm_modify_pistol_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7563.     {
  7564.         obj_id module = utils.getStaticItemInInventory(self, "item_reward_modify_pistol_01_01");
  7565.        
  7566.         if (!isIdValid(module) || getCount(module) <= 0)
  7567.         {
  7568.             sendSystemMessage(self, new string_id("spam", "pistol_module_missing"));
  7569.             return SCRIPT_OVERRIDE;
  7570.         }
  7571.        
  7572.         if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3"))
  7573.         {
  7574.             sendSystemMessage(self, new string_id("spam", "pistol_buff_exists"));
  7575.             return SCRIPT_OVERRIDE;
  7576.         }
  7577.        
  7578.         if (!combatStandardAction("sm_modify_pistol_1", self, target, params, "", ""))
  7579.         {
  7580.             return SCRIPT_OVERRIDE;
  7581.         }
  7582.        
  7583.         doAnimationAction(self, "reload");
  7584.        
  7585.         decrementCount(module);
  7586.        
  7587.         return SCRIPT_CONTINUE;
  7588.        
  7589.     }
  7590.    
  7591.    
  7592.     public int sm_modify_pistol_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7593.     {
  7594.         obj_id module = utils.getStaticItemInInventory(self, "item_reward_modify_pistol_01_01");
  7595.        
  7596.         if (!isIdValid(module) || getCount(module) <= 0)
  7597.         {
  7598.             sendSystemMessage(self, new string_id("spam", "pistol_module_missing"));
  7599.             return SCRIPT_OVERRIDE;
  7600.         }
  7601.        
  7602.         if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3"))
  7603.         {
  7604.             sendSystemMessage(self, new string_id("spam", "pistol_buff_exists"));
  7605.             return SCRIPT_OVERRIDE;
  7606.         }
  7607.        
  7608.         if (!combatStandardAction("sm_modify_pistol_2", self, target, params, "", ""))
  7609.         {
  7610.             return SCRIPT_OVERRIDE;
  7611.         }
  7612.        
  7613.         doAnimationAction(self, "reload");
  7614.        
  7615.         decrementCount(module);
  7616.        
  7617.         return SCRIPT_CONTINUE;
  7618.        
  7619.     }
  7620.    
  7621.    
  7622.     public int sm_modify_pistol_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7623.     {
  7624.         obj_id module = utils.getStaticItemInInventory(self, "item_reward_modify_pistol_01_01");
  7625.        
  7626.         if (!isIdValid(module) || getCount(module) <= 0)
  7627.         {
  7628.             sendSystemMessage(self, new string_id("spam", "pistol_module_missing"));
  7629.             return SCRIPT_OVERRIDE;
  7630.         }
  7631.        
  7632.         if (buff.hasBuff(self, "sm_modify_pistol_1") || buff.hasBuff(self, "sm_modify_pistol_2") || buff.hasBuff(self, "sm_modify_pistol_3"))
  7633.         {
  7634.             sendSystemMessage(self, new string_id("spam", "pistol_buff_exists"));
  7635.             return SCRIPT_OVERRIDE;
  7636.         }
  7637.        
  7638.         if (!combatStandardAction("sm_modify_pistol_3", self, target, params, "", ""))
  7639.         {
  7640.             return SCRIPT_OVERRIDE;
  7641.         }
  7642.        
  7643.         doAnimationAction(self, "reload");
  7644.        
  7645.         decrementCount(module);
  7646.        
  7647.         return SCRIPT_CONTINUE;
  7648.        
  7649.     }
  7650.    
  7651.    
  7652.     public int kun_one_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7653.     {
  7654.         if (!combatStandardAction("kun_one_sacrifice", self, target, params, "", ""))
  7655.         {
  7656.             return SCRIPT_OVERRIDE;
  7657.         }
  7658.        
  7659.         return SCRIPT_CONTINUE;
  7660.     }
  7661.    
  7662.    
  7663.     public int kun_two_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7664.     {
  7665.         if (!combatStandardAction("kun_two_sacrifice", self, target, params, "", ""))
  7666.         {
  7667.             return SCRIPT_OVERRIDE;
  7668.         }
  7669.        
  7670.         return SCRIPT_CONTINUE;
  7671.     }
  7672.    
  7673.    
  7674.     public int kun_three_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7675.     {
  7676.         if (!combatStandardAction("kun_three_sacrifice", self, target, params, "", ""))
  7677.         {
  7678.             return SCRIPT_OVERRIDE;
  7679.         }
  7680.        
  7681.         return SCRIPT_CONTINUE;
  7682.     }
  7683.    
  7684.    
  7685.     public int kun_four_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7686.     {
  7687.         if (!combatStandardAction("kun_four_sacrifice", self, target, params, "", ""))
  7688.         {
  7689.             return SCRIPT_OVERRIDE;
  7690.         }
  7691.        
  7692.         return SCRIPT_CONTINUE;
  7693.     }
  7694.    
  7695.    
  7696.     public int kun_five_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7697.     {
  7698.         if (!combatStandardAction("kun_five_sacrifice", self, target, params, "", ""))
  7699.         {
  7700.             return SCRIPT_OVERRIDE;
  7701.         }
  7702.        
  7703.         return SCRIPT_CONTINUE;
  7704.     }
  7705.    
  7706.    
  7707.     public int kun_six_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7708.     {
  7709.         if (!combatStandardAction("kun_six_sacrifice", self, target, params, "", ""))
  7710.         {
  7711.             return SCRIPT_OVERRIDE;
  7712.         }
  7713.        
  7714.         return SCRIPT_CONTINUE;
  7715.     }
  7716.    
  7717.    
  7718.     public int kun_seven_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7719.     {
  7720.         if (!combatStandardAction("kun_seven_sacrifice", self, target, params, "", ""))
  7721.         {
  7722.             return SCRIPT_OVERRIDE;
  7723.         }
  7724.        
  7725.         return SCRIPT_CONTINUE;
  7726.     }
  7727.    
  7728.    
  7729.     public int kun_eight_sacrifice(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7730.     {
  7731.         if (!combatStandardAction("kun_eight_sacrifice", self, target, params, "", ""))
  7732.         {
  7733.             return SCRIPT_OVERRIDE;
  7734.         }
  7735.        
  7736.         return SCRIPT_CONTINUE;
  7737.     }
  7738.    
  7739.    
  7740.     public int open_cultist_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7741.     {
  7742.         if (!combatStandardAction("open_cultist_drain", self, target, params, "", ""))
  7743.         {
  7744.             return SCRIPT_OVERRIDE;
  7745.         }
  7746.        
  7747.         dictionary dict = new dictionary();
  7748.         dict.put("target", target);
  7749.         messageTo(self, "handle_drain_anim", dict, 0.0f, false);
  7750.        
  7751.         return SCRIPT_CONTINUE;
  7752.     }
  7753.    
  7754.    
  7755.     public int bm_siphon_master(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7756.     {
  7757.         if (!combatStandardAction("bm_siphon_master", self, target, params, "", "", true))
  7758.         {
  7759.             return SCRIPT_OVERRIDE;
  7760.         }
  7761.        
  7762.         return SCRIPT_CONTINUE;
  7763.     }
  7764.    
  7765.    
  7766.     public int minder_luresh_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7767.     {
  7768.         if (!combatStandardAction("minder_luresh_drain", self, target, params, "", ""))
  7769.         {
  7770.             return SCRIPT_OVERRIDE;
  7771.         }
  7772.        
  7773.         return SCRIPT_CONTINUE;
  7774.     }
  7775.    
  7776.    
  7777.     public int closed_fist_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7778.     {
  7779.         if (!combatStandardAction("closed_fist_cleave", self, target, params, "", ""))
  7780.         {
  7781.             return SCRIPT_OVERRIDE;
  7782.         }
  7783.        
  7784.         return SCRIPT_CONTINUE;
  7785.     }
  7786.    
  7787.    
  7788.     public int closed_fist_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7789.     {
  7790.         if (!combatStandardAction("closed_fist_toss", self, target, params, "", ""))
  7791.         {
  7792.             return SCRIPT_OVERRIDE;
  7793.         }
  7794.        
  7795.         return SCRIPT_CONTINUE;
  7796.     }
  7797.    
  7798.    
  7799.     public int closed_fist_burn(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7800.     {
  7801.         if (!combatStandardAction("closed_fist_burn", self, target, params, "", ""))
  7802.         {
  7803.             return SCRIPT_OVERRIDE;
  7804.         }
  7805.        
  7806.         return SCRIPT_CONTINUE;
  7807.     }
  7808.    
  7809.    
  7810.     public int closed_fist_burn_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7811.     {
  7812.         if (!combatStandardAction("closed_fist_burn_damage", self, target, params, "", ""))
  7813.         {
  7814.             return SCRIPT_OVERRIDE;
  7815.         }
  7816.        
  7817.         return SCRIPT_CONTINUE;
  7818.     }
  7819.    
  7820.    
  7821.     public int lasher_increase_pain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7822.     {
  7823.         if (!combatStandardAction("lasher_increase_pain", self, target, params, "", ""))
  7824.         {
  7825.             return SCRIPT_OVERRIDE;
  7826.         }
  7827.        
  7828.         return SCRIPT_CONTINUE;
  7829.     }
  7830.    
  7831.    
  7832.     public int subduer_decrease_damage(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7833.     {
  7834.         if (!combatStandardAction("subduer_decrease_damage", self, target, params, "", ""))
  7835.         {
  7836.             return SCRIPT_OVERRIDE;
  7837.         }
  7838.        
  7839.         return SCRIPT_CONTINUE;
  7840.     }
  7841.    
  7842.    
  7843.     public int lasher_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7844.     {
  7845.         if (!combatStandardAction("lasher_strike", self, target, params, "", ""))
  7846.         {
  7847.             return SCRIPT_OVERRIDE;
  7848.         }
  7849.        
  7850.         return SCRIPT_CONTINUE;
  7851.     }
  7852.    
  7853.    
  7854.     public int subduer_strike(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7855.     {
  7856.         if (!combatStandardAction("subduer_strike", self, target, params, "", ""))
  7857.         {
  7858.             return SCRIPT_OVERRIDE;
  7859.         }
  7860.        
  7861.         return SCRIPT_CONTINUE;
  7862.     }
  7863.    
  7864.    
  7865.     public int tomb_guard_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7866.     {
  7867.         if (!combatStandardAction("tomb_guard_cleave", self, target, params, "", ""))
  7868.         {
  7869.             return SCRIPT_OVERRIDE;
  7870.         }
  7871.        
  7872.         return SCRIPT_CONTINUE;
  7873.     }
  7874.    
  7875.    
  7876.     public int tomb_guard_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7877.     {
  7878.         if (!combatStandardAction("tomb_guard_toss", self, target, params, "", ""))
  7879.         {
  7880.             return SCRIPT_OVERRIDE;
  7881.         }
  7882.        
  7883.         return SCRIPT_CONTINUE;
  7884.     }
  7885.    
  7886.    
  7887.     public int caretaker_blast(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7888.     {
  7889.         if (!combatStandardAction("caretaker_blast", self, target, params, "", ""))
  7890.         {
  7891.             return SCRIPT_OVERRIDE;
  7892.         }
  7893.        
  7894.         return SCRIPT_CONTINUE;
  7895.     }
  7896.    
  7897.    
  7898.     public int caretaker_drain(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7899.     {
  7900.         if (!combatStandardAction("caretaker_drain", self, target, params, "", ""))
  7901.         {
  7902.             return SCRIPT_OVERRIDE;
  7903.         }
  7904.        
  7905.         return SCRIPT_CONTINUE;
  7906.     }
  7907.    
  7908.    
  7909.     public int caretaker_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7910.     {
  7911.         if (!combatStandardAction("caretaker_shield", self, target, params, "", ""))
  7912.         {
  7913.             return SCRIPT_OVERRIDE;
  7914.         }
  7915.        
  7916.         return SCRIPT_CONTINUE;
  7917.     }
  7918.    
  7919.    
  7920.     public int caretaker_shield_reflect(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7921.     {
  7922.         if (!combatStandardAction("caretaker_shield_reflect", self, target, params, "", ""))
  7923.         {
  7924.             return SCRIPT_OVERRIDE;
  7925.         }
  7926.        
  7927.         return SCRIPT_CONTINUE;
  7928.     }
  7929.    
  7930.    
  7931.     public int caretaker_vapors(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7932.     {
  7933.         if (!combatStandardAction("caretaker_vapors", self, target, params, "", ""))
  7934.         {
  7935.             return SCRIPT_OVERRIDE;
  7936.         }
  7937.        
  7938.         return SCRIPT_CONTINUE;
  7939.     }
  7940.    
  7941.    
  7942.     public int ct_guard_buff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7943.     {
  7944.         if (!combatStandardAction("ct_guard_buff", self, target, params, "", ""))
  7945.         {
  7946.             return SCRIPT_OVERRIDE;
  7947.         }
  7948.        
  7949.         return SCRIPT_CONTINUE;
  7950.     }
  7951.    
  7952.    
  7953.     public int kun_order_set(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7954.     {
  7955.         if (!combatStandardAction("kun_order_set", self, target, params, "", ""))
  7956.         {
  7957.             return SCRIPT_OVERRIDE;
  7958.         }
  7959.        
  7960.         return SCRIPT_CONTINUE;
  7961.     }
  7962.    
  7963.    
  7964.     public int kun_chaos_set(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7965.     {
  7966.         if (!combatStandardAction("kun_chaos_set", self, target, params, "", ""))
  7967.         {
  7968.             return SCRIPT_OVERRIDE;
  7969.         }
  7970.        
  7971.         return SCRIPT_CONTINUE;
  7972.     }
  7973.    
  7974.    
  7975.     public int kun_order_discipline(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7976.     {
  7977.         if (!combatStandardAction("kun_order_discipline", self, target, params, "", ""))
  7978.         {
  7979.             return SCRIPT_OVERRIDE;
  7980.         }
  7981.        
  7982.         return SCRIPT_CONTINUE;
  7983.     }
  7984.    
  7985.    
  7986.     public int kun_chaos_discord(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7987.     {
  7988.         if (!combatStandardAction("kun_chaos_discord", self, target, params, "", ""))
  7989.         {
  7990.             return SCRIPT_OVERRIDE;
  7991.         }
  7992.        
  7993.         return SCRIPT_CONTINUE;
  7994.     }
  7995.    
  7996.    
  7997.     public int executioner_swipe(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  7998.     {
  7999.         if (!combatStandardAction("executioner_swipe", self, target, params, "", ""))
  8000.         {
  8001.             return SCRIPT_OVERRIDE;
  8002.         }
  8003.        
  8004.         return SCRIPT_CONTINUE;
  8005.     }
  8006.    
  8007.    
  8008.     public int kun_wrath_cold(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8009.     {
  8010.         if (!combatStandardAction("kun_wrath_cold", self, target, params, "", ""))
  8011.         {
  8012.             return SCRIPT_OVERRIDE;
  8013.         }
  8014.        
  8015.         return SCRIPT_CONTINUE;
  8016.     }
  8017.    
  8018.    
  8019.     public int kun_wrath_heat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8020.     {
  8021.         if (!combatStandardAction("kun_wrath_heat", self, target, params, "", ""))
  8022.         {
  8023.             return SCRIPT_OVERRIDE;
  8024.         }
  8025.        
  8026.         return SCRIPT_CONTINUE;
  8027.     }
  8028.    
  8029.    
  8030.     public int kun_wrath_electrical(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8031.     {
  8032.         if (!combatStandardAction("kun_wrath_electrical", self, target, params, "", ""))
  8033.         {
  8034.             return SCRIPT_OVERRIDE;
  8035.         }
  8036.        
  8037.         return SCRIPT_CONTINUE;
  8038.     }
  8039.    
  8040.    
  8041.     public int kun_wrath_acid(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8042.     {
  8043.         if (!combatStandardAction("kun_wrath_acid", self, target, params, "", ""))
  8044.         {
  8045.             return SCRIPT_OVERRIDE;
  8046.         }
  8047.        
  8048.         return SCRIPT_CONTINUE;
  8049.     }
  8050.    
  8051.    
  8052.     public int kun_wrath_ward(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8053.     {
  8054.         if (!combatStandardAction("kun_wrath_ward", self, target, params, "", ""))
  8055.         {
  8056.             return SCRIPT_OVERRIDE;
  8057.         }
  8058.        
  8059.         return SCRIPT_CONTINUE;
  8060.     }
  8061.    
  8062.    
  8063.     public int kun_veng_slam(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8064.     {
  8065.         if (!combatStandardAction("kun_veng_slam", self, target, params, "", ""))
  8066.         {
  8067.             return SCRIPT_OVERRIDE;
  8068.         }
  8069.        
  8070.         return SCRIPT_CONTINUE;
  8071.     }
  8072.    
  8073.    
  8074.     public int kun_veng_wave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8075.     {
  8076.         if (!combatStandardAction("kun_veng_wave", self, target, params, "", ""))
  8077.         {
  8078.             return SCRIPT_OVERRIDE;
  8079.         }
  8080.        
  8081.         return SCRIPT_CONTINUE;
  8082.     }
  8083.    
  8084.    
  8085.     public int kun_open_coil(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8086.     {
  8087.         if (!combatStandardAction("kun_open_coil", self, target, params, "", ""))
  8088.         {
  8089.             return SCRIPT_OVERRIDE;
  8090.         }
  8091.        
  8092.         return SCRIPT_CONTINUE;
  8093.     }
  8094.    
  8095.    
  8096.     public int kun_word_coil(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8097.     {
  8098.         if (!combatStandardAction("kun_word_coil", self, target, params, "", ""))
  8099.         {
  8100.             return SCRIPT_OVERRIDE;
  8101.         }
  8102.        
  8103.         return SCRIPT_CONTINUE;
  8104.     }
  8105.    
  8106.    
  8107.     public int kun_word_flurry(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8108.     {
  8109.         if (!combatStandardAction("kun_word_flurry", self, target, params, "", ""))
  8110.         {
  8111.             return SCRIPT_OVERRIDE;
  8112.         }
  8113.        
  8114.         return SCRIPT_CONTINUE;
  8115.        
  8116.     }
  8117.    
  8118.    
  8119.     public int kun_word_shaken(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8120.     {
  8121.         if (!combatStandardAction("kun_word_shaken", self, target, params, "", ""))
  8122.         {
  8123.             return SCRIPT_OVERRIDE;
  8124.         }
  8125.        
  8126.         return SCRIPT_CONTINUE;
  8127.        
  8128.     }
  8129.    
  8130.    
  8131.     public int kun_sword_multi(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8132.     {
  8133.         String[] actions =
  8134.         {
  8135.             "kun_word_flurry",
  8136.             "kun_sword_break",
  8137.             "kun_sword_cleave",
  8138.             "kun_sword_defensive"
  8139.         };
  8140.        
  8141.         queueCommand(self, getStringCrc(actions[rand(0, actions.length - 1)].toLowerCase()), getHateTarget(self), "", COMMAND_PRIORITY_DEFAULT);
  8142.        
  8143.         return SCRIPT_CONTINUE;
  8144.     }
  8145.    
  8146.    
  8147.     public int kun_sword_break(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8148.     {
  8149.         if (!combatStandardAction("kun_sword_break", self, target, params, "", ""))
  8150.         {
  8151.             return SCRIPT_OVERRIDE;
  8152.         }
  8153.        
  8154.         return SCRIPT_CONTINUE;
  8155.        
  8156.     }
  8157.    
  8158.    
  8159.     public int kun_sword_cleave(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8160.     {
  8161.         if (!combatStandardAction("kun_sword_cleave", self, target, params, "", ""))
  8162.         {
  8163.             return SCRIPT_OVERRIDE;
  8164.         }
  8165.        
  8166.         return SCRIPT_CONTINUE;
  8167.     }
  8168.    
  8169.    
  8170.     public int kun_sword_defensive(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8171.     {
  8172.         if (!combatStandardAction("kun_sword_defensive", self, target, params, "", ""))
  8173.         {
  8174.             return SCRIPT_OVERRIDE;
  8175.         }
  8176.        
  8177.         return SCRIPT_CONTINUE;
  8178.     }
  8179.    
  8180.    
  8181.     public int dire_root_recourse(obj_id self, dictionary params) throws InterruptedException
  8182.     {
  8183.         if (!buff.hasBuff(self, "dire_root_recourse"))
  8184.         {
  8185.             buff.applyBuff(self, self, "dire_root_recourse");
  8186.         }
  8187.        
  8188.         return SCRIPT_CONTINUE;
  8189.     }
  8190.    
  8191.    
  8192.     public int dire_snare_recourse(obj_id self, dictionary params) throws InterruptedException
  8193.     {
  8194.         if (!buff.hasBuff(self, "dire_snare_recourse"))
  8195.         {
  8196.             buff.applyBuff(self, self, "dire_snare_recourse");
  8197.         }
  8198.        
  8199.         return SCRIPT_CONTINUE;
  8200.     }
  8201.    
  8202.    
  8203.     public int bountycheck(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8204.     {
  8205.         obj_id originalTarget = target;
  8206.         if (bounty_hunter.canCheckForBounty(self, target))
  8207.         {
  8208.             doAnimationAction(self, "anims.PLAYER_DRAW_DATAPAD");
  8209.            
  8210.             if (bounty_hunter.checkForPresenceOfBounty(self, target))
  8211.             {
  8212.                 location spawnLoc = getLocation(target);
  8213.                 setHealth(target, -5000);
  8214.                 trial.cleanupObject(target);
  8215.                 bounty_hunter.spawnFugitive(self, spawnLoc);
  8216.             }
  8217.             else
  8218.             {
  8219.                 utils.setScriptVar(target,"bountyCheck",self);
  8220.                 return SCRIPT_OVERRIDE;
  8221.             }
  8222.         }
  8223.         else
  8224.         {
  8225.             return SCRIPT_OVERRIDE;
  8226.         }
  8227.        
  8228.         if (isGod(self))
  8229.         {
  8230.             return SCRIPT_OVERRIDE;
  8231.         }
  8232.        
  8233.         if (!exists(originalTarget))
  8234.         {
  8235.             return SCRIPT_CONTINUE;
  8236.         }
  8237.         return SCRIPT_OVERRIDE;
  8238.     }
  8239.    
  8240.    
  8241.     public int fs_drain_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8242.     {
  8243.         if (!buff.isInFocus(self))
  8244.         {
  8245.             sendSystemMessage(self, new string_id("spam", "fs_command_no_focus"));
  8246.             return SCRIPT_OVERRIDE;
  8247.         }
  8248.        
  8249.         if (!combatStandardAction("fs_drain_1", self, target, params, "", ""))
  8250.         {
  8251.             return SCRIPT_OVERRIDE;
  8252.         }
  8253.        
  8254.         return SCRIPT_CONTINUE;
  8255.     }
  8256.    
  8257.    
  8258.     public int fs_drain_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8259.     {
  8260.         if (!buff.isInFocus(self))
  8261.         {
  8262.             sendSystemMessage(self, new string_id("spam", "fs_command_no_focus"));
  8263.             return SCRIPT_OVERRIDE;
  8264.         }
  8265.        
  8266.         if (!combatStandardAction("fs_drain_2", self, target, params, "", ""))
  8267.         {
  8268.             return SCRIPT_OVERRIDE;
  8269.         }
  8270.        
  8271.         return SCRIPT_CONTINUE;
  8272.     }
  8273.    
  8274.    
  8275.     public int fs_drain_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8276.     {
  8277.         if (!buff.isInFocus(self))
  8278.         {
  8279.             sendSystemMessage(self, new string_id("spam", "fs_command_no_focus"));
  8280.             return SCRIPT_OVERRIDE;
  8281.         }
  8282.        
  8283.         if (!combatStandardAction("fs_drain_3", self, target, params, "", ""))
  8284.         {
  8285.             return SCRIPT_OVERRIDE;
  8286.         }
  8287.        
  8288.         return SCRIPT_CONTINUE;
  8289.     }
  8290.    
  8291.    
  8292.     public int fs_drain_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8293.     {
  8294.         if (!buff.isInFocus(self))
  8295.         {
  8296.             sendSystemMessage(self, new string_id("spam", "fs_command_no_focus"));
  8297.             return SCRIPT_OVERRIDE;
  8298.         }
  8299.        
  8300.         if (!combatStandardAction("fs_drain_4", self, target, params, "", ""))
  8301.         {
  8302.             return SCRIPT_OVERRIDE;
  8303.         }
  8304.        
  8305.         return SCRIPT_CONTINUE;
  8306.     }
  8307.    
  8308.    
  8309.     public int fs_drain_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8310.     {
  8311.         if (!buff.isInFocus(self))
  8312.         {
  8313.             sendSystemMessage(self, new string_id("spam", "fs_command_no_focus"));
  8314.             return SCRIPT_OVERRIDE;
  8315.         }
  8316.        
  8317.         if (!combatStandardAction("fs_drain_5", self, target, params, "", ""))
  8318.         {
  8319.             return SCRIPT_OVERRIDE;
  8320.         }
  8321.        
  8322.         return SCRIPT_CONTINUE;
  8323.     }
  8324.    
  8325.    
  8326.     public int col_jedi_statue_light_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8327.     {
  8328.         if (!combatStandardAction("col_jedi_statue_light_debuff", self, target, params, "", ""))
  8329.         {
  8330.             return SCRIPT_OVERRIDE;
  8331.         }
  8332.        
  8333.         return SCRIPT_CONTINUE;
  8334.     }
  8335.    
  8336.    
  8337.     public int col_jedi_statue_dark_debuff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8338.     {
  8339.         if (!combatStandardAction("col_jedi_statue_dark_debuff", self, target, params, "", ""))
  8340.         {
  8341.             return SCRIPT_OVERRIDE;
  8342.         }
  8343.        
  8344.         return SCRIPT_CONTINUE;
  8345.     }
  8346.    
  8347.    
  8348.     public int co_hw_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8349.     {
  8350.         obj_id weapon = getCurrentWeapon(self);
  8351.         String finalAttackName = heavyweapons.getHeavyWeaponDotName(self, weapon, true);
  8352.        
  8353.         if (finalAttackName == null || finalAttackName.equals(""))
  8354.         {
  8355.             return SCRIPT_OVERRIDE;
  8356.         }
  8357.        
  8358.         if (!combatStandardAction(finalAttackName, self, target, params, "", ""))
  8359.         {
  8360.             return SCRIPT_OVERRIDE;
  8361.         }
  8362.        
  8363.         return SCRIPT_CONTINUE;
  8364.     }
  8365.    
  8366.    
  8367.     public int co_ae_hw_dot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8368.     {
  8369.         obj_id weapon = getCurrentWeapon(self);
  8370.         String finalAttackName = heavyweapons.getHeavyWeaponDotName(self, weapon, false);
  8371.        
  8372.         if (finalAttackName == null || finalAttackName.equals(""))
  8373.         {
  8374.             return SCRIPT_OVERRIDE;
  8375.         }
  8376.        
  8377.         if (!combatStandardAction(finalAttackName, self, target, params, "", ""))
  8378.         {
  8379.             return SCRIPT_OVERRIDE;
  8380.         }
  8381.        
  8382.         return SCRIPT_CONTINUE;
  8383.     }
  8384.    
  8385.    
  8386.     public int co_hw_dm_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8387.     {
  8388.         if (!combatStandardAction("co_hw_dm_1", self, target, params, "", ""))
  8389.         {
  8390.             return SCRIPT_OVERRIDE;
  8391.         }
  8392.        
  8393.         return SCRIPT_CONTINUE;
  8394.     }
  8395.    
  8396.    
  8397.     public int co_hw_dm_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8398.     {
  8399.         if (!combatStandardAction("co_hw_dm_2", self, target, params, "", ""))
  8400.         {
  8401.             return SCRIPT_OVERRIDE;
  8402.         }
  8403.        
  8404.         return SCRIPT_CONTINUE;
  8405.     }
  8406.    
  8407.    
  8408.     public int co_hw_dm_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8409.     {
  8410.         if (!combatStandardAction("co_hw_dm_3", self, target, params, "", ""))
  8411.         {
  8412.             return SCRIPT_OVERRIDE;
  8413.         }
  8414.        
  8415.         return SCRIPT_CONTINUE;
  8416.     }
  8417.    
  8418.    
  8419.     public int co_hw_dm_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8420.     {
  8421.         if (!combatStandardAction("co_hw_dm_4", self, target, params, "", ""))
  8422.         {
  8423.             return SCRIPT_OVERRIDE;
  8424.         }
  8425.        
  8426.         return SCRIPT_CONTINUE;
  8427.     }
  8428.    
  8429.    
  8430.     public int co_hw_dm_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8431.     {
  8432.         if (!combatStandardAction("co_hw_dm_5", self, target, params, "", ""))
  8433.         {
  8434.             return SCRIPT_OVERRIDE;
  8435.         }
  8436.        
  8437.         return SCRIPT_CONTINUE;
  8438.     }
  8439.    
  8440.    
  8441.     public int co_hw_dm_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8442.     {
  8443.         if (!combatStandardAction("co_hw_dm_6", self, target, params, "", ""))
  8444.         {
  8445.             return SCRIPT_OVERRIDE;
  8446.         }
  8447.        
  8448.         return SCRIPT_CONTINUE;
  8449.     }
  8450.    
  8451.    
  8452.     public int co_hw_dm_crit_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8453.     {
  8454.         if (!combatStandardAction("co_hw_dm_crit_1", self, target, params, "", ""))
  8455.         {
  8456.             return SCRIPT_OVERRIDE;
  8457.         }
  8458.        
  8459.         return SCRIPT_CONTINUE;
  8460.     }
  8461.    
  8462.    
  8463.     public int co_hw_dm_crit_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8464.     {
  8465.         if (!combatStandardAction("co_hw_dm_crit_2", self, target, params, "", ""))
  8466.         {
  8467.             return SCRIPT_OVERRIDE;
  8468.         }
  8469.        
  8470.         return SCRIPT_CONTINUE;
  8471.     }
  8472.    
  8473.    
  8474.     public int co_hw_dm_crit_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8475.     {
  8476.         if (!combatStandardAction("co_hw_dm_crit_3", self, target, params, "", ""))
  8477.         {
  8478.             return SCRIPT_OVERRIDE;
  8479.         }
  8480.        
  8481.         return SCRIPT_CONTINUE;
  8482.     }
  8483.    
  8484.    
  8485.     public int co_hw_dm_crit_4(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8486.     {
  8487.         if (!combatStandardAction("co_hw_dm_crit_4", self, target, params, "", ""))
  8488.         {
  8489.             return SCRIPT_OVERRIDE;
  8490.         }
  8491.        
  8492.         return SCRIPT_CONTINUE;
  8493.     }
  8494.    
  8495.    
  8496.     public int co_hw_dm_crit_5(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8497.     {
  8498.         if (!combatStandardAction("co_hw_dm_crit_5", self, target, params, "", ""))
  8499.         {
  8500.             return SCRIPT_OVERRIDE;
  8501.         }
  8502.        
  8503.         return SCRIPT_CONTINUE;
  8504.     }
  8505.    
  8506.    
  8507.     public int co_hw_dm_crit_6(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8508.     {
  8509.         if (!combatStandardAction("co_hw_dm_crit_6", self, target, params, "", ""))
  8510.         {
  8511.             return SCRIPT_OVERRIDE;
  8512.         }
  8513.        
  8514.         return SCRIPT_CONTINUE;
  8515.     }
  8516.    
  8517.    
  8518.     public int co_cluster_bomb(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8519.     {
  8520.         if (!combatStandardAction("co_cluster_bomb", self, target, params, "", ""))
  8521.         {
  8522.             return SCRIPT_OVERRIDE;
  8523.         }
  8524.        
  8525.         location centerLoc = getLocation(target);
  8526.         int extraBomb = getEnhancedSkillStatisticModifierUncapped(self, "expertise_co_cluster_bomblet");
  8527.        
  8528.         int bombCount = 4 + extraBomb;
  8529.        
  8530.         for (int i=0; i<bombCount; i++)
  8531.         {
  8532.             testAbortScript();
  8533.             float randx = rand(4.0f, 6.0f);
  8534.             float randz = rand(4.0f, 6.0f);
  8535.             randx = rand(0,1) == 1 ? randx * - 1 : randx;
  8536.             randz = rand(0,1) == 1 ? randz * - 1 : randz;
  8537.            
  8538.             float x = centerLoc.x + randx;
  8539.             float z = centerLoc.z + randz;
  8540.            
  8541.             String targetLoc = x+" "+centerLoc.y+" "+z+" "+centerLoc.cell+" "+x+" "+centerLoc.y+" "+z;
  8542.             queueCommand(self, (-1949154824), target, targetLoc, COMMAND_PRIORITY_IMMEDIATE);
  8543.         }
  8544.        
  8545.         return SCRIPT_CONTINUE;
  8546.     }
  8547.    
  8548.    
  8549.     public int co_cluster_bomblet(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8550.     {
  8551.         if (!combatStandardAction("co_cluster_bomblet", self, target, params, "", ""))
  8552.         {
  8553.             return SCRIPT_OVERRIDE;
  8554.         }
  8555.        
  8556.         return SCRIPT_CONTINUE;
  8557.     }
  8558.    
  8559.    
  8560.     public int co_killing_spree(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8561.     {
  8562.         if (!combatStandardAction("co_killing_spree", self, target, params, "", ""))
  8563.         {
  8564.            
  8565.             return SCRIPT_OVERRIDE;
  8566.         }
  8567.        
  8568.         return SCRIPT_CONTINUE;
  8569.     }
  8570.    
  8571.    
  8572.     public int co_empowered_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8573.     {
  8574.         if (!combatStandardAction("co_empowered_attack", self, target, params, "", ""))
  8575.         {
  8576.             return SCRIPT_OVERRIDE;
  8577.         }
  8578.        
  8579.         return SCRIPT_CONTINUE;
  8580.     }
  8581.    
  8582.    
  8583.     public int co_first_aid_training(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8584.     {
  8585.         if (!combatStandardAction("co_first_aid_training", self, target, params, "", ""))
  8586.         {
  8587.             return SCRIPT_OVERRIDE;
  8588.         }
  8589.        
  8590.         return SCRIPT_CONTINUE;
  8591.     }
  8592.    
  8593.    
  8594.     public int co_double_time(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8595.     {
  8596.         if (!combatStandardAction("co_double_time", self, target, params, "", ""))
  8597.         {
  8598.             return SCRIPT_OVERRIDE;
  8599.         }
  8600.        
  8601.         if (buff.hasBuff(self, "co_position_secured"))
  8602.         {
  8603.             buff.removeBuff(self, "co_position_secured");
  8604.         }
  8605.        
  8606.         return SCRIPT_CONTINUE;
  8607.     }
  8608.    
  8609.    
  8610.     public int co_killing_spree_attack(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8611.     {
  8612.         if (!combatStandardAction("co_killing_spree_attack", self, target, params, "", ""))
  8613.         {
  8614.             return SCRIPT_OVERRIDE;
  8615.         }
  8616.        
  8617.         return SCRIPT_CONTINUE;
  8618.     }
  8619.    
  8620.    
  8621.     public int hoth_speeder_bolt(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8622.     {
  8623.         if (!vehicle.isRidingVehicle(self))
  8624.         {
  8625.             removeDefaultAttackOverride(self);
  8626.             return SCRIPT_CONTINUE;
  8627.         }
  8628.        
  8629.         obj_id speeder = getMountId(self);
  8630.         if (utils.getIntScriptVar(speeder, "airborne") != 1)
  8631.         {
  8632.             return SCRIPT_CONTINUE;
  8633.         }
  8634.        
  8635.         float height = vehicle.getHoverHeight(speeder);
  8636.         location farTarget = utils.findLocInFrontOfTarget(speeder, height * 25.0f);
  8637.         obj_id[] allTar = getObjectsInCone(speeder, farTarget, height * 25.0f, 2.0f);
  8638.        
  8639.         Vector validTargets = new Vector();
  8640.         validTargets.setSize(0);
  8641.        
  8642.         if (allTar == null || allTar.length == 0)
  8643.         {
  8644.             createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle", farTarget, 200.0f, 1.0f, false, 0,0,0,0);
  8645.             createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle2", farTarget, 200.0f, 1.0f, false, 0,0,0,0);
  8646.             play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd");
  8647.            
  8648.             return SCRIPT_CONTINUE;
  8649.         }
  8650.         for (int i=0; i<allTar.length; i++)
  8651.         {
  8652.             testAbortScript();
  8653.            
  8654.             if (allTar[i] == self || allTar[i] == speeder)
  8655.             {
  8656.                 continue;
  8657.             }
  8658.            
  8659.             if (!pvpCanAttack(self, allTar[i]))
  8660.             {
  8661.                 continue;
  8662.             }
  8663.             if (isDead(allTar[i]))
  8664.             {
  8665.                 continue;
  8666.             }
  8667.            
  8668.             validTargets.add(allTar[i]);
  8669.         }
  8670.        
  8671.         if (validTargets == null || validTargets.size() == 0)
  8672.         {
  8673.             createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle", farTarget, 200.0f, 1.0f, false, 0,0,0,0);
  8674.             createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle2", farTarget, 200.0f, 1.0f, false, 0,0,0,0);
  8675.             play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd");
  8676.            
  8677.             return SCRIPT_CONTINUE;
  8678.         }
  8679.        
  8680.         float minRange = height * 3.0f;
  8681.         for (int i=0; i<validTargets.size(); i++)
  8682.         {
  8683.             testAbortScript();
  8684.             if (ai_lib.isVehicle(((obj_id)(validTargets.get(i)))) && getDistance(speeder, target) > minRange)
  8685.             {
  8686.                 target = ((obj_id)(validTargets.get(i)));
  8687.                 break;
  8688.             }
  8689.         }
  8690.        
  8691.         if (!isIdValid(target))
  8692.         {
  8693.             target = ((obj_id)(validTargets.get(rand(0, validTargets.size() - 1))));
  8694.         }
  8695.        
  8696.         if (!isIdValid(target) || !exists(target))
  8697.         {
  8698.             createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle", farTarget, 200.0f, 1.0f, false, 0,0,0,0);
  8699.             createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", speeder, "muzzle2", farTarget, 200.0f, 1.0f, false, 0,0,0,0);
  8700.             play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd");
  8701.            
  8702.             return SCRIPT_CONTINUE;
  8703.         }
  8704.        
  8705.         queueCommand(self, (-1310636694), target, "", COMMAND_PRIORITY_IMMEDIATE);
  8706.        
  8707.         float travelDistance = getDistance(target, self);
  8708.        
  8709.         createClientProjectileObjectToObject(self, "object/weapon/ranged/turret/shared_turret_energy.iff", getMountId(self), "muzzle", target, "", 200.0f, 1.0f, false, 0, 0, 0, 0);
  8710.         createClientProjectileObjectToObject(self, "object/weapon/ranged/turret/shared_turret_energy.iff", getMountId(self), "muzzle2", target, "", 200.0f, 1.0f, false, 0, 0, 0, 0);
  8711.         play2dNonLoopingSound(self, "sound/hoth_snowspeeder_blaster_fire_01.snd");
  8712.        
  8713.         return SCRIPT_CONTINUE;
  8714.     }
  8715.    
  8716.    
  8717.     public int hoth_speeder_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8718.     {
  8719.         if (!combatStandardAction("hoth_speeder_shoot", self, target, params, "", ""))
  8720.         {
  8721.             return SCRIPT_OVERRIDE;
  8722.         }
  8723.        
  8724.         return SCRIPT_CONTINUE;
  8725.     }
  8726.    
  8727.    
  8728.     public int hoth_speeder_up(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8729.     {
  8730.         if (!vehicle.isRidingVehicle(self))
  8731.         {
  8732.             return SCRIPT_OVERRIDE;
  8733.         }
  8734.        
  8735.         obj_id mount = getMountId(self);
  8736.         float height = vehicle.getHoverHeight(mount);
  8737.         int active = utils.getIntScriptVar(mount, "airborne");
  8738.        
  8739.         if (active == 0)
  8740.         {
  8741.             return SCRIPT_OVERRIDE;
  8742.         }
  8743.        
  8744.         if (height > 12.0f)
  8745.         {
  8746.             return SCRIPT_OVERRIDE;
  8747.         }
  8748.        
  8749.         height = height + 2.0f;
  8750.         height = height > 16.0f ? 16.0f : height;
  8751.        
  8752.         vehicle.setDampingHeight(mount, 100.0f);
  8753.         vehicle.setGlide(mount, 100.0f);
  8754.        
  8755.         vehicle.setHoverHeight(mount, height);
  8756.        
  8757.         messageTo(self, "hoth_speeder_up_reset", null, 1.0f, false);
  8758.         return SCRIPT_CONTINUE;
  8759.     }
  8760.    
  8761.    
  8762.     public int hoth_speeder_up_reset(obj_id self, dictionary params) throws InterruptedException
  8763.     {
  8764.         obj_id mount = getMountId(self);
  8765.         vehicle.setDampingHeight(mount, 0.1f);
  8766.         vehicle.setGlide(mount, 2.5f);
  8767.         return SCRIPT_CONTINUE;
  8768.     }
  8769.    
  8770.    
  8771.     public int hoth_speeder_down(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8772.     {
  8773.         if (!vehicle.isRidingVehicle(self))
  8774.         {
  8775.             return SCRIPT_OVERRIDE;
  8776.         }
  8777.        
  8778.         obj_id mount = getMountId(self);
  8779.         float height = vehicle.getHoverHeight(mount);
  8780.        
  8781.         int active = utils.getIntScriptVar(mount, "airborne");
  8782.        
  8783.         if (active == 0)
  8784.         {
  8785.             return SCRIPT_OVERRIDE;
  8786.         }
  8787.        
  8788.         if (height < 1.0f)
  8789.         {
  8790.             return SCRIPT_OVERRIDE;
  8791.         }
  8792.        
  8793.         height = height - 2.0f;
  8794.         height = height < 5.0f ? 5.0f : height;
  8795.        
  8796.         vehicle.setDampingHeight(mount, 100.0f);
  8797.         vehicle.setGlide(mount, 100.0f);
  8798.        
  8799.         vehicle.setHoverHeight(mount, height);
  8800.        
  8801.         messageTo(self, "hoth_speeder_down_reset", null, 1.0f, false);
  8802.         return SCRIPT_CONTINUE;
  8803.     }
  8804.    
  8805.    
  8806.     public int hoth_speeder_down_reset(obj_id self, dictionary params) throws InterruptedException
  8807.     {
  8808.         obj_id mount = getMountId(self);
  8809.         vehicle.setDampingHeight(mount, 0.1f);
  8810.         vehicle.setGlide(mount, 2.5f);
  8811.         return SCRIPT_CONTINUE;
  8812.     }
  8813.    
  8814.    
  8815.     public int hoth_sapper_place(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8816.     {
  8817.         return SCRIPT_CONTINUE;
  8818.     }
  8819.    
  8820.    
  8821.     public int hoth_sapper_detonate(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8822.     {
  8823.         if (!combatStandardAction("hoth_sapper_detonate", self, target, params, "", ""))
  8824.         {
  8825.             stopCombat(self);
  8826.             clearHateList(self);
  8827.             return SCRIPT_OVERRIDE;
  8828.         }
  8829.        
  8830.         kill(self);
  8831.         return SCRIPT_CONTINUE;
  8832.     }
  8833.    
  8834.    
  8835.     public int hoth_commando_rocket(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8836.     {
  8837.         return SCRIPT_CONTINUE;
  8838.     }
  8839.    
  8840.     public int hoth_scout_shield(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8841.     {
  8842.         if (!vehicle.isRidingBattlefieldVehicle(self))
  8843.         {
  8844.             removeDefaultAttackOverride(self);
  8845.             return SCRIPT_OVERRIDE;
  8846.         }
  8847.        
  8848.         obj_id vehicleId = getMountId(self);
  8849.        
  8850.         int stasisBuff = buff.getBuffOnTargetFromGroup(vehicleId, "stasis");
  8851.         if (stasisBuff != 0)
  8852.         {
  8853.             return SCRIPT_OVERRIDE;
  8854.         }
  8855.        
  8856.         if (!buff.canApplyBuff(vehicleId, "hoth_scout_shield"))
  8857.         {
  8858.             return SCRIPT_OVERRIDE;
  8859.         }
  8860.        
  8861.         if (!combatStandardAction("hoth_scout_shield", vehicleId, self, params, "", ""))
  8862.         {
  8863.             return SCRIPT_OVERRIDE;
  8864.         }
  8865.        
  8866.         return SCRIPT_CONTINUE;
  8867.     }
  8868.    
  8869.    
  8870.     public int hoth_scout_cannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8871.     {
  8872.         if (!vehicle.isRidingVehicle(self))
  8873.         {
  8874.             removeDefaultAttackOverride(self);
  8875.             return SCRIPT_OVERRIDE;
  8876.         }
  8877.        
  8878.         if (!combatStandardAction("hoth_scout_cannon", self, target, params, "", ""))
  8879.         {
  8880.             return SCRIPT_OVERRIDE;
  8881.         }
  8882.        
  8883.         location eggLoc = combat.getCommandGroundTargetLocation(params);
  8884.         location myLoc = getLocation(self);
  8885.        
  8886.         float travelDistance = getDistance(myLoc, eggLoc);
  8887.         float speed = travelDistance;
  8888.        
  8889.         playClientEffectObj(self, "sound/wep_veh_blaster.snd", self, "");
  8890.         createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", getMountId(self), "muzzle3", eggLoc, 150.0f, 1.0f, false, 0, 0, 0, 0);
  8891.         createClientProjectileObjectToLocation(self, "object/weapon/ranged/turret/shared_turret_energy.iff", getMountId(self), "muzzle", eggLoc, 150.0f, 1.0f, false, 0, 0, 0, 0);
  8892.         return SCRIPT_CONTINUE;
  8893.     }
  8894.    
  8895.    
  8896.     public int hoth_scout_ear_gun(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8897.     {
  8898.         if (!vehicle.isRidingVehicle(self))
  8899.         {
  8900.             removeDefaultAttackOverride(self);
  8901.             return SCRIPT_OVERRIDE;
  8902.         }
  8903.        
  8904.         if (!combatStandardAction("hoth_scout_ear_gun", self, target, params, "", ""))
  8905.         {
  8906.             return SCRIPT_OVERRIDE;
  8907.         }
  8908.         float travelDistance = getDistance(target, self);
  8909.         float speed = travelDistance;
  8910.        
  8911.         playClientEffectObj(self, "sound/wep_veh_blaster.snd", self, "");
  8912.         createClientProjectileObjectToObject(self, "object/weapon/ranged/rifle/shared_rifle_dlt20a.iff", getMountId(self), "muzzle2", target, "", 150.0f, 1.0f, false, 0, 0, 0, 0);
  8913.        
  8914.         return SCRIPT_CONTINUE;
  8915.     }
  8916.    
  8917.    
  8918.     public int hoth_scout_ear_gun_switch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8919.     {
  8920.         if (!vehicle.isRidingVehicle(self))
  8921.         {
  8922.             removeDefaultAttackOverride(self);
  8923.             return SCRIPT_OVERRIDE;
  8924.         }
  8925.         removeDefaultAttackOverride(self);
  8926.         overrideDefaultAttack(self, "hoth_scout_ear_gun");
  8927.        
  8928.         return SCRIPT_CONTINUE;
  8929.     }
  8930.    
  8931.    
  8932.     public int hoth_scout_rocket_switch(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8933.     {
  8934.         if (!vehicle.isRidingVehicle(self))
  8935.         {
  8936.             removeDefaultAttackOverride(self);
  8937.             return SCRIPT_OVERRIDE;
  8938.         }
  8939.         removeDefaultAttackOverride(self);
  8940.         overrideDefaultAttack(self, "hoth_scout_rocket");
  8941.        
  8942.         return SCRIPT_CONTINUE;
  8943.     }
  8944.    
  8945.    
  8946.     public int hoth_scout_rocket(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8947.     {
  8948.         if (!vehicle.isRidingVehicle(self))
  8949.         {
  8950.             removeDefaultAttackOverride(self);
  8951.             return SCRIPT_OVERRIDE;
  8952.         }
  8953.        
  8954.         if (!combatStandardAction("hoth_scout_rocket", self, target, params, "", ""))
  8955.         {
  8956.             return SCRIPT_OVERRIDE;
  8957.         }
  8958.         location eggLoc = combat.getCommandGroundTargetLocation(params);
  8959.         location myLoc = getLocation(self);
  8960.         createClientProjectileObjectToLocation(self, "object/weapon/ranged/rifle/shared_quest_rifle_flame_thrower.iff", getMountId(self), "muzzle4", eggLoc, 150.0f, 2.0f, false, 0, 0, 0, 0);
  8961.        
  8962.         return SCRIPT_CONTINUE;
  8963.     }
  8964.    
  8965.    
  8966.     public int hoth_atat_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8967.     {
  8968.         if (!combatStandardAction("hoth_atat_shoot", self, target, params, "", ""))
  8969.         {
  8970.             String targetName = getCreatureName(target);
  8971.             if (targetName == null)
  8972.             {
  8973.                 targetName = getPlayerName(target);
  8974.             }
  8975.             LOG("slapHappy", "ATAT has Damaged: "+ target + " ( "+ targetName + " )");
  8976.             return SCRIPT_OVERRIDE;
  8977.         }
  8978.        
  8979.         return SCRIPT_CONTINUE;
  8980.     }
  8981.    
  8982.    
  8983.     public int hoth_atat_vehicle_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  8984.     {
  8985.         if (!isIdValid(target))
  8986.         {
  8987.             LOG("maggie", "hoth_atat_vehicle_shoot:::: TARGET is INVALID");
  8988.             return SCRIPT_CONTINUE;
  8989.         }
  8990.         if (!isIdValid(self))
  8991.         {
  8992.             LOG("maggie", "hoth_atat_vehicle_shoot:::: SELF is INVALID");
  8993.             return SCRIPT_CONTINUE;
  8994.         }
  8995.        
  8996.         if (!combatStandardAction("hoth_atat_vehicle_shoot", self, target, params, "", ""))
  8997.         {
  8998.             LOG("maggie", "hoth_atat_vehicle_shoot:::: Hit Called");
  8999.             return SCRIPT_CONTINUE;
  9000.         }
  9001.         return SCRIPT_CONTINUE;
  9002.     }
  9003.    
  9004.    
  9005.     public int hoth_speeder_takeoff(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9006.     {
  9007.         if (!vehicle.isRidingVehicle(self))
  9008.         {
  9009.             return SCRIPT_OVERRIDE;
  9010.         }
  9011.        
  9012.         obj_id mount = getMountId(self);
  9013.        
  9014.         vehicle.setMinimumSpeed(mount, 29.99f);
  9015.         vehicle.setMaximumSpeed(mount, 30.0f);
  9016.         vehicle.setTurnRateMin(mount, 28.0f);
  9017.         vehicle.setTurnRateMax(mount, 28.0f);
  9018.         vehicle.setAccelMin(mount, 25.0f);
  9019.         vehicle.setAccelMax(mount, 25.0f);
  9020.         vehicle.setDecel(mount, 300.0f);
  9021.         vehicle.setDampingRoll(mount, 1.0f);
  9022.         vehicle.setDampingPitch(mount, 1.0f);
  9023.         vehicle.setDampingHeight(mount, 0.1f);
  9024.         vehicle.setGlide(mount, 2.5f);
  9025.         vehicle.setBankingAngle(mount, 50.0f);
  9026.         vehicle.setHoverHeight(mount, 10.0f);
  9027.         vehicle.setAutoLevelling(mount, 0.25f);
  9028.         vehicle.setStrafe(mount, false);
  9029.         utils.setScriptVar(mount, "airborne", 1);
  9030.         return SCRIPT_CONTINUE;
  9031.     }
  9032.    
  9033.    
  9034.     public int hoth_speeder_land(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9035.     {
  9036.         if (!vehicle.isRidingVehicle(self))
  9037.         {
  9038.             return SCRIPT_OVERRIDE;
  9039.         }
  9040.        
  9041.         obj_id mount = getMountId(self);
  9042.         vehicle.initializeVehicle(mount);
  9043.        
  9044.         utils.setScriptVar(mount, "airborne", 0);
  9045.        
  9046.         return SCRIPT_CONTINUE;
  9047.     }
  9048.    
  9049.    
  9050.     public int hoth_ai_speeder_shoot(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9051.     {
  9052.        
  9053.         if (!isIdValid(target))
  9054.         {
  9055.             LOG("maggie", "hoth_ai_speeder_shoot:::: TARGET is INVALID");
  9056.             return SCRIPT_CONTINUE;
  9057.         }
  9058.         if (!isIdValid(self))
  9059.         {
  9060.             LOG("maggie", "hoth_ai_speeder_shoot:::: SELF is INVALID");
  9061.             return SCRIPT_CONTINUE;
  9062.         }
  9063.        
  9064.         if (!combatStandardAction("hoth_ai_speeder_shoot", self, target, params, "", ""))
  9065.         {
  9066.             LOG("maggie", "hoth_ai_speeder_shoot:::: Hit Called");
  9067.             return SCRIPT_CONTINUE;
  9068.         }
  9069.         return SCRIPT_CONTINUE;
  9070.     }
  9071.    
  9072.    
  9073.     public int wampa_boss_ice_throw_prep(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9074.     {
  9075.         if (!combatStandardAction("wampa_boss_ice_throw_prep", self, target, params, "", ""))
  9076.         {
  9077.             return SCRIPT_OVERRIDE;
  9078.         }
  9079.        
  9080.         return SCRIPT_CONTINUE;
  9081.     }
  9082.    
  9083.    
  9084.     public int wampa_boss_ice_throw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9085.     {
  9086.         if (!combatStandardAction("wampa_boss_ice_throw", self, target, params, "", ""))
  9087.         {
  9088.             return SCRIPT_OVERRIDE;
  9089.         }
  9090.         return SCRIPT_CONTINUE;
  9091.     }
  9092.    
  9093.    
  9094.     public int wampa_boss_tauntaun_throw_prep(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9095.     {
  9096.         if (combatStandardAction("wampa_boss_tauntaun_throw_prep", self, target, params, "", ""))
  9097.         {
  9098.             return SCRIPT_OVERRIDE;
  9099.         }
  9100.        
  9101.         return SCRIPT_CONTINUE;
  9102.     }
  9103.    
  9104.    
  9105.     public int wampa_boss_tauntaun_throw(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9106.     {
  9107.         if (!combatStandardAction("wampa_boss_tauntaun_throw", self, target, params, "", ""))
  9108.         {
  9109.             return SCRIPT_OVERRIDE;
  9110.         }
  9111.        
  9112.         return SCRIPT_CONTINUE;
  9113.     }
  9114.    
  9115.    
  9116.     public int hoth_atat_mine(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9117.     {
  9118.         location loc = getLocation(self);
  9119.         String targetLoc = ""+loc.x+" "+loc.y+" "+loc.z+" "+loc.cell+" "+loc.x+" "+loc.y+" "+loc.z;
  9120.        
  9121.         if (!combatStandardAction("hoth_atat_mine", self, target, targetLoc, "", ""))
  9122.         {
  9123.             return SCRIPT_OVERRIDE;
  9124.         }
  9125.        
  9126.         return SCRIPT_CONTINUE;
  9127.     }
  9128.    
  9129.    
  9130.     public int vader_force_choke(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9131.     {
  9132.         if (isPlayer(self))
  9133.         {
  9134.             return SCRIPT_OVERRIDE;
  9135.         }
  9136.        
  9137.         if (!combatStandardAction("vader_force_choke", self, target, params, "", ""))
  9138.         {
  9139.             return SCRIPT_OVERRIDE;
  9140.         }
  9141.        
  9142.         return SCRIPT_CONTINUE;
  9143.     }
  9144.    
  9145.    
  9146.     public boolean performMedicGroupBuff(obj_id medic, obj_id target, String buffName, String params) throws InterruptedException
  9147.     {
  9148.         if (!isIdValid(medic) || !exists(medic))
  9149.         {
  9150.             return false;
  9151.         }
  9152.         if (!isIdValid(target) || !exists(target))
  9153.         {
  9154.             return false;
  9155.         }
  9156.         if (buffName == null || buffName.length() <= 0)
  9157.         {
  9158.             return false;
  9159.         }
  9160.         if (params == null || params.length() <= 0)
  9161.         {
  9162.             return false;
  9163.         }
  9164.        
  9165.         obj_id tgId = getGroupObject(target);
  9166.         obj_id sgId = getGroupObject(medic);
  9167.         boolean performed_buff = false;
  9168.        
  9169.         if (!isIdValid(tgId) || !isIdValid(sgId) || sgId != tgId)
  9170.         {
  9171.             performed_buff |= combatStandardAction(buffName, medic, target, params, "", "");
  9172.             obj_id beast = beast_lib.getBeastOnPlayer(target);
  9173.             if (isIdValid(beast) && exists(beast) && !isDead(beast) && getDistance(medic, beast) < 72.0f)
  9174.             {
  9175.                 performed_buff |= combatStandardAction(buffName, medic, beast, params, "", "");
  9176.             }
  9177.            
  9178.             if (!performed_buff)
  9179.             {
  9180.                 return false;
  9181.             }
  9182.         }
  9183.         else
  9184.         {
  9185.             obj_id[] members = getGroupMemberIds(sgId);
  9186.            
  9187.             for (int i=0; i<members.length; i++)
  9188.             {
  9189.                 testAbortScript();
  9190.                 if (isIdValid(members[i]) && exists(members[i]) && !isDead(members[i]) && canSee(medic, members[i]) && getDistance(medic, members[i]) < 72.0f)
  9191.                 {
  9192.                     performed_buff |= combatStandardAction(buffName, medic, members[i], params, "", "");
  9193.                     obj_id beast = beast_lib.getBeastOnPlayer(members[i]);
  9194.                     if (isIdValid(beast) && exists(beast) && !isDead(beast) && getDistance(medic, beast) < 72.0f)
  9195.                     {
  9196.                         performed_buff |= combatStandardAction(buffName, medic, beast, params, "", "");
  9197.                     }
  9198.                    
  9199.                 }
  9200.             }
  9201.         }
  9202.         return performed_buff;
  9203.     }
  9204.    
  9205.    
  9206.     public int sp_smoke_mirrors(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9207.     {
  9208.         if (!combatStandardAction("sp_smoke_mirrors", self, target, params, "", ""))
  9209.         {
  9210.             return SCRIPT_OVERRIDE;
  9211.         }
  9212.        
  9213.         return SCRIPT_CONTINUE;
  9214.     }
  9215.    
  9216.    
  9217.     public int sp_shifty_setup(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9218.     {
  9219.         if (!stealth.hasInvisibleBuff(self) && !buff.hasBuff(self, "sp_smoke_mirrors"))
  9220.         {
  9221.             return SCRIPT_OVERRIDE;
  9222.         }
  9223.        
  9224.         if (!combatStandardAction("sp_shifty_setup", self, target, params, "", ""))
  9225.         {
  9226.             return SCRIPT_OVERRIDE;
  9227.         }
  9228.        
  9229.         return SCRIPT_CONTINUE;
  9230.     }
  9231.    
  9232.    
  9233.     public int fireCr1BlastCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9234.     {
  9235.         if (!combatStandardAction("fireCr1BlastCannon", self, target, params, "", ""))
  9236.         {
  9237.             return SCRIPT_OVERRIDE;
  9238.         }
  9239.        
  9240.         return SCRIPT_CONTINUE;
  9241.     }
  9242.    
  9243.    
  9244.     public int droid_flame_jet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9245.     {
  9246.         obj_id droid = pet_lib.validateDroidCommand(self);
  9247.        
  9248.         if (!isIdValid(droid))
  9249.         {
  9250.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9251.             return SCRIPT_OVERRIDE;
  9252.         }
  9253.        
  9254.         int commandPotency = getIntObjVar(droid, "module_data.fire_potency");
  9255.        
  9256.         if (commandPotency <= 0)
  9257.         {
  9258.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9259.             return SCRIPT_OVERRIDE;
  9260.         }
  9261.        
  9262.         queueCommand(droid, (1393995298), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9263.        
  9264.         return SCRIPT_CONTINUE;
  9265.     }
  9266.    
  9267.    
  9268.     public int droid_flame_jet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9269.     {
  9270.         obj_id droid = pet_lib.validateDroidCommand(self);
  9271.        
  9272.         if (!isIdValid(droid))
  9273.         {
  9274.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9275.             return SCRIPT_OVERRIDE;
  9276.         }
  9277.        
  9278.         int commandPotency = getIntObjVar(droid, "module_data.fire_potency");
  9279.        
  9280.         if (commandPotency < 50)
  9281.         {
  9282.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9283.             return SCRIPT_OVERRIDE;
  9284.         }
  9285.        
  9286.         queueCommand(droid, (1582663931), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9287.        
  9288.         return SCRIPT_CONTINUE;
  9289.     }
  9290.    
  9291.    
  9292.     public int droid_flame_jet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9293.     {
  9294.         obj_id droid = pet_lib.validateDroidCommand(self);
  9295.        
  9296.         if (!isIdValid(droid))
  9297.         {
  9298.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9299.             return SCRIPT_OVERRIDE;
  9300.         }
  9301.        
  9302.         int commandPotency = getIntObjVar(droid, "module_data.fire_potency");
  9303.        
  9304.         if (commandPotency < 100)
  9305.         {
  9306.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9307.             return SCRIPT_OVERRIDE;
  9308.         }
  9309.        
  9310.         queueCommand(droid, (1519686988), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9311.        
  9312.         return SCRIPT_CONTINUE;
  9313.     }
  9314.    
  9315.    
  9316.     public int server_droid_flame_jet_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9317.     {
  9318.         if (!combatStandardAction("server_droid_flame_jet_1", self, target, params, "", ""))
  9319.         {
  9320.             return SCRIPT_OVERRIDE;
  9321.         }
  9322.        
  9323.         String template = getTemplateName(self);
  9324.        
  9325.         if (template.equals("object/mobile/magnaguard.iff"))
  9326.         {
  9327.             playClientEffectObj(self, "appearance/pt_droid_flame_jet_magnaguard.prt", self, "root", null, "flamejet");
  9328.         }
  9329.         else
  9330.         {
  9331.             playClientEffectObj(self, "appearance/pt_droid_flame_jet.prt", self, "root", null, "flamejet");
  9332.         }
  9333.        
  9334.         return SCRIPT_CONTINUE;
  9335.     }
  9336.    
  9337.    
  9338.     public int server_droid_flame_jet_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9339.     {
  9340.         if (!combatStandardAction("server_droid_flame_jet_2", self, target, params, "", ""))
  9341.         {
  9342.             return SCRIPT_OVERRIDE;
  9343.         }
  9344.        
  9345.         String template = getTemplateName(self);
  9346.        
  9347.         if (template.equals("object/mobile/magnaguard.iff"))
  9348.         {
  9349.             playClientEffectObj(self, "appearance/pt_droid_flame_jet_magnaguard.prt", self, "root", null, "flamejet");
  9350.         }
  9351.         else
  9352.         {
  9353.             playClientEffectObj(self, "appearance/pt_droid_flame_jet.prt", self, "root", null, "flamejet");
  9354.         }
  9355.        
  9356.         return SCRIPT_CONTINUE;
  9357.     }
  9358.    
  9359.    
  9360.     public int server_droid_flame_jet_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9361.     {
  9362.         if (!combatStandardAction("server_droid_flame_jet_3", self, target, params, "", ""))
  9363.         {
  9364.             return SCRIPT_OVERRIDE;
  9365.         }
  9366.        
  9367.         String template = getTemplateName(self);
  9368.        
  9369.         if (template.equals("object/mobile/magnaguard.iff"))
  9370.         {
  9371.             playClientEffectObj(self, "appearance/pt_droid_flame_jet_magnaguard.prt", self, "root", null, "flamejet");
  9372.         }
  9373.         else
  9374.         {
  9375.             playClientEffectObj(self, "appearance/pt_droid_flame_jet.prt", self, "root", null, "flamejet");
  9376.         }
  9377.        
  9378.         return SCRIPT_CONTINUE;
  9379.     }
  9380.    
  9381.    
  9382.     public int droid_droideka_shield_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9383.     {
  9384.         obj_id droid = pet_lib.validateDroidCommand(self);
  9385.        
  9386.         if (!isIdValid(droid))
  9387.         {
  9388.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9389.             return SCRIPT_OVERRIDE;
  9390.         }
  9391.        
  9392.         int commandPotency = getIntObjVar(droid, "module_data.shield_heatsink");
  9393.        
  9394.         if (commandPotency <= 0)
  9395.         {
  9396.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9397.             return SCRIPT_OVERRIDE;
  9398.         }
  9399.        
  9400.         if (!combatStandardAction("droid_droideka_shield_1", droid, target, params, "", ""))
  9401.         {
  9402.             return SCRIPT_OVERRIDE;
  9403.         }
  9404.        
  9405.         return SCRIPT_CONTINUE;
  9406.     }
  9407.    
  9408.    
  9409.     public int droid_droideka_shield_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9410.     {
  9411.         obj_id droid = pet_lib.validateDroidCommand(self);
  9412.        
  9413.         if (!isIdValid(droid))
  9414.         {
  9415.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9416.             return SCRIPT_OVERRIDE;
  9417.         }
  9418.        
  9419.         int commandPotency = getIntObjVar(droid, "module_data.shield_heatsink");
  9420.        
  9421.         if (commandPotency < 50)
  9422.         {
  9423.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9424.             return SCRIPT_OVERRIDE;
  9425.         }
  9426.        
  9427.         if (!combatStandardAction("droid_droideka_shield_2", droid, target, params, "", ""))
  9428.         {
  9429.             return SCRIPT_OVERRIDE;
  9430.         }
  9431.        
  9432.         return SCRIPT_CONTINUE;
  9433.     }
  9434.    
  9435.    
  9436.     public int droid_droideka_shield_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9437.     {
  9438.         obj_id droid = pet_lib.validateDroidCommand(self);
  9439.        
  9440.         if (!isIdValid(droid))
  9441.         {
  9442.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9443.             return SCRIPT_OVERRIDE;
  9444.         }
  9445.        
  9446.         int commandPotency = getIntObjVar(droid, "module_data.shield_heatsink");
  9447.        
  9448.         if (commandPotency < 100)
  9449.         {
  9450.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9451.             return SCRIPT_OVERRIDE;
  9452.         }
  9453.        
  9454.         if (!combatStandardAction("droid_droideka_shield_3", droid, target, params, "", ""))
  9455.         {
  9456.             return SCRIPT_OVERRIDE;
  9457.         }
  9458.        
  9459.         return SCRIPT_CONTINUE;
  9460.     }
  9461.    
  9462.    
  9463.     public int droid_battery_dump_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9464.     {
  9465.         obj_id droid = pet_lib.validateDroidCommand(self);
  9466.        
  9467.         if (!isIdValid(droid))
  9468.         {
  9469.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9470.             return SCRIPT_OVERRIDE;
  9471.         }
  9472.        
  9473.         int commandPotency = getIntObjVar(droid, "module_data.dump_capacitors");
  9474.        
  9475.         if (commandPotency <= 0)
  9476.         {
  9477.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9478.             return SCRIPT_OVERRIDE;
  9479.         }
  9480.        
  9481.         queueCommand(droid, (1901658878), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9482.        
  9483.         return SCRIPT_CONTINUE;
  9484.     }
  9485.    
  9486.    
  9487.     public int droid_battery_dump_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9488.     {
  9489.         obj_id droid = pet_lib.validateDroidCommand(self);
  9490.        
  9491.         if (!isIdValid(droid))
  9492.         {
  9493.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9494.             return SCRIPT_OVERRIDE;
  9495.         }
  9496.        
  9497.         int commandPotency = getIntObjVar(droid, "module_data.dump_capacitors");
  9498.        
  9499.         if (commandPotency < 50)
  9500.         {
  9501.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9502.             return SCRIPT_OVERRIDE;
  9503.         }
  9504.        
  9505.         queueCommand(droid, (2082087975), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9506.        
  9507.         return SCRIPT_CONTINUE;
  9508.     }
  9509.    
  9510.    
  9511.     public int droid_battery_dump_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9512.     {
  9513.         obj_id droid = pet_lib.validateDroidCommand(self);
  9514.        
  9515.         if (!isIdValid(droid))
  9516.         {
  9517.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9518.             return SCRIPT_OVERRIDE;
  9519.         }
  9520.        
  9521.         int commandPotency = getIntObjVar(droid, "module_data.dump_capacitors");
  9522.        
  9523.         if (commandPotency < 100)
  9524.         {
  9525.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9526.             return SCRIPT_OVERRIDE;
  9527.         }
  9528.        
  9529.         queueCommand(droid, (2027633040), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9530.        
  9531.         return SCRIPT_CONTINUE;
  9532.     }
  9533.    
  9534.    
  9535.     public int server_droid_battery_dump_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9536.     {
  9537.         if (!combatStandardAction("server_droid_battery_dump_1", self, target, params, "", ""))
  9538.         {
  9539.             return SCRIPT_OVERRIDE;
  9540.         }
  9541.        
  9542.         return SCRIPT_CONTINUE;
  9543.     }
  9544.    
  9545.    
  9546.     public int server_droid_battery_dump_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9547.     {
  9548.         if (!combatStandardAction("server_droid_battery_dump_2", self, target, params, "", ""))
  9549.         {
  9550.             return SCRIPT_OVERRIDE;
  9551.         }
  9552.        
  9553.         return SCRIPT_CONTINUE;
  9554.     }
  9555.    
  9556.    
  9557.     public int server_droid_battery_dump_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9558.     {
  9559.         if (!combatStandardAction("server_droid_battery_dump_3", self, target, params, "", ""))
  9560.         {
  9561.             return SCRIPT_OVERRIDE;
  9562.         }
  9563.        
  9564.         return SCRIPT_CONTINUE;
  9565.     }
  9566.    
  9567.    
  9568.     public int droid_regenerative_plating_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9569.     {
  9570.         obj_id droid = pet_lib.validateDroidCommand(self);
  9571.        
  9572.         if (!isIdValid(droid))
  9573.         {
  9574.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9575.             return SCRIPT_OVERRIDE;
  9576.         }
  9577.        
  9578.         int commandPotency = getIntObjVar(droid, "module_data.quickset_metal");
  9579.        
  9580.         if (commandPotency <= 0)
  9581.         {
  9582.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9583.             return SCRIPT_OVERRIDE;
  9584.         }
  9585.        
  9586.         queueCommand(droid, (-1431788883), droid, "", COMMAND_PRIORITY_IMMEDIATE);
  9587.        
  9588.         return SCRIPT_CONTINUE;
  9589.     }
  9590.    
  9591.    
  9592.     public int droid_regenerative_plating_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9593.     {
  9594.         obj_id droid = pet_lib.validateDroidCommand(self);
  9595.        
  9596.         if (!isIdValid(droid))
  9597.         {
  9598.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9599.             return SCRIPT_OVERRIDE;
  9600.         }
  9601.        
  9602.         int commandPotency = getIntObjVar(droid, "module_data.quickset_metal");
  9603.        
  9604.         if (commandPotency < 50)
  9605.         {
  9606.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9607.             return SCRIPT_OVERRIDE;
  9608.         }
  9609.        
  9610.         queueCommand(droid, (-1477737356), droid, "", COMMAND_PRIORITY_IMMEDIATE);
  9611.        
  9612.         return SCRIPT_CONTINUE;
  9613.     }
  9614.    
  9615.    
  9616.     public int droid_regenerative_plating_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9617.     {
  9618.         obj_id droid = pet_lib.validateDroidCommand(self);
  9619.        
  9620.         if (!isIdValid(droid))
  9621.         {
  9622.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9623.             return SCRIPT_OVERRIDE;
  9624.         }
  9625.        
  9626.         int commandPotency = getIntObjVar(droid, "module_data.quickset_metal");
  9627.        
  9628.         if (commandPotency < 100)
  9629.         {
  9630.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9631.             return SCRIPT_OVERRIDE;
  9632.         }
  9633.        
  9634.         queueCommand(droid, (-1557489213), droid, "", COMMAND_PRIORITY_IMMEDIATE);
  9635.        
  9636.         return SCRIPT_CONTINUE;
  9637.     }
  9638.    
  9639.    
  9640.     public int server_droid_regenerative_plating_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9641.     {
  9642.         if (!combatStandardAction("server_droid_regenerative_plating_1", self, target, params, "", ""))
  9643.         {
  9644.             return SCRIPT_OVERRIDE;
  9645.         }
  9646.        
  9647.         return SCRIPT_CONTINUE;
  9648.     }
  9649.    
  9650.    
  9651.     public int server_droid_regenerative_plating_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9652.     {
  9653.         if (!combatStandardAction("server_droid_regenerative_plating_2", self, target, params, "", ""))
  9654.         {
  9655.             return SCRIPT_OVERRIDE;
  9656.         }
  9657.        
  9658.         return SCRIPT_CONTINUE;
  9659.     }
  9660.    
  9661.    
  9662.     public int server_droid_regenerative_plating_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9663.     {
  9664.         if (!combatStandardAction("server_droid_regenerative_plating_3", self, target, params, "", ""))
  9665.         {
  9666.             return SCRIPT_OVERRIDE;
  9667.         }
  9668.        
  9669.         return SCRIPT_CONTINUE;
  9670.     }
  9671.    
  9672.    
  9673.     public int droid_electrical_shock_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9674.     {
  9675.         obj_id droid = pet_lib.validateDroidCommand(self);
  9676.        
  9677.         if (!isIdValid(droid))
  9678.         {
  9679.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9680.             return SCRIPT_OVERRIDE;
  9681.         }
  9682.        
  9683.         int commandPotency = getIntObjVar(droid, "module_data.arc_projector");
  9684.        
  9685.         if (commandPotency <= 0)
  9686.         {
  9687.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9688.             return SCRIPT_OVERRIDE;
  9689.         }
  9690.        
  9691.         queueCommand(droid, (958746220), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9692.        
  9693.         return SCRIPT_CONTINUE;
  9694.     }
  9695.    
  9696.    
  9697.     public int droid_electrical_shock_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9698.     {
  9699.         obj_id droid = pet_lib.validateDroidCommand(self);
  9700.        
  9701.         if (!isIdValid(droid))
  9702.         {
  9703.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9704.             return SCRIPT_OVERRIDE;
  9705.         }
  9706.        
  9707.         int commandPotency = getIntObjVar(droid, "module_data.arc_projector");
  9708.        
  9709.         if (commandPotency < 50)
  9710.         {
  9711.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9712.             return SCRIPT_OVERRIDE;
  9713.         }
  9714.        
  9715.         queueCommand(droid, (879126709), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9716.        
  9717.         return SCRIPT_CONTINUE;
  9718.     }
  9719.    
  9720.    
  9721.     public int droid_electrical_shock_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9722.     {
  9723.         obj_id droid = pet_lib.validateDroidCommand(self);
  9724.        
  9725.         if (!isIdValid(droid))
  9726.         {
  9727.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9728.             return SCRIPT_OVERRIDE;
  9729.         }
  9730.        
  9731.         int commandPotency = getIntObjVar(droid, "module_data.arc_projector");
  9732.        
  9733.         if (commandPotency < 100)
  9734.         {
  9735.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9736.             return SCRIPT_OVERRIDE;
  9737.         }
  9738.        
  9739.         queueCommand(droid, (816280834), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9740.        
  9741.         return SCRIPT_CONTINUE;
  9742.     }
  9743.    
  9744.    
  9745.     public int server_droid_electrical_shock_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9746.     {
  9747.         if (!combatStandardAction("server_droid_electrical_shock_1", self, target, params, "", ""))
  9748.         {
  9749.             return SCRIPT_OVERRIDE;
  9750.         }
  9751.        
  9752.         return SCRIPT_CONTINUE;
  9753.     }
  9754.    
  9755.    
  9756.     public int server_droid_electrical_shock_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9757.     {
  9758.         if (!combatStandardAction("server_droid_electrical_shock_2", self, target, params, "", ""))
  9759.         {
  9760.             return SCRIPT_OVERRIDE;
  9761.         }
  9762.        
  9763.         return SCRIPT_CONTINUE;
  9764.     }
  9765.    
  9766.    
  9767.     public int server_droid_electrical_shock_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9768.     {
  9769.         if (!combatStandardAction("server_droid_electrical_shock_3", self, target, params, "", ""))
  9770.         {
  9771.             return SCRIPT_OVERRIDE;
  9772.         }
  9773.        
  9774.         return SCRIPT_CONTINUE;
  9775.     }
  9776.    
  9777.    
  9778.     public int droid_torturous_needle_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9779.     {
  9780.         obj_id droid = pet_lib.validateDroidCommand(self);
  9781.        
  9782.         if (!isIdValid(droid))
  9783.         {
  9784.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9785.             return SCRIPT_OVERRIDE;
  9786.         }
  9787.        
  9788.         int commandPotency = getIntObjVar(droid, "module_data.pain_inducer");
  9789.        
  9790.         if (commandPotency <= 0)
  9791.         {
  9792.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9793.             return SCRIPT_OVERRIDE;
  9794.         }
  9795.        
  9796.         queueCommand(droid, (-1109390517), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9797.        
  9798.         return SCRIPT_CONTINUE;
  9799.     }
  9800.    
  9801.    
  9802.     public int droid_torturous_needle_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9803.     {
  9804.         obj_id droid = pet_lib.validateDroidCommand(self);
  9805.        
  9806.         if (!isIdValid(droid))
  9807.         {
  9808.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9809.             return SCRIPT_OVERRIDE;
  9810.         }
  9811.        
  9812.         int commandPotency = getIntObjVar(droid, "module_data.pain_inducer");
  9813.        
  9814.         if (commandPotency < 50)
  9815.         {
  9816.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9817.             return SCRIPT_OVERRIDE;
  9818.         }
  9819.        
  9820.         queueCommand(droid, (-1331483246), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9821.        
  9822.         return SCRIPT_CONTINUE;
  9823.     }
  9824.    
  9825.    
  9826.     public int droid_torturous_needle_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9827.     {
  9828.         obj_id droid = pet_lib.validateDroidCommand(self);
  9829.        
  9830.         if (!isIdValid(droid))
  9831.         {
  9832.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9833.             return SCRIPT_OVERRIDE;
  9834.         }
  9835.        
  9836.         int commandPotency = getIntObjVar(droid, "module_data.pain_inducer");
  9837.        
  9838.         if (commandPotency < 100)
  9839.         {
  9840.             sendSystemMessage(self, new string_id("spam", "cant_use_droid_command"));
  9841.             return SCRIPT_OVERRIDE;
  9842.         }
  9843.        
  9844.         queueCommand(droid, (-1268633563), target, "", COMMAND_PRIORITY_IMMEDIATE);
  9845.        
  9846.         return SCRIPT_CONTINUE;
  9847.     }
  9848.    
  9849.    
  9850.     public int server_droid_torturous_needle_1(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9851.     {
  9852.         if (!combatStandardAction("server_droid_torturous_needle_1", self, target, params, "", ""))
  9853.         {
  9854.             return SCRIPT_OVERRIDE;
  9855.         }
  9856.        
  9857.         return SCRIPT_CONTINUE;
  9858.     }
  9859.    
  9860.    
  9861.     public int server_droid_torturous_needle_2(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9862.     {
  9863.         if (!combatStandardAction("server_droid_torturous_needle_2", self, target, params, "", ""))
  9864.         {
  9865.             return SCRIPT_OVERRIDE;
  9866.         }
  9867.        
  9868.         return SCRIPT_CONTINUE;
  9869.     }
  9870.    
  9871.    
  9872.     public int server_droid_torturous_needle_3(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9873.     {
  9874.         if (!combatStandardAction("server_droid_torturous_needle_3", self, target, params, "", ""))
  9875.         {
  9876.             return SCRIPT_OVERRIDE;
  9877.         }
  9878.        
  9879.         return SCRIPT_CONTINUE;
  9880.     }
  9881.    
  9882.    
  9883.     public int death_troopers_afflicted_toss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9884.     {
  9885.         if (!combatStandardAction("death_troopers_afflicted_toss", self, target, params, "", ""))
  9886.         {
  9887.             return SCRIPT_OVERRIDE;
  9888.         }
  9889.        
  9890.         return SCRIPT_CONTINUE;
  9891.     }
  9892.    
  9893.    
  9894.     public int death_troopers_death_wing_afflict(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9895.     {
  9896.         if (!combatStandardAction("death_troopers_death_wing_afflict", self, target, params, "", ""))
  9897.         {
  9898.             return SCRIPT_OVERRIDE;
  9899.         }
  9900.        
  9901.         doAnimationAction(target, "heavy_cough_vomit");
  9902.        
  9903.         return SCRIPT_CONTINUE;
  9904.     }
  9905.    
  9906.    
  9907.     public int death_troopers_afflicted_splat(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9908.     {
  9909.         if (!combatStandardAction("death_troopers_afflicted_splat", self, target, params, "", ""))
  9910.         {
  9911.             return SCRIPT_OVERRIDE;
  9912.         }
  9913.        
  9914.         return SCRIPT_CONTINUE;
  9915.     }
  9916.    
  9917.    
  9918.     public int death_troopers_afflicted_konk(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9919.     {
  9920.         if (!combatStandardAction("death_troopers_afflicted_konk", self, target, params, "", ""))
  9921.         {
  9922.             return SCRIPT_OVERRIDE;
  9923.         }
  9924.        
  9925.         return SCRIPT_CONTINUE;
  9926.     }
  9927.    
  9928.    
  9929.     public int of_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9930.     {
  9931.         if (!combatStandardAction("of_dm_boss", self, target, params, "", ""))
  9932.         {
  9933.             return SCRIPT_OVERRIDE;
  9934.         }
  9935.        
  9936.         float baseCooldownTime = getBaseCooldownTime("of_dm_boss");
  9937.         if (baseCooldownTime < 0)
  9938.         {
  9939.             return SCRIPT_OVERRIDE;
  9940.         }
  9941.        
  9942.         float cooldownTimeMod = getEnhancedSkillStatisticModifierUncapped(self, "expertise_cooldown_line_of_sure");
  9943.         setCommandTimerValue(self, TIMER_COOLDOWN, baseCooldownTime - (cooldownTimeMod/10));
  9944.        
  9945.         doInspiredAction(self);
  9946.        
  9947.         return SCRIPT_CONTINUE;
  9948.     }
  9949.    
  9950.    
  9951.     public int of_ae_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9952.     {
  9953.         if (!combatStandardAction("of_ae_dm_boss", self, target, params, "", ""))
  9954.         {
  9955.             return SCRIPT_OVERRIDE;
  9956.         }
  9957.        
  9958.         if (successfulFastAttack(self, "of_aoe"))
  9959.         {
  9960.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  9961.         }
  9962.        
  9963.         doInspiredAction(self);
  9964.        
  9965.         return SCRIPT_CONTINUE;
  9966.     }
  9967.    
  9968.    
  9969.     public int of_del_ae_dm_boss(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  9970.     {
  9971.        
  9972.         if (getTopMostContainer(self) != self)
  9973.         {
  9974.             sendSystemMessage(self, new string_id("spam", "cant_do_indoors"));
  9975.             return SCRIPT_OVERRIDE;
  9976.         }
  9977.        
  9978.         if (!combatStandardAction("of_del_ae_dm_boss", self, target, params, "", ""))
  9979.         {
  9980.             return SCRIPT_OVERRIDE;
  9981.         }
  9982.         playClientEffectLoc(self, "clienteffect/combat_pt_orbitalstrike_low_pt.cef", getLocation(target), 0);
  9983.        
  9984.         if (successfulFastAttack(self, "of_aoe"))
  9985.         {
  9986.             setCommandTimerValue(self, TIMER_COOLDOWN, 0f);
  9987.         }
  9988.        
  9989.         doInspiredAction(self);
  9990.        
  9991.         return SCRIPT_CONTINUE;
  9992.     }
  9993.    
  9994.    
  9995.     public boolean isInBlackwingInfectionedArea(obj_id self) throws InterruptedException
  9996.     {
  9997.         if (locations.isInRegion(self, "@dathomir_region_names:black_mesa"))
  9998.         {
  9999.             return true;
  10000.         }
  10001.        
  10002.         obj_id building = getTopMostContainer(self);
  10003.         if (isIdValid(building) && getTemplateName(building).equals("object/building/dathomir/imperial_blackwing_facility.iff"))
  10004.         {
  10005.             return true;
  10006.         }
  10007.        
  10008.         return false;
  10009.     }
  10010.    
  10011.    
  10012.     public boolean hasVaharaCodyAntiVirus(obj_id self) throws InterruptedException
  10013.     {
  10014.         if (utils.hasScriptVar(self, "outbreak.innoculated") || buff.hasBuff(self, "death_troopers_inoculation"))
  10015.         {
  10016.             return true;
  10017.         }
  10018.        
  10019.         return false;
  10020.     }
  10021.    
  10022.    
  10023.     public int death_troopers_infection_1(obj_id self, dictionary params) throws InterruptedException
  10024.     {
  10025.         messageTo(self, "death_troopers_infection_1_delay", null, 0.5f, false);
  10026.         return SCRIPT_CONTINUE;
  10027.     }
  10028.    
  10029.    
  10030.     public int death_troopers_infection_1_delay(obj_id self, dictionary params) throws InterruptedException
  10031.     {
  10032.         if (isInBlackwingInfectionedArea(self))
  10033.         {
  10034.             if (!hasVaharaCodyAntiVirus(self))
  10035.             {
  10036.                 buff.applyBuff(self, self, "death_troopers_infection_2");
  10037.             }
  10038.         }
  10039.        
  10040.         return SCRIPT_CONTINUE;
  10041.     }
  10042.    
  10043.    
  10044.     public int death_troopers_infection_2(obj_id self, dictionary params) throws InterruptedException
  10045.     {
  10046.         messageTo(self, "death_troopers_infection_2_delay", null, 0.5f, false);
  10047.         return SCRIPT_CONTINUE;
  10048.     }
  10049.    
  10050.    
  10051.     public int death_troopers_infection_2_delay(obj_id self, dictionary params) throws InterruptedException
  10052.     {
  10053.         if (isInBlackwingInfectionedArea(self))
  10054.         {
  10055.             if (!hasVaharaCodyAntiVirus(self))
  10056.             {
  10057.                 trial.bumpSession(self, "outbreak_stacking_infection");
  10058.                 buff.applyBuff(self, self, "death_troopers_infection_3");
  10059.             }
  10060.         }
  10061.        
  10062.         return SCRIPT_CONTINUE;
  10063.     }
  10064.    
  10065.    
  10066.     public int death_troopers_infection_3(obj_id self, dictionary params) throws InterruptedException
  10067.     {
  10068.         messageTo(self, "death_troopers_infection_3_delay", null, 0.5f, false);
  10069.         return SCRIPT_CONTINUE;
  10070.     }
  10071.    
  10072.    
  10073.     public int death_troopers_infection_3_delay(obj_id self, dictionary params) throws InterruptedException
  10074.     {
  10075.         if (isInBlackwingInfectionedArea(self))
  10076.         {
  10077.             if (!hasVaharaCodyAntiVirus(self))
  10078.             {
  10079.                 buff.applyBuff(self, self, "death_troopers_infection_3");
  10080.             }
  10081.         }
  10082.        
  10083.         return SCRIPT_CONTINUE;
  10084.     }
  10085.    
  10086.    
  10087.     public int death_troopers_inoculation(obj_id self, dictionary params) throws InterruptedException
  10088.     {
  10089.         if (isInBlackwingInfectionedArea(self))
  10090.         {
  10091.             if (utils.hasScriptVar(self, "outbreak.innoculated"))
  10092.             {
  10093.                 utils.removeScriptVar(self, "outbreak.innoculated");
  10094.             }
  10095.            
  10096.             buff.applyBuff(self, self, "death_troopers_infection_1");
  10097.         }
  10098.        
  10099.         return SCRIPT_CONTINUE;
  10100.     }
  10101.    
  10102.    
  10103.     public int gcw_atst_attack_tower(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  10104.     {
  10105.         LOG("gcw_vehicle", "gcw_atst_attack_tower");
  10106.        
  10107.         if (!combatStandardAction("gcw_atst_attack_tower", self, target, params, "", ""))
  10108.         {
  10109.             LOG("gcw_vehicle", "gcw_atst_attack_tower 2");
  10110.             return SCRIPT_OVERRIDE;
  10111.         }
  10112.        
  10113.         return SCRIPT_CONTINUE;
  10114.     }
  10115.    
  10116.    
  10117.     public int firePulseCannon(obj_id self, obj_id target, String params, float defaultTime) throws InterruptedException
  10118.     {
  10119.         if (!combatStandardAction("firePulseCannon", self, target, params, "", ""))
  10120.         {
  10121.             return SCRIPT_OVERRIDE;
  10122.         }
  10123.        
  10124.         return SCRIPT_CONTINUE;
  10125.     }
  10126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement