Properly developed the Marriage feature in the source. Added TRAVEL_RATE server flag, a modifier for the travel frequency rate. Corrected stance for players in 3rd party view when entering a map to work similarly as GMS. Fixed mobs spamming skills incoherently. Added code support for old GMS-like PQ NPCs, where party leaders just need to click once to start a new PQ. Implemented podium system for the Hall of Fame PlayerNPCs. Improved character load-out system, now using way less queries to the DB in the process. Fixed birthday field for accounts not being read correctly. Further implemented the incomplete yet-existing Scissors of Karma mechanic. Fixed Duey not propagating item flags when packaging an item. Added a custom buyback system. Refactored the character creation system, now offering support for Maple Life. Fixed some issues with the PlayerNPC positioning system. Added server flag allowing AP assignment for novices (beginners under level 11). Fixed Strategy Time (GPQ) announcement being sent twice to guilds in certain cases. Tweaked mount EXP system now awarding it accordingly with the amount of tiredness healed. Removed the randomness aspect of closeness gain when feeding the pet, now acting accordingly with amount of fullness gained. Fixed an exploit with Arwen script. Fixed travel-back from Florina forcefully sending players to Lith Harbor in certain situations. Thoroughly reviewed job skill questlines for Explorers and Aran. Localhost edit: removed MTS block in certain maps (useful for the buyback system). Localhost edit: removed party blocks for novices. Localhost edit: removed AP assigning block for novices. Localhost edit: removed speed cap. Localhost edit: removed Maker block popping up when inputting ATK gems on non-weapons.
68 lines
2.2 KiB
JavaScript
68 lines
2.2 KiB
JavaScript
/*
|
|
NPC Name: Insiginificant Being
|
|
Map(s): Dungeon : Another Entrance
|
|
Description: Takes you to another Dimension
|
|
*/
|
|
|
|
function start() {
|
|
if (cm.getQuestStatus(6107) == 1 || cm.getQuestStatus(6108) == 1) {
|
|
var ret = checkJob();
|
|
if (ret == -1) {
|
|
cm.sendOk("Please form a party and talk to me again.");
|
|
} else if (ret == 0) {
|
|
cm.sendOk("Please make sure that your party is a size of 2.");
|
|
} else if (ret == 1) {
|
|
cm.sendOk("One of your party member's job is not eligible for entering the other world.");
|
|
} else if (ret == 2) {
|
|
cm.sendOk("One of your party member's level is not eligible for entering the other world.");
|
|
} else {
|
|
var em = cm.getEventManager("s4aWorld");
|
|
if (em == null) {
|
|
cm.sendOk("You're not allowed to enter with unknown reason. Try again." );
|
|
} else if (em.getProperty("started").equals("true")) {
|
|
cm.sendOk("Someone else is already attempting to defeat the Jr.Balrog in another world." );
|
|
} else {
|
|
var eli = em.getEligibleParty(cm.getParty());
|
|
if(eli.size() > 0) {
|
|
if(!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
|
|
cm.sendOk("A party in your name is already registered in this event.");
|
|
}
|
|
} else {
|
|
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
cm.sendOk("You're not allowed to enter the other world with unknown reason.");
|
|
}
|
|
|
|
cm.dispose();
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
}
|
|
|
|
function checkJob() {
|
|
var party = cm.getParty();
|
|
|
|
if (party == null) {
|
|
return -1;
|
|
}
|
|
// if (party.getMembers().size() != 2) {
|
|
// return 0;
|
|
// }
|
|
var it = party.getMembers().iterator();
|
|
|
|
while (it.hasNext()) {
|
|
var cPlayer = it.next();
|
|
|
|
if (cPlayer.getJobId() == 312 || cPlayer.getJobId() == 322 || cPlayer.getJobId() == 900) {
|
|
if (cPlayer.getLevel() < 120) {
|
|
return 2;
|
|
}
|
|
} else {
|
|
return 1;
|
|
}
|
|
}
|
|
return 3;
|
|
} |