Merge branch 'master' of https://github.com/ronancpl/HeavenMS into credits_update

This commit is contained in:
ronancpl
2019-11-14 22:35:43 -03:00
864 changed files with 20650 additions and 11188 deletions

View File

@@ -19,8 +19,11 @@
*/
function enter(pi) {
if(pi.isQuestStarted(3367)) {
if(pi.getQuestProgress(3367, 31) < pi.getItemQuantity(4031797)) {
pi.gainItem(4031797, pi.getQuestProgress(3367, 31) - pi.getItemQuantity(4031797));
var booksDone = pi.getQuestProgressInt(3367, 31);
var booksInv = pi.getItemQuantity(4031797);
if(booksInv < booksDone) {
pi.gainItem(4031797, booksDone - booksInv);
}
pi.playPortalSound(); pi.warp(926130102, 0);