mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-21 12:03:08 -04:00
(go live) Changed how loot is handled for new rare loot drops.
This commit is contained in:
@@ -10,5 +10,3 @@ weapon_tow_polearm_xandak_lance_05_01
|
||||
weapon_tow_2h_tulrus_sword_05_01
|
||||
object/tangible/loot/mustafar/cube_loot/cube_loot_3m.iff
|
||||
item_tow_schematic_saber_03_01
|
||||
object/building/player/player_mustafar_house_lg.iff
|
||||
object/building/player/player_mustafar_house_lg.iff
|
||||
|
||||
+5
-3
@@ -33,9 +33,11 @@ public class event_three_boss extends script.base_script
|
||||
messageTo(parent, "eventMobDied", dict, 0, false);
|
||||
}
|
||||
obj_id corpseInventory = utils.getInventoryContainer(self);
|
||||
int x = rand(1, 100);
|
||||
if (x <= 12){ // 12% chance at dropping bonus loot Lava Transport Skiff
|
||||
static_item.createNewItemFunction("item_tow_schematic_vehicle_02_02", corpseInventory);
|
||||
if (isIdValid(corpseInventory)) {
|
||||
int x = rand(1, 100);
|
||||
if (x <= 12){ // 12% chance at dropping bonus loot Lava Transport Skiff
|
||||
static_item.createNewItemFunction("item_tow_schematic_vehicle_02_02", corpseInventory);
|
||||
}
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
Regular → Executable
+8
-8
@@ -8,14 +8,7 @@ import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
|
||||
import script.library.ai_lib;
|
||||
import script.library.utils;
|
||||
import script.library.create;
|
||||
import script.library.buff;
|
||||
import script.library.dot;
|
||||
import script.library.combat;
|
||||
import script.library.prose;
|
||||
import script.library.trial;
|
||||
import script.library.*;
|
||||
|
||||
public class hk_final_boss extends script.base_script
|
||||
{
|
||||
@@ -52,6 +45,13 @@ public class hk_final_boss extends script.base_script
|
||||
{
|
||||
messageTo(parent, "eventMobDied", dict, 0, false);
|
||||
}
|
||||
obj_id corpseInventory = utils.getInventoryContainer(self);
|
||||
if (isIdValid(corpseInventory)) {
|
||||
int x = rand(1, 100);
|
||||
if (x <= 15) { // 15% chance at dropping bonus loot Mustafar Bunker
|
||||
createObject("object/building/player/player_mustafar_house_lg.iff", corpseInventory, "");
|
||||
}
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
public int OnEnteredCombat(obj_id self) throws InterruptedException
|
||||
|
||||
Reference in New Issue
Block a user