forked from 2009Scape/Server
added basic urchin interaction
This commit is contained in:
parent
cfd9b2ebba
commit
450ecb41d5
2 changed files with 43 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
package plugin.interaction.city.pollnivneach;
|
||||
|
||||
public class AliTheKebabSeller {
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package plugin.interaction.city.pollnivneach;
|
||||
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.plugin.InitializablePlugin;
|
||||
|
||||
/**
|
||||
* Handles the street urchin npc TODO: Add more dialogue after/during the quest when it is implemented.
|
||||
* @author ceik
|
||||
*/
|
||||
@InitializablePlugin
|
||||
public class StreetUrchinDialogue extends DialoguePlugin {
|
||||
public StreetUrchinDialogue(){
|
||||
/**
|
||||
* Empty
|
||||
*/
|
||||
}
|
||||
|
||||
public StreetUrchinDialogue(Player player){super(player);}
|
||||
|
||||
@Override
|
||||
public DialoguePlugin newInstance(Player player){return new StreetUrchinDialogue(player);}
|
||||
|
||||
public boolean open(Object... args){
|
||||
player.getDialogueInterpreter().sendDialogue("This child doesn't seem interested in you.");
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean handle(int interfaceId, int buttonId){
|
||||
switch(stage){
|
||||
case 0:
|
||||
end();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public int[] getIds(){return new int[] {6357};}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue