|
|
@ -130,6 +130,15 @@ public enum LootManager { |
|
|
|
mob.getCharItemManager().addItemToInventory(extraLoot); |
|
|
|
mob.getCharItemManager().addItemToInventory(extraLoot); |
|
|
|
} |
|
|
|
} |
|
|
|
hasExtraRolled = true; |
|
|
|
hasExtraRolled = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mob.parentZone.lastContractDrop + 3600000 > System.currentTimeMillis()){ |
|
|
|
|
|
|
|
//no contract in last hour, force roll for one
|
|
|
|
|
|
|
|
rollForContract(bse.genTable, mob); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(mob.parentZone.lastRuneDrop + 3600000 > System.currentTimeMillis()){ |
|
|
|
|
|
|
|
//no rune in last hour, force roll for one
|
|
|
|
|
|
|
|
rollForRune(bse.genTable, mob); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "ITEM": |
|
|
|
case "ITEM": |
|
|
@ -532,6 +541,7 @@ public enum LootManager { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static MobLoot rollForContract(int table, Mob mob) { |
|
|
|
public static MobLoot rollForContract(int table, Mob mob) { |
|
|
|
|
|
|
|
mob.parentZone.lastContractDrop = System.currentTimeMillis(); |
|
|
|
int roll = (table == 1900 || table == 1500) ? 73 : 99; |
|
|
|
int roll = (table == 1900 || table == 1500) ? 73 : 99; |
|
|
|
GenTableEntry selectedRow = GenTableEntry.rollTable(table, roll, 1.0f); |
|
|
|
GenTableEntry selectedRow = GenTableEntry.rollTable(table, roll, 1.0f); |
|
|
|
if (selectedRow == null) { |
|
|
|
if (selectedRow == null) { |
|
|
@ -552,6 +562,7 @@ public enum LootManager { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static MobLoot rollForRune(int table, Mob mob) { |
|
|
|
public static MobLoot rollForRune(int table, Mob mob) { |
|
|
|
|
|
|
|
mob.parentZone.lastRuneDrop = System.currentTimeMillis(); |
|
|
|
int roll = (table == 1900 || table == 1500) ? 77 : 97; |
|
|
|
int roll = (table == 1900 || table == 1500) ? 77 : 97; |
|
|
|
GenTableEntry selectedRow = GenTableEntry.rollTable(table, roll, 1.0f); |
|
|
|
GenTableEntry selectedRow = GenTableEntry.rollTable(table, roll, 1.0f); |
|
|
|
if (selectedRow == null) { |
|
|
|
if (selectedRow == null) { |
|
|
|