diff --git a/sku.0/sys.server/compiled/game/datatables/mob/creatures.tab b/sku.0/sys.server/compiled/game/datatables/mob/creatures.tab index 740b96849..e1744eab4 100755 --- a/sku.0/sys.server/compiled/game/datatables/mob/creatures.tab +++ b/sku.0/sys.server/compiled/game/datatables/mob/creatures.tab @@ -6466,7 +6466,7 @@ outbreak_facility_scientist_survivor_01 90 0 0 0 0 ELITE dathomir survivor sur outbreak_facility_scientist_survivor_02 90 0 0 0 0 ELITE dathomir survivor survivor outbreak_marpo_glenfik.iff 1 1.2 0 0 0 0 0 0 0 0 -1 2 0 0 npc 1 1 int:sci=1,int:invln=1 ai.equip_weapon,theme_park.outbreak.scientist_pathing stormtrooper_carbine commando_2 commando_2 0 0 outbreak_facility_scientist_survivor_03 90 0 0 0 0 ELITE dathomir survivor survivor outbreak_stane_tritan.iff 1 1.2 0 0 0 0 0 0 0 0 -1 2 0 0 npc 1 1 int:sci=1,int:invln=1 ai.equip_weapon,theme_park.outbreak.scientist_pathing stormtrooper_carbine commando_2 commando_2 0 0 outbreak_facility_stormtrooper_survivor 90 0 0 0 0 NORMAL dathomir survivor survivor dressed_stormtrooper_sandtrooper_m.iff 1 1 0 0 0 0 0 0 0 0 -1 2 0 0 npc 1 1 int:sci=1,int:guard=1 ai.equip_weapon,theme_park.outbreak.scientist_pathing stormtrooper_carbine commando_2 commando_2 0 0 -outbreak_afflicted_rancor 95 0 0 0 0 BOSS dathomir afflicted survivor outbreak_afflicted_blackwing_rancor_boss.iff 1.5 1.5 16 50 65 0 100 100 100 0 0 2 0 defaultProfile 1 50 afflicted_rancor carnivore 100 100 100 100 int:bm_doNotShowExamineInfo=1,string:fail_signal=playerFailedBoss,int:distance_check=90 theme_park.outbreak.boss_fight_functionality,theme_park.outbreak.afflicted_npc outbreak_afflicted_rancor outbreak_afflicted_rancor 18 9 instant +outbreak_afflicted_rancor 95 0 0 0 0 BOSS dathomir afflicted survivor outbreak_afflicted_blackwing_rancor_boss.iff 1.5 1.5 16 50 65 0 100 100 100 0 0 2 0 defaultProfile 1 50 afflicted_rancor carnivore 100 100 100 100 int:bm_doNotShowExamineInfo=1,string:fail_signal=playerFailedBoss,int:distance_check=90 theme_park.outbreak.boss_fight_functionality,theme_park.outbreak.afflicted_npc,item.outbreak.shock_collar outbreak_afflicted_rancor outbreak_afflicted_rancor 18 9 instant outbreak_downed_tie_fighter 90 0 0 0 0 NORMAL dathomir survivor survivor outbreak_downed_tie_pilot_m.iff 1 1 0 0 0 0 0 0 0 0 -1 2 0 0 npc 1 1 int:sci=1,int:guard=1 ai.equip_weapon,conversation.radio_delivery_deathtrooper_conversation imperial_pistol commando_2 commando_2 0 0 outbreak_lost_rebel_trooper 90 0 0 0 0 NORMAL dathomir survivor survivor outbreak_rebel_trooper_human_male_01.iff 1 1 0 0 0 0 0 0 0 0 -1 2 0 0 npc 1 1 int:sci=1,int:guard=1 ai.equip_weapon,conversation.camp_gamma_leader rebel_carbine commando_2 commando_2 0 0 outbreak_stormtrooper_survivor_02 90 0 0 0 0 NORMAL dathomir survivor survivor dressed_stormtrooper_outbreak_survivor_02_m.iff 1.1 1.1 0 0 0 0 0 0 0 0 -1 2 0 0 npc 1 ai.equip_weapon,conversation.camp_delta_leader stormtrooper_carbine commando_2 commando_2 0 0 diff --git a/sku.0/sys.server/compiled/game/script/item/outbreak/shock_collar.java b/sku.0/sys.server/compiled/game/script/item/outbreak/shock_collar.java new file mode 100755 index 000000000..80fb11688 --- /dev/null +++ b/sku.0/sys.server/compiled/game/script/item/outbreak/shock_collar.java @@ -0,0 +1,28 @@ +package script.item.outbreak; + +import script.dictionary; +import script.library.static_item; +import script.library.utils; +import script.obj_id; + +public class shock_collar extends script.base_script +{ + public shock_collar() + { + } + public static final String SHOCK_COLLAR_LOOT_ITEM = "item_tcg_loot_reward_series6_shock_collar"; + public static final int SHOCK_COLLAR_LOOT_CHANCE = 5; + + + public int aiCorpsePrepared(obj_id self, dictionary params) throws InterruptedException + { + int chanceDna = rand(1, 100); + if (chanceDna > SHOCK_COLLAR_LOOT_CHANCE) + { + return SCRIPT_CONTINUE; + } + obj_id inv = utils.getInventoryContainer(self); + obj_id dna = static_item.createNewItemFunction(SHOCK_COLLAR_LOOT_ITEM, inv); + return SCRIPT_CONTINUE; + } +}