forked from 2009Scape/Server
Added dialogue for Awusah and Ghaslor
This commit is contained in:
parent
3e06143e8e
commit
efbf5db25d
2 changed files with 86 additions and 0 deletions
42
Server/src/plugin/interaction/city/nardah/Awusah.java
Normal file
42
Server/src/plugin/interaction/city/nardah/Awusah.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package plugin.interaction.city.nardah;
|
||||
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.plugin.InitializablePlugin;
|
||||
|
||||
/**
|
||||
* Handles Awusah pre-quest
|
||||
* @author ceik
|
||||
*/
|
||||
@InitializablePlugin
|
||||
public class Awusah extends DialoguePlugin {
|
||||
//TODO: Add dialogue for after the quest Spirits of Elid
|
||||
public Awusah(){
|
||||
/**
|
||||
* Empty
|
||||
*/
|
||||
}
|
||||
public Awusah(Player player){
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DialoguePlugin newInstance(Player player){return new Awusah(player);}
|
||||
|
||||
@Override
|
||||
public boolean open(Object... args){
|
||||
interpreter.sendDialogue("The mayor doesn't seem interested in talking to you right now.");
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handle(int interfaceId, int buttonId){
|
||||
switch(stage){
|
||||
case 0:
|
||||
end();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public int[] getIds() {return new int[] {3040};}
|
||||
}
|
||||
44
Server/src/plugin/interaction/city/nardah/Ghaslor.java
Normal file
44
Server/src/plugin/interaction/city/nardah/Ghaslor.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package plugin.interaction.city.nardah;
|
||||
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.plugin.InitializablePlugin;
|
||||
|
||||
/**
|
||||
* Handles Ghaslor dialogue
|
||||
* @author ceik
|
||||
*/
|
||||
|
||||
//TODO: Add post-quest dialogue
|
||||
@InitializablePlugin
|
||||
public class Ghaslor extends DialoguePlugin {
|
||||
public Ghaslor(){
|
||||
/**
|
||||
* empty
|
||||
*/
|
||||
}
|
||||
public Ghaslor(Player player){
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DialoguePlugin newInstance(Player player){return new Ghaslor(player);}
|
||||
|
||||
@Override
|
||||
public boolean open(Object... args){
|
||||
String gender = player.isMale() ? "gentleman" : "lady";
|
||||
npc("Good day young " + gender);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handle(int interfaceId, int buttonId){
|
||||
switch(stage) {
|
||||
case 0:
|
||||
end();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public int[] getIds() {return new int[] {3029};}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue