forked from 2009Scape/Server
* Cleaned up some of the dialogue options Changed some dialogue expressions Minor spelling or grammar changes Added a missing dialogue or two * Found some more missing Chat Head IDs Refactored a few current Chat Head IDs (hence the many changes to other characters). * Added some missing dialogues after completing Cook's Assistant * Refactored the file from GrillieGroatsDialogue to GillieGroatsDialogue Added some facialexpressions to Gillie Removed some redundant code * Found some more missing Chat Head IDs Refactored a few current Chat Head IDs (hence the many changes to other characters). Very minor spelling fixes in the file * Refactored file from GrilieGroatsDialogue to GillieGroatsDialogue * Removed Void Knight Spawn in Edgeville Added Remaining Bankers and GrandExchangeClerks to the Grand Exchange * Adjustments to the previous dialogue additions
65 lines
1.3 KiB
Java
65 lines
1.3 KiB
Java
package plugin.dialogue;
|
|
|
|
import org.crandor.game.content.dialogue.DialoguePlugin;
|
|
import org.crandor.game.content.dialogue.FacialExpression;
|
|
import org.crandor.game.node.entity.npc.NPC;
|
|
import org.crandor.plugin.InitializablePlugin;
|
|
import org.crandor.game.node.entity.player.Player;
|
|
|
|
/**
|
|
* Represents the breoca dialogue plugin.
|
|
* @author 'Vexia
|
|
* @version 1.0
|
|
*/
|
|
@InitializablePlugin
|
|
public final class BreocaDialogue extends DialoguePlugin {
|
|
|
|
/**
|
|
* Constructs a new {@code BreocaDialogue} {@code Object}.
|
|
*/
|
|
public BreocaDialogue() {
|
|
/**
|
|
* empty.
|
|
*/
|
|
}
|
|
|
|
/**
|
|
* Constructs a new {@code BreocaDialogue} {@code Object}.
|
|
* @param player the player.
|
|
*/
|
|
public BreocaDialogue(Player player) {
|
|
super(player);
|
|
}
|
|
|
|
@Override
|
|
public DialoguePlugin newInstance(Player player) {
|
|
return new BreocaDialogue(player);
|
|
}
|
|
|
|
@Override
|
|
public boolean open(Object... args) {
|
|
npc = (NPC) args[0];
|
|
interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "Hi!");
|
|
stage = 0;
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public boolean handle(int interfaceId, int buttonId) {
|
|
switch (stage) {
|
|
case 0:
|
|
interpreter.sendDialogues(npc, FacialExpression.HALF_GUILTY, "Hello stranger.");
|
|
stage = 1;
|
|
break;
|
|
case 1:
|
|
end();
|
|
break;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public int[] getIds() {
|
|
return new int[] { 1084 };
|
|
}
|
|
}
|