Skip to content

Commit

Permalink
Set herald NPC outfit using current resources
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Oct 13, 2023
1 parent 4df6044 commit c939e88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions data/sprites/npc/TOREMOVE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The following images can be removed after 1.45:

- heraldnpc.png
8 changes: 6 additions & 2 deletions src/games/stendhal/server/script/Herald.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* (C) Copyright 2003-2013 - Stendhal *
* (C) Copyright 2003-2023 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -18,6 +18,7 @@
import org.apache.log4j.Logger;

import games.stendhal.common.Direction;
import games.stendhal.common.constants.SkinColor;
import games.stendhal.common.grammar.Grammar;
import games.stendhal.common.parser.Sentence;
import games.stendhal.server.core.engine.SingletonRepository;
Expand Down Expand Up @@ -441,7 +442,10 @@ public void createDialog() {
}
};
zone.assignRPObjectID(npc);
npc.setEntityClass("heraldnpc");
npc.setOutfit("body=0,head=0,eyes=26,hair=8,dress=977,hat=8");
npc.setOutfitColor("skin", SkinColor.LIGHT);
npc.setOutfitColor("hair", 0xe66e38);
npc.setOutfitColor("hat", 0x5b5b5b);
npc.setPosition(x, y);
npc.initHP(100);
npc.setDirection(Direction.LEFT);
Expand Down

0 comments on commit c939e88

Please sign in to comment.