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 #2
*/
function start() {
prizes = [4020005,4020006,4020007,4020008,4010000];
if (cm.isQuestStarted(2056))
cm.gainItem(4031040,1);
else
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)],1);
prizes = [4020005, 4020006, 4020007, 4020008, 4010000];
if (cm.isQuestStarted(2056)) {
cm.gainItem(4031040, 1);
} else {
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)], 1);
}
cm.warp(103000100, 0);
cm.dispose();
}