Nightsister Stronghold NPCs added

Patrols done
NS Quest NPCs added
Mobile template alternate naming option considered
Tool functions for easier static spawn creation written
Client POI nobuild error fixed
Client POI custom radius datatable added
This commit is contained in:
CharonInferar
2014-06-28 04:08:33 +02:00
parent bbbc26177f
commit e363a316a2
28 changed files with 941 additions and 75 deletions
+8 -2
View File
@@ -108,8 +108,14 @@ public class SpawnService {
creature.setFaction(mobileTemplate.getFaction());
creature.setFactionStatus(mobileTemplate.getFactionStatus());
creature.setPvpBitmask(mobileTemplate.getPvpBitmask());
creature.setStfFilename("mob/creature_names"); // TODO: set other STFs for NPCs other than creatures
creature.setStfName(mobileTemplate.getCreatureName());
if (mobileTemplate.getCustomName()==null){
creature.setStfFilename("mob/creature_names"); // TODO: set other STFs for NPCs other than creatures -> DONE
if (mobileTemplate.getStfFilename()!=null)
creature.setStfFilename(mobileTemplate.getStfFilename());
creature.setStfName(mobileTemplate.getCreatureName());
} else {
creature.setCustomName(mobileTemplate.getCustomName()); // For cases where no STF name can be found!
}
creature.setHeight(mobileTemplate.getScale());
int difficulty = mobileTemplate.getDifficulty();
creature.setDifficulty((byte) difficulty);