Browse Source

Runes and Booties ID set in constructor for mobs and npcs.

master
MagicBot 2 years ago
parent
commit
73d2129394
  1. 4
      src/engine/objects/Mob.java
  2. 2
      src/engine/objects/NPC.java

4
src/engine/objects/Mob.java

@ -108,6 +108,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -108,6 +108,8 @@ public class Mob extends AbstractIntelligenceAgent {
private boolean lootSync = false;
private int fidalityID = 0;
private int equipmentSetID = 0;
public int runeSetID = 0;
public int bootySetID = 0;
private int lootSet = 0;
private boolean isGuard;
private ArrayList<Integer> fidelityRunes = null;
@ -298,6 +300,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -298,6 +300,8 @@ public class Mob extends AbstractIntelligenceAgent {
this.fidalityID = rs.getInt("fidalityID");
this.equipmentSetID = rs.getInt("equipmentSet");
this.runeSetID = rs.getInt("runeSet");
this.bootySetID = rs.getInt("bootySet");
if (this.contract != null)
this.equipmentSetID = this.contract.getEquipmentSet();

2
src/engine/objects/NPC.java

@ -95,6 +95,7 @@ public class NPC extends AbstractCharacter { @@ -95,6 +95,7 @@ public class NPC extends AbstractCharacter {
public HashMap<Integer, MobEquipment> equip = null;
private String nameOverride = "";
private int equipmentSetID = 0;
public int runeSetID = 0;
private int slot;
private Regions region = null;
@ -189,6 +190,7 @@ public class NPC extends AbstractCharacter { @@ -189,6 +190,7 @@ public class NPC extends AbstractCharacter {
this.contract = DbManager.ContractQueries.GET_CONTRACT(contractID);
this.fidalityID = (rs.getInt("fidalityID"));
this.equipmentSetID = rs.getInt("equipmentSet");
this.runeSetID = rs.getInt("runeSet");
if (this.equipmentSetID == 0 && this.contract != null)
this.equipmentSetID = this.contract.equipmentSet;

Loading…
Cancel
Save