594 lines
16 KiB
JavaScript
594 lines
16 KiB
JavaScript
main.floors.MT165=
|
|
{
|
|
"floorId": "MT165",
|
|
"title": "最后的大学",
|
|
"name": "最后的大学",
|
|
"width": 13,
|
|
"height": 13,
|
|
"canFlyTo": true,
|
|
"canFlyFrom": true,
|
|
"canUseQuickShop": true,
|
|
"cannotViewMap": false,
|
|
"images": [
|
|
{
|
|
"name": "yuzhou.jpg",
|
|
"canvas": "bg",
|
|
"x": 0,
|
|
"y": 0
|
|
}
|
|
],
|
|
"ratio": 1,
|
|
"defaultGround": "ground",
|
|
"bgm": "gaolikangzhi.mp3",
|
|
"firstArrive": [],
|
|
"eachArrive": [],
|
|
"parallelDo": "var lastTime = core.getFlag('lastTime', 0);\n\nif (timestamp - lastTime > 60) {\n\tvar image = core.material.images.images[\"yuzhou.jpg\"];\n\tvar width = 416,\n\t\theight = 416;\n\n\tcore.canvas.bg.translate(width / 2, height / 2);\n\tcore.canvas.bg.rotate(Math.PI / 180 / 6);\n\tcore.canvas.bg.translate(-width / 2, -height / 2);\n\tcore.canvas.bg.drawImage(image, -150, -140);\n\n\tcore.setFlag('lastTime', timestamp);\n\n\tvar rotateTime = core.getFlag('rotateTime', 0);\n\trotateTime += 1;\n\tif (rotateTime >= 6 * 180) {\n\t\trotateTime -= 6 * 180;\n\t}\n\tcore.setFlag('rotateTime', rotateTime);\n}",
|
|
"events": {
|
|
"6,1": [
|
|
{
|
|
"type": "openShop",
|
|
"id": "shop3",
|
|
"open": true
|
|
}
|
|
]
|
|
},
|
|
"changeFloor": {
|
|
"6,12": {
|
|
"floorId": "MT164",
|
|
"loc": [
|
|
6,
|
|
0
|
|
]
|
|
},
|
|
"12,6": {
|
|
"floorId": "MT166",
|
|
"loc": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"beforeBattle": {},
|
|
"afterBattle": {
|
|
"10,6": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"7,10": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"4,8": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"4,6": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,11": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"3,5": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"0,9": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,4": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"9,7": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"9,5": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"6,7": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"3,9": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"0,5": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"11,8": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"8,2": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"4,2": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"2,0": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"3,11": [
|
|
{
|
|
"type": "setValue",
|
|
"name": "item:I963",
|
|
"operator": "+=",
|
|
"value": "6"
|
|
},
|
|
{
|
|
"type": "setValue",
|
|
"name": "flag:dasishenghuo",
|
|
"operator": "+=",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"type": "if",
|
|
"condition": "(flag:dasishenghuo==165)",
|
|
"true": [
|
|
{
|
|
"type": "openDoor",
|
|
"loc": [
|
|
6,
|
|
1
|
|
],
|
|
"floorId": "MT178"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"afterGetItem": {},
|
|
"afterOpenDoor": {},
|
|
"autoEvent": {},
|
|
"cannotMove": {},
|
|
"cannotMoveIn": {},
|
|
"map": [
|
|
[912, 0,549, 0,891, 4,101, 4,886, 0,887, 0, 4],
|
|
[893,912, 4,890, 0, 4,102, 4, 0,886, 0,887, 4],
|
|
[ 4, 4, 4, 4,550, 4, 47, 4,550, 4, 4, 82, 4],
|
|
[891, 4, 0, 21, 0, 4,912, 4, 0,912, 81,910, 0],
|
|
[892, 4,887, 0,886, 4,546, 4,892, 0, 4, 0,910],
|
|
[950, 4, 4,546, 4, 4, 83, 4, 4,546, 4, 4, 4],
|
|
[ 0,912, 21, 0,949, 81, 0, 82,911, 0,529, 21, 94],
|
|
[ 4, 4, 4, 4, 4, 4,529, 4, 4,546, 4, 4, 4],
|
|
[ 0,887,886, 0,949, 81, 0, 4,886, 0, 21,950, 0],
|
|
[546, 4, 4,950, 4, 4,885, 4, 0,887, 0, 4,891],
|
|
[890, 4,892, 0,912, 4, 0,528, 21, 0,888, 4,890],
|
|
[892, 4, 0,540, 0, 4, 21, 4,949, 4, 4, 4, 4],
|
|
[ 4, 4, 4,934, 4, 4, 93, 4, 0,913, 0, 82,914]
|
|
],
|
|
"bgmap": [
|
|
|
|
],
|
|
"fgmap": [
|
|
|
|
],
|
|
"bg2map": [
|
|
|
|
],
|
|
"fg2map": [
|
|
|
|
],
|
|
"flyPoint": [
|
|
6,
|
|
12
|
|
]
|
|
} |