Reformat and clean up npc scripts
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user