Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var status = 0;
- function start() {
- status = -1;
- action(1, 0, 0);
- }
- function action(mode, type, selection) {
- if (mode == -1) {
- cm.dispose();
- } else {
- if (mode == 0 && status == 1) {
- cm.dispose();
- return;
- }
- if (mode == 1)
- status++;
- else
- status--;
- if (status == 0) {
- cm.sendNext("Hello there #e#h ##n, I am the Practice Scripting NPC. What would you like to learn today? \r\n\r\n #L0#Teach me how to Script an NPC#l \r\n #L1#Learn from #bAngel#k#l \r\n #L2#Nevermind#l");
- } else if (status == 1) {
- if (selection == 0) {
- cm.sendSimple("Sorry, I'm currently out of lessons to give. See you next year!");
- cm.dispose();
- } else if (status == 2) {
- if (selection == 1) {
- cm.sendSimple("Excellent! #bAngel#k is probably at #rhome#k.");
- cm.dispose();
- } else if (status == 3) {
- if (selection == 2) {
- cm.sendSimple("A wise choice, my young friend.");
- cm.dispose();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement