use the dialogue handler I'm sure delta has one I'll post mine but I use PI so maybe you can convert or get the basic idea for one.
Code:
case 29:
sendNpcChat4("Hello there "+c.playerName+"!"," I have the ability to lock your exp!","Ofcourse, you are able to unlock afterwards","What would you like me to do?", c.talkingNpc, "Town Crier");
c.nextChat = 30;
break;
case 30:
sendOption3("Master", "Pure", "Zerker");
c.dialogueAction = 100;
break;
Just start with that then go into your clicking buttons method and add from there