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 #3
*/
function start() {
prizes = [4010001,4010002,4010003,4010004,4010005,4010006,4010007];
if (cm.isQuestStarted(2057))
cm.gainItem(4031041,1);
else
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)],1);
prizes = [4010001, 4010002, 4010003, 4010004, 4010005, 4010006, 4010007];
if (cm.isQuestStarted(2057)) {
cm.gainItem(4031041, 1);
} else {
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)], 1);
}
cm.warp(103000100, 0);
cm.dispose();
}