Reformat and clean up npc scripts

This commit is contained in:
P0nk
2021-09-09 23:35:02 +02:00
parent 0c1545f81d
commit d893309b4f
665 changed files with 19932 additions and 19046 deletions

View File

@@ -19,15 +19,17 @@
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/>.
*/
/* Shumi JQ Chest #1
*/
function start() {
prizes = [4020000,4020001,4020002,4020003,4020004];
if (cm.isQuestStarted(2055))
cm.gainItem(4031039,1);
else
cm.gainItem(4020000 + ((Math.random()*5)|0), 1);
prizes = [4020000, 4020001, 4020002, 4020003, 4020004];
if (cm.isQuestStarted(2055)) {
cm.gainItem(4031039, 1);
} else {
cm.gainItem(4020000 + ((Math.random() * 5) | 0), 1);
}
cm.warp(103000100, 0);
cm.dispose();
}