forked from 2009Scape/Server
Added basic dialogue for black jack seller
This commit is contained in:
parent
39b2d95d63
commit
bbcf3e86d2
1 changed files with 39 additions and 1 deletions
|
|
@ -1,4 +1,42 @@
|
|||
package plugin.interaction.city.pollnivneach;
|
||||
|
||||
public class BlackJackSeller {
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.plugin.InitializablePlugin;
|
||||
|
||||
/**
|
||||
* Stand-in dialogue for Black Jack Seller til blackjacking/the quest is implemented
|
||||
* @author ceik
|
||||
*/
|
||||
@InitializablePlugin
|
||||
public class BlackJackSeller extends DialoguePlugin {
|
||||
public BlackJackSeller(){
|
||||
/**
|
||||
* empty.
|
||||
*/
|
||||
}
|
||||
public BlackJackSeller(Player player){super(player);}
|
||||
|
||||
@Override
|
||||
public DialoguePlugin newInstance(Player player){return new BlackJackSeller(player);}
|
||||
|
||||
@Override
|
||||
public boolean open(Object... args){
|
||||
npc("I'm not interested in selling to you. Not yet...");
|
||||
stage = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handle(int intefaceId, int objectId){
|
||||
switch(stage){
|
||||
case 0:
|
||||
end();
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getIds() {return new int[] {2548};}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue