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 #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();
|
||||
}
|
||||
Reference in New Issue
Block a user