Schematics, gremlins, holiday items added. Untested
This commit is contained in:
54
src/main/java/mod/sin/items/WandPermaFrost.java
Normal file
54
src/main/java/mod/sin/items/WandPermaFrost.java
Normal file
@@ -0,0 +1,54 @@
|
||||
package mod.sin.items;
|
||||
|
||||
import com.wurmonline.server.MiscConstants;
|
||||
import com.wurmonline.server.items.*;
|
||||
import com.wurmonline.server.skills.SkillList;
|
||||
import org.gotti.wurmunlimited.modsupport.ItemTemplateBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class WandPermaFrost implements MiscConstants {
|
||||
public static Logger logger = Logger.getLogger(WandPermaFrost.class.getName());
|
||||
public static int templateId;
|
||||
String name = "wand of permafrost";
|
||||
|
||||
public void createTemplate() throws IOException {
|
||||
ItemTemplateBuilder itemBuilder = new ItemTemplateBuilder("mod.item.wand.permafrost");
|
||||
itemBuilder.name(name, "wands of permafrost", "A powerful wand containing a permafrost crystal.");
|
||||
itemBuilder.descriptions("brilliantly glowing", "strongly glowing", "faintly glowing", "barely glowing");
|
||||
itemBuilder.itemTypes(new short[]{
|
||||
ItemTypes.ITEM_TYPE_MAGIC,
|
||||
ItemTypes.ITEM_TYPE_FULLPRICE,
|
||||
ItemTypes.ITEM_TYPE_NOSELLBACK,
|
||||
ItemTypes.ITEM_TYPE_ALWAYS_BANKABLE
|
||||
});
|
||||
itemBuilder.imageNumber((short) 859);
|
||||
itemBuilder.behaviourType((short) 1);
|
||||
itemBuilder.combatDamage(0);
|
||||
itemBuilder.decayTime(Long.MAX_VALUE);
|
||||
itemBuilder.dimensions(1, 1, 1);
|
||||
itemBuilder.primarySkill((int) NOID);
|
||||
itemBuilder.bodySpaces(EMPTY_BYTE_PRIMITIVE_ARRAY);
|
||||
itemBuilder.modelName("model.valrei.");
|
||||
itemBuilder.difficulty(5.0f);
|
||||
itemBuilder.weightGrams(3000);
|
||||
itemBuilder.material(Materials.MATERIAL_CRYSTAL);
|
||||
itemBuilder.value(0);
|
||||
|
||||
ItemTemplate template = itemBuilder.build();
|
||||
templateId = template.getTemplateId();
|
||||
logger.info(name + " TemplateID: " + templateId);
|
||||
}
|
||||
|
||||
public void initCreationEntry() {
|
||||
logger.info("initCreationEntry()");
|
||||
if(templateId > 0){
|
||||
logger.info("Creating "+name+" creation entry, ID = "+templateId);
|
||||
CreationEntryCreator.createSimpleEntry(SkillList.SMITHING_GOLDSMITHING, CrystalPermaFrost.templateId, ItemList.shaft, templateId,
|
||||
true,true, 0, false, false, CreationCategories.JEWELRY);
|
||||
}else{
|
||||
logger.info(name+" does not have a template ID on creation entry.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user