Quick fix-up + Happyville

Fixed bug introduced on last update regarding events without
event_schedule defined. Added path to Happyville maps, and raid boss
event.
This commit is contained in:
ronancpl
2017-04-26 16:01:12 -03:00
parent 939b214fb5
commit f5fbb038e9
35 changed files with 1138 additions and 422 deletions

View File

@@ -19,11 +19,30 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* 2001004 - Scarf Snowman
@author Ronan
*/
var status = -1;
function start() {
cm.sendYesNo("We have a beautiful christmas tree.\r\nDo you want to see/decorate it?");
action(1,0,0);
}
function action(m, t, s) {
if (m > 0)
cm.warp(209000001);
cm.dispose();
function action(mode, type, selection) {
if (mode < 0)
cm.dispose();
else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendYesNo("So, are you ready to head out of here?");
} else if(status == 1) {
cm.warp(209000000, 3);
cm.dispose();
}
}
}