Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void talkTo(String npcName, String... chatOptions)
- if (getDialogues().canContinue()){
- ctx.getDialogues().continueDialogue();
- } else if (getDialogues().canEnterInput()){
- for(String chatOption : chatOptions){
- ctx.getDialogues().chooseOption(chatOption);
- }
- } else {
- NPC npc = ctx.getNpcs().closest(npcName);
- if (npc != null){
- if (npc.interact("Talk-to")){
- return Calculations.random(800,1200);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement