forked from 2009Scape/Server
Added dialogue for Tarik
This commit is contained in:
parent
518b1962c6
commit
79911ee682
1 changed files with 49 additions and 0 deletions
|
|
@ -0,0 +1,49 @@
|
|||
package plugin.interaction.city.sophanem;
|
||||
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.plugin.InitializablePlugin;
|
||||
|
||||
/**
|
||||
* Stand-in until we get the real dialogue for Tarik
|
||||
* @author ceik
|
||||
*/
|
||||
|
||||
@InitializablePlugin
|
||||
public class TarikDialogue extends DialoguePlugin {
|
||||
public TarikDialogue() {
|
||||
/**
|
||||
* Empty
|
||||
*/
|
||||
}
|
||||
public TarikDialogue(Player player){super(player);}
|
||||
|
||||
@Override
|
||||
public DialoguePlugin newInstance(Player player) {
|
||||
return new TarikDialogue(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean open(Object... args){
|
||||
npc("I found this crazy looking pyramid here.","I can't seem to figure out what it's for.","Maybe you should head inside?");
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handle(int interfaceId, int buttonId){
|
||||
switch(stage){
|
||||
case 0:
|
||||
player("Oh, alright...");
|
||||
stage = 1;
|
||||
break;
|
||||
case 1:
|
||||
end();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int[] getIds() {
|
||||
return new int[] { 4478 };
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue