Moved loot groups to mobile template scripts, moved respawn time to spawn service as last argument

Please no longer use loot in object template scripts and move them over
to the mobiles/ folder.
This commit is contained in:
Light2
2014-05-12 18:42:15 +02:00
parent 46a890ed92
commit 7fc5c44817
6 changed files with 65 additions and 11 deletions
+3
View File
@@ -100,6 +100,9 @@ public class SpawnService {
creature.setWeaponId(mobileTemplate.getCustomWeapon().getObjectID());
}*/
if(mobileTemplate.getLootGroups() != null)
creature.setLootGroups(mobileTemplate.getLootGroups());
creature.setOptionsBitmask(mobileTemplate.getOptionBitmask());
creature.setPvPBitmask(mobileTemplate.getPvpBitmask());
creature.setStfFilename("mob/creature_names"); // TODO: set other STFs for NPCs other than creatures