Added 9 more slots for quest kill objectives, and an option for kill quests to progress only if a player kills an NPC with that name.

Added quest interface support to get and modify data from specific quest types.
This commit is contained in:
luisc committed 2022-01-27 05:40:51 -06:00
1 parent 989effb5c5
commit f876f13d77
15 files changed
+155 -32

No files matched your search

@@ -45,7 +45,10 @@ public abstract class GuiNPCInterface extends GuiScreen
public int mouseX, mouseY;
public float bgScale = 1;
public float bgScaleX = 1;
public float bgScaleY = 1;
public float bgScaleZ = 1;
public GuiNPCInterface(EntityNPCInterface npc)
{
this.player = Minecraft.getMinecraft().thePlayer;
@@ -102,7 +105,7 @@ public abstract class GuiNPCInterface extends GuiScreen
gui.setWorldAndResolution(mc, 350, 250);
extra.put(gui.id, gui);
}
public void mouseClicked(int i, int j, int k)
{
if(AWTWindow != null)
@@ -202,11 +205,11 @@ public abstract class GuiNPCInterface extends GuiScreen
scrolls.put(scroll.id, scroll);
}
public GuiCustomScroll getScroll(int id){
return scrolls.get(id);
return scrolls.get(id);
}
public abstract void save();
@Override
public void drawScreen(int i, int j, float f){
if(AWTWindow != null){
@@ -223,12 +226,12 @@ public abstract class GuiNPCInterface extends GuiScreen
mouseY = j;
if(drawDefaultBackground && subgui == null)
drawDefaultBackground();
if(background != null && mc.renderEngine != null){
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glPushMatrix();
GL11.glTranslatef(guiLeft, guiTop, 0);
GL11.glScalef(bgScale, bgScale, bgScale);
GL11.glScalef(bgScale*bgScaleX, bgScale*bgScaleY, bgScale*bgScaleZ);
mc.renderEngine.bindTexture(background);
if(xSize > 256){
drawTexturedModalRect(0, 0, 0, 0, 250, ySize);