Npc name override moved to runafterload.
This commit is contained in:
@@ -168,11 +168,6 @@ public class NPC extends AbstractCharacter {
|
|||||||
|
|
||||||
this.name = rs.getString("npc_name");
|
this.name = rs.getString("npc_name");
|
||||||
|
|
||||||
// Name override for npc
|
|
||||||
|
|
||||||
if (wordCount(this.name) < 2 && this.contract != null)
|
|
||||||
this.name += " the " + this.contract.getName();
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error("NPC: " + this.dbID + " :" + e);
|
Logger.error("NPC: " + this.dbID + " :" + e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -1047,6 +1042,11 @@ public class NPC extends AbstractCharacter {
|
|||||||
if (this.contract == null)
|
if (this.contract == null)
|
||||||
return; // Early exit for npc guild owners
|
return; // Early exit for npc guild owners
|
||||||
|
|
||||||
|
// Name override for this npc
|
||||||
|
|
||||||
|
if (wordCount(this.name) < 2 && this.contract != null)
|
||||||
|
this.name += " the " + this.contract.getName();
|
||||||
|
|
||||||
// Configure parent zone adding this NPC to the
|
// Configure parent zone adding this NPC to the
|
||||||
// zone collection
|
// zone collection
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user