• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[SourceDev] Adding Hilla Expedition

Newbie Spellweaver
Joined
Feb 14, 2011
Messages
58
Reaction score
2
Can anyone help me? am i missing something?

In ExpeditionType.java

Code:
public enum ExpeditionType {
    Normal_Balrog(15, 2001, 50, 200),
    Horntail(30, 2003, 80, 200),
    Zakum(30, 2002, 50, 200),
    Chaos_Zakum(30, 2005, 100, 200),
    ChaosHT(30, 2006, 110, 200),
    Pink_Bean(30, 2004, 140, 200),
    CWKPQ(30, 2007, 90, 200),
    Von_Leon(30, 2008, 120, 200),
    Cygnus(18, 2009, 170, 200);
    Hilla(30, 2010, 70, 120);

MapleClient.java

Code:
                        case 240060200: //HT
                            questID = 160100;
                            break;
                        case 240060201: //ChaosHT
                            questID = 160103;
                            break;
                        case 280030000: //Zakum
                            questID = 160101;
                            break;
                        case 280030001: //ChaosZakum
                            questID = 160102;
                            break;
                        case 270050100: //PB
                            questID = 160101;
                            break;
                        case 105100300: //Balrog
                        case 105100400: //Balrog
                            questID = 160106;
                            break;
                        case 211070000: //VonLeon
                        case 211070100: //VonLeon
                        case 211070101: //VonLeon
                        case 211070110: //VonLeon
                            questID = 160107;
                            break;
                        case 551030200: //scartar
                            questID = 160108;
                            break;
                        case 271040100: //cygnus
                            questID = 160109;
                            break;
                        case 262031300: // hilla   
                            questID = 160110;
                            break;
                        case 272030400: 
                            questID = 160111;
                            break;

MapleSquad.java
Code:
public static enum MapleSquadType {
        bossbalrog(2), zak(2), chaoszak(3), horntail(2), chaosht(3), pinkbean(3), nmm_squad(2), vergamot(2), dunas(2), nibergen_squad(2), dunas2(2), core_blaze(2), aufheben(2), cwkpq(10), tokyo_2095(2), vonleon(3), scartar(2), cygnus(3), hilla(1), arkarium(3);

MapleMap.java
Code:
    public final MapleSquad getSquadByMap() {
        MapleSquadType zz = null;
        switch (mapid) {
            case 105100400:
            case 105100300:
                zz = MapleSquadType.bossbalrog;
                break;
            case 280030000:
                zz = MapleSquadType.zak;
                break;
            case 280030001:
                zz = MapleSquadType.chaoszak;
                break;
            case 240060200:
                zz = MapleSquadType.horntail;
                break;
            case 240060201:
                zz = MapleSquadType.chaosht;
                break;
            case 270050100:
                zz = MapleSquadType.pinkbean;
                break;
            case 802000111:
                zz = MapleSquadType.nmm_squad;
                break;
            case 802000211:
                zz = MapleSquadType.vergamot;
                break;
            case 802000311:
                zz = MapleSquadType.tokyo_2095;
                break;
            case 802000411:
                zz = MapleSquadType.dunas;
                break;
            case 802000611:
                zz = MapleSquadType.nibergen_squad;
                break;
            case 802000711:
                zz = MapleSquadType.dunas2;
                break;
            case 802000801:
            case 802000802:
            case 802000803:
                zz = MapleSquadType.core_blaze;
                break;
            case 802000821:
            case 802000823:
                zz = MapleSquadType.aufheben;
                break;
            case 211070100:
            case 211070101:
            case 211070110:
                zz = MapleSquadType.vonleon;
                break;
            case 551030200:
                zz = MapleSquadType.scartar;
                break;
            case 271040100:
                zz = MapleSquadType.cygnus;
                break;
			case 262031300:   
                 em = "HillaBattle";
                break;
            case 272020110:
            case 272030400:
                em = "ArkariumBattle";
                  break;

Code:
} else if (mobid == 8870000 && mapid == 262031300) { //hilla
            World.Broadcast.broadcastMessage(CWvsContext.serverNotice(6, "Hilla is dead."));
            charactersLock.readLock().lock();
            try {
                for (MapleCharacter c : characters) {
                }
            } finally {
                charactersLock.readLock().unlock();
            }
            if (speedRunStart > 0) {
                type = ExpeditionType.Hilla;
            }

PartySearchType.java
Code:
public enum PartySearchType {
    Kerning(20, 200, 1000, false),
    Ludi(30, 200, 1001, false),
    Orbis(50, 200, 1002, false),
    Pirate(60, 200, 1003, false),
    Magatia(70, 200, 1004, false),
    ElinForest(40, 200, 1005, false),
    Pyramid(40, 200, 1008, false),
    Dragonica(100, 200, 1009, false), //what the fk
    Hoblin(80, 200, 1011, false),
    Henesys(10, 200, 1012, false),
    Dojo(25, 200, 1013, false),

    Balrog_Normal(50, 200, 2001, true),
    Zakum(50, 200, 2002, true),
    Horntail(80, 200, 2003, true),
    PinkBean(140, 200, 2004, true),
    ChaosZakum(100, 200, 2005, true),
    ChaosHT(110, 200, 2006, true),
    CWKPQ(90, 200, 2007, true),
    VonLeon(120, 200, 2008, true);
	Hilla(120, 200, 2009, true);

NetBeans Error while compiling

Code:
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\ExpeditionType.java:13: error: invalid method declaration; return type required
    Hilla(30, 2010, 70, 120);
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\ExpeditionType.java:13: error: illegal start of type
    Hilla(30, 2010, 70, 120);
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\ExpeditionType.java:13: error: illegal start of type
    Hilla(30, 2010, 70, 120);
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\ExpeditionType.java:13: error: illegal start of type
    Hilla(30, 2010, 70, 120);
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\ExpeditionType.java:13: error: illegal start of type
    Hilla(30, 2010, 70, 120);
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\PartySearchType.java:24: error: invalid method declaration; return type required
	Hilla(120, 200, 2009, true);
	^
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\PartySearchType.java:24: error: illegal start of type
	Hilla(120, 200, 2009, true);
	      ^
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\PartySearchType.java:24: error: illegal start of type
	Hilla(120, 200, 2009, true);
	           ^
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\PartySearchType.java:24: error: illegal start of type
	Hilla(120, 200, 2009, true);
	                ^
C:\Documents and Settings\Administrator\Desktop\v116\src\handling\world\exped\PartySearchType.java:24: error: illegal start of type
	Hilla(120, 200, 2009, true);
	                      ^
10 errors
 
至死不渝
Joined
Dec 31, 2008
Messages
454
Reaction score
33
Firstly...
Code:
public enum ExpeditionType {
    Normal_Balrog(15, 2001, 50, 200),
    Horntail(30, 2003, 80, 200),
    Zakum(30, 2002, 50, 200),
    Chaos_Zakum(30, 2005, 100, 200),
    ChaosHT(30, 2006, 110, 200),
    Pink_Bean(30, 2004, 140, 200),
    CWKPQ(30, 2007, 90, 200),
    Von_Leon(30, 2008, 120, 200),
    Cygnus(18, 2009, 170, 200)[COLOR="#FF0000"];[/COLOR]
    Hilla(30, 2010, 70, 120)[COLOR="#FF0000"];[/COLOR]

Then..
Code:
    VonLeon(120, 200, 2008, true)[COLOR="#FF0000"];[/COLOR]
	Hilla(120, 200, 2009, true)[COLOR="#FF0000"];[/COLOR]

See what's wrong..?
 
Upvote 0
Newbie Spellweaver
Joined
Feb 14, 2011
Messages
58
Reaction score
2
Firstly...
Code:
public enum ExpeditionType {
    Normal_Balrog(15, 2001, 50, 200),
    Horntail(30, 2003, 80, 200),
    Zakum(30, 2002, 50, 200),
    Chaos_Zakum(30, 2005, 100, 200),
    ChaosHT(30, 2006, 110, 200),
    Pink_Bean(30, 2004, 140, 200),
    CWKPQ(30, 2007, 90, 200),
    Von_Leon(30, 2008, 120, 200),
    Cygnus(18, 2009, 170, 200)[COLOR="#FF0000"];[/COLOR]
    Hilla(30, 2010, 70, 120)[COLOR="#FF0000"];[/COLOR]

Then..
Code:
    VonLeon(120, 200, 2008, true)[COLOR="#FF0000"];[/COLOR]
	Hilla(120, 200, 2009, true)[COLOR="#FF0000"];[/COLOR]

See what's wrong..?

Am i missing something? This is the npc script for Hilla. Ingame when i click on her it says the event isn't started, please contact a gm


Code:
var status = -1;

function start() {
	if (cm.getPlayer().getMapId() == 262031300) {
		cm.sendYesNo("Would you like to get out?");
		status = 1;
		return;
	}
		if (cm.getPlayer().getLevel() < 120) {
			cm.sendOk("There is a level requirement of 120 to attempt Hilla.");
			cm.dispose();
			return;
		}
		if (cm.getPlayer().getClient().getChannel() != 1 && cm.getPlayer().getClient().getChannel() != 2) {
			cm.sendOk("Hilla may only be attempted on channel 1 and 2.");
			cm.dispose();
			return;
		}
    var em = cm.getEventManager("HillaBattle");

    if (em == null) {
	cm.sendOk("The event isn't started, please contact a GM.");
	cm.dispose();
	return;
    }
    var eim_status = em.getProperty("state");
	    var marr = cm.getQuestRecord(160110);
	    var data = marr.getCustomData();
	    if (data == null) {
		marr.setCustomData("0");
	        data = "0";
	    }
	    var time = parseInt(data);
	if (eim_status == null || eim_status.equals("0")) {
    var squadAvailability = cm.getSquadAvailability("Hilla");
    if (squadAvailability == -1) {
	status = 0;
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
	cm.sendYesNo("Are you interested in becoming the leader of the expedition Squad?");

    } else if (squadAvailability == 1) {
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
	// -1 = Cancelled, 0 = not, 1 = true
	var type = cm.isSquadLeader("Hilla");
	if (type == -1) {
	    cm.sendOk("The squad has ended, please re-register.");
	    cm.dispose();
	} else if (type == 0) {
	    var memberType = cm.isSquadMember("Hilla");
	    if (memberType == 2) {
		cm.sendOk("You been banned from the squad.");
		cm.dispose();
	    } else if (memberType == 1) {
		status = 5;
		cm.sendSimple("What would you like to do? \r\n#b#L0#Join the squad#l \r\n#b#L1#Leave the squad#l \r\n#b#L2#See the list of members on the squad#l");
	    } else if (memberType == -1) {
		cm.sendOk("The squad has ended, please re-register.");
		cm.dispose();
	    } else {
		status = 5;
		cm.sendSimple("What would you like to do? \r\n#b#L0#Join the squad#l \r\n#b#L1#Leave the squad#l \r\n#b#L2#See the list of members on the squad#l");
	    }
	} else { // Is leader
	    status = 10;
	    cm.sendSimple("What do you want to do, expedition leader? \r\n#b#L0#View expedition list#l \r\n#b#L1#Kick from expedition#l \r\n#b#L2#Remove user from ban list#l \r\n#r#L3#Select expedition team and enter#l");
	// TODO viewing!
	}
	    } else {
			var eim = cm.getDisconnected("HillaBattle");
			if (eim == null) {
				var squd = cm.getSquad("Hilla");
				if (squd != null) {
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
					cm.sendYesNo("The squad's battle against the boss has already begun.\r\n" + squd.getNextPlayer());
					status = 3;
				} else {
					cm.sendOk("The squad's battle against the boss has already begun.");
					cm.safeDispose();
				}
			} else {
				cm.sendYesNo("Ah, you have returned. Would you like to join your squad in the fight again?");
				status = 2;
			}
	    }
	} else {
			var eim = cm.getDisconnected("HillaBattle");
			if (eim == null) {
				var squd = cm.getSquad("Hilla");
				if (squd != null) {
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
					cm.sendYesNo("The squad's battle against the boss has already begun.\r\n" + squd.getNextPlayer());
					status = 3;
				} else {
					cm.sendOk("The squad's battle against the boss has already begun.");
					cm.safeDispose();
				}
			} else {
				cm.sendYesNo("Ah, you have returned. Would you like to join your squad in the fight again?");
				status = 2;
			}
	}
}

function action(mode, type, selection) {
    switch (status) {
	case 0:
	    if (mode == 1) {
			if (cm.registerSquad("Hilla", 5, " has been named the Leader of the squad. If you would you like to join please register for the Expedition Squad within the time period.")) {
				cm.sendOk("You have been named the Leader of the Squad. For the next 5 minutes, you can add the members of the Expedition Squad.");
			} else {
				cm.sendOk("An error has occurred adding your squad.");
			}
	    }
	    cm.dispose();
	    break;
	case 1:
	    if (mode == 1) {
		cm.warp(262010000, 0);
	    }
	    cm.dispose();
	    break;
	case 2:
		if (!cm.reAdd("HillaBattle", "Hilla")) {
			cm.sendOk("Error... please try again.");
		}
		cm.safeDispose();
		break;
	case 3:
		if (mode == 1) {
			var squd = cm.getSquad("Hilla");
			if (squd != null && !squd.getAllNextPlayer().contains(cm.getPlayer().getName())) {
				squd.setNextPlayer(cm.getPlayer().getName());
				cm.sendOk("You have reserved the spot.");
			}
		}
		cm.dispose();
		break;
	case 5:
	    if (selection == 0) { // join
		var ba = cm.addMember("Hilla", true);
		if (ba == 2) {
		    cm.sendOk("The squad is currently full, please try again later.");
		} else if (ba == 1) {
		    cm.sendOk("You have joined the squad successfully");
		} else {
		    cm.sendOk("You are already part of the squad.");
		}
	    } else if (selection == 1) {// withdraw
		var baa = cm.addMember("Hilla", false);
		if (baa == 1) {
		    cm.sendOk("You have withdrawed from the squad successfully");
		} else {
		    cm.sendOk("You are not part of the squad.");
		}
	    } else if (selection == 2) {
		if (!cm.getSquadList("Hilla", 0)) {
		    cm.sendOk("Due to an unknown error, the request for squad has been denied.");
		}
	    }
	    cm.dispose();
	    break;
	case 10:
	    if (mode == 1) {
		if (selection == 0) {
		    if (!cm.getSquadList("Hilla", 0)) {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
		    }
		    cm.dispose();
		} else if (selection == 1) {
		    status = 11;
		    if (!cm.getSquadList("Hilla", 1)) {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
			cm.dispose();
		    }
		} else if (selection == 2) {
		    status = 12;
		    if (!cm.getSquadList("Hilla", 2)) {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
			cm.dispose();
		    }
		} else if (selection == 3) { // get insode
		    if (cm.getSquad("Hilla") != null) {
			var dd = cm.getEventManager("HillaBattle");
			dd.startInstance(cm.getSquad("Hilla"), cm.getMap(), 160110);
		    } else {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
		    }
		    cm.dispose();
		}
	    } else {
		cm.dispose();
	    }
	    break;
	case 11:
	    cm.banMember("Hilla", selection);
	    cm.dispose();
	    break;
	case 12:
	    if (selection != -1) {
		cm.acceptMember("Hilla", selection);
	    }
	    cm.dispose();
	    break;
    }
}
 
Upvote 0
UNTIL THEN!
Loyal Member
Joined
Mar 5, 2011
Messages
1,086
Reaction score
213
Am i missing something? This is the npc script for Hilla. Ingame when i click on her it says the event isn't started, please contact a gm


Code:
var status = -1;

function start() {
	if (cm.getPlayer().getMapId() == 262031300) {
		cm.sendYesNo("Would you like to get out?");
		status = 1;
		return;
	}
		if (cm.getPlayer().getLevel() < 120) {
			cm.sendOk("There is a level requirement of 120 to attempt Hilla.");
			cm.dispose();
			return;
		}
		if (cm.getPlayer().getClient().getChannel() != 1 && cm.getPlayer().getClient().getChannel() != 2) {
			cm.sendOk("Hilla may only be attempted on channel 1 and 2.");
			cm.dispose();
			return;
		}
    var em = cm.getEventManager("HillaBattle");

    if (em == null) {
	cm.sendOk("The event isn't started, please contact a GM.");
	cm.dispose();
	return;
    }
    var eim_status = em.getProperty("state");
	    var marr = cm.getQuestRecord(160110);
	    var data = marr.getCustomData();
	    if (data == null) {
		marr.setCustomData("0");
	        data = "0";
	    }
	    var time = parseInt(data);
	if (eim_status == null || eim_status.equals("0")) {
    var squadAvailability = cm.getSquadAvailability("Hilla");
    if (squadAvailability == -1) {
	status = 0;
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
	cm.sendYesNo("Are you interested in becoming the leader of the expedition Squad?");

    } else if (squadAvailability == 1) {
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
	// -1 = Cancelled, 0 = not, 1 = true
	var type = cm.isSquadLeader("Hilla");
	if (type == -1) {
	    cm.sendOk("The squad has ended, please re-register.");
	    cm.dispose();
	} else if (type == 0) {
	    var memberType = cm.isSquadMember("Hilla");
	    if (memberType == 2) {
		cm.sendOk("You been banned from the squad.");
		cm.dispose();
	    } else if (memberType == 1) {
		status = 5;
		cm.sendSimple("What would you like to do? \r\n#b#L0#Join the squad#l \r\n#b#L1#Leave the squad#l \r\n#b#L2#See the list of members on the squad#l");
	    } else if (memberType == -1) {
		cm.sendOk("The squad has ended, please re-register.");
		cm.dispose();
	    } else {
		status = 5;
		cm.sendSimple("What would you like to do? \r\n#b#L0#Join the squad#l \r\n#b#L1#Leave the squad#l \r\n#b#L2#See the list of members on the squad#l");
	    }
	} else { // Is leader
	    status = 10;
	    cm.sendSimple("What do you want to do, expedition leader? \r\n#b#L0#View expedition list#l \r\n#b#L1#Kick from expedition#l \r\n#b#L2#Remove user from ban list#l \r\n#r#L3#Select expedition team and enter#l");
	// TODO viewing!
	}
	    } else {
			var eim = cm.getDisconnected("HillaBattle");
			if (eim == null) {
				var squd = cm.getSquad("Hilla");
				if (squd != null) {
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
					cm.sendYesNo("The squad's battle against the boss has already begun.\r\n" + squd.getNextPlayer());
					status = 3;
				} else {
					cm.sendOk("The squad's battle against the boss has already begun.");
					cm.safeDispose();
				}
			} else {
				cm.sendYesNo("Ah, you have returned. Would you like to join your squad in the fight again?");
				status = 2;
			}
	    }
	} else {
			var eim = cm.getDisconnected("HillaBattle");
			if (eim == null) {
				var squd = cm.getSquad("Hilla");
				if (squd != null) {
	    if (time + (1 * 3600000) >= cm.getCurrentTime() && !cm.getPlayer().isGM()) {
		cm.sendOk("You have already went to Hilla in the past 1 hours. Time left: " + cm.getReadableMillis(cm.getCurrentTime(), time + (24 * 3600000)));
		cm.dispose();
		return;
	    }
					cm.sendYesNo("The squad's battle against the boss has already begun.\r\n" + squd.getNextPlayer());
					status = 3;
				} else {
					cm.sendOk("The squad's battle against the boss has already begun.");
					cm.safeDispose();
				}
			} else {
				cm.sendYesNo("Ah, you have returned. Would you like to join your squad in the fight again?");
				status = 2;
			}
	}
}

function action(mode, type, selection) {
    switch (status) {
	case 0:
	    if (mode == 1) {
			if (cm.registerSquad("Hilla", 5, " has been named the Leader of the squad. If you would you like to join please register for the Expedition Squad within the time period.")) {
				cm.sendOk("You have been named the Leader of the Squad. For the next 5 minutes, you can add the members of the Expedition Squad.");
			} else {
				cm.sendOk("An error has occurred adding your squad.");
			}
	    }
	    cm.dispose();
	    break;
	case 1:
	    if (mode == 1) {
		cm.warp(262010000, 0);
	    }
	    cm.dispose();
	    break;
	case 2:
		if (!cm.reAdd("HillaBattle", "Hilla")) {
			cm.sendOk("Error... please try again.");
		}
		cm.safeDispose();
		break;
	case 3:
		if (mode == 1) {
			var squd = cm.getSquad("Hilla");
			if (squd != null && !squd.getAllNextPlayer().contains(cm.getPlayer().getName())) {
				squd.setNextPlayer(cm.getPlayer().getName());
				cm.sendOk("You have reserved the spot.");
			}
		}
		cm.dispose();
		break;
	case 5:
	    if (selection == 0) { // join
		var ba = cm.addMember("Hilla", true);
		if (ba == 2) {
		    cm.sendOk("The squad is currently full, please try again later.");
		} else if (ba == 1) {
		    cm.sendOk("You have joined the squad successfully");
		} else {
		    cm.sendOk("You are already part of the squad.");
		}
	    } else if (selection == 1) {// withdraw
		var baa = cm.addMember("Hilla", false);
		if (baa == 1) {
		    cm.sendOk("You have withdrawed from the squad successfully");
		} else {
		    cm.sendOk("You are not part of the squad.");
		}
	    } else if (selection == 2) {
		if (!cm.getSquadList("Hilla", 0)) {
		    cm.sendOk("Due to an unknown error, the request for squad has been denied.");
		}
	    }
	    cm.dispose();
	    break;
	case 10:
	    if (mode == 1) {
		if (selection == 0) {
		    if (!cm.getSquadList("Hilla", 0)) {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
		    }
		    cm.dispose();
		} else if (selection == 1) {
		    status = 11;
		    if (!cm.getSquadList("Hilla", 1)) {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
			cm.dispose();
		    }
		} else if (selection == 2) {
		    status = 12;
		    if (!cm.getSquadList("Hilla", 2)) {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
			cm.dispose();
		    }
		} else if (selection == 3) { // get insode
		    if (cm.getSquad("Hilla") != null) {
			var dd = cm.getEventManager("HillaBattle");
			dd.startInstance(cm.getSquad("Hilla"), cm.getMap(), 160110);
		    } else {
			cm.sendOk("Due to an unknown error, the request for squad has been denied.");
		    }
		    cm.dispose();
		}
	    } else {
		cm.dispose();
	    }
	    break;
	case 11:
	    cm.banMember("Hilla", selection);
	    cm.dispose();
	    break;
	case 12:
	    if (selection != -1) {
		cm.acceptMember("Hilla", selection);
	    }
	    cm.dispose();
	    break;
    }
}
Are you sure you put HillaBattle in your worldGMS.prop file?
 
Upvote 0
Newbie Spellweaver
Joined
Feb 14, 2011
Messages
58
Reaction score
2
Are you sure you put HillaBattle in your worldGMS.prop file?

Thanks it works but every time i go in and kill Hilla when i leave Hilla gets Stuck, nobody can register because it says the squad is still inside. Also when i talk to the npc and it only brings me in. How do i make it bring everyone who registered for the squad?
 
Last edited:
Upvote 0
Have Fun!
Joined
Nov 2, 2008
Messages
481
Reaction score
70
You have to edit the exit NPC to toggle the status of the event to Open, so people can get inside.
As for warping, you should use a method like WarpSquadToMap(int mapId) or whatever your source has. If it DOESN'T have one, you can use this - add this to MapleSquad.java:
PHP:
public final void warpAllMembers(int targetMapId) {
  for (String name : getMembers()) {
   getChar(name).changeMap(targetMapId);
  }
 }
And just call it from wherever you need.
 
Upvote 0
Skilled Illusionist
Joined
Jul 19, 2012
Messages
313
Reaction score
11
PHP:
C:\xxx\Server\src\server\MapleSquad.java:226: error: no suitable method found for changeMap(int)
   getChar(name).changeMap(targetMapId);
    method MapleCharacter.changeMap(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method MapleCharacter.changeMap(MapleMap,MaplePortal) is not applicable
      (actual and formal argument lists differ in length)
    method MapleCharacter.changeMap(MapleMap) is not applicable
      (actual argument int cannot be converted to MapleMap by method invocation conversion)
    method MapleCharacter.changeMap(MapleMap,Point) is not applicable
      (actual and formal argument lists differ in length)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
C:\XXX\bhing\nbproject\build-impl.xml:900: The following error occurred while executing this line:
C:\XXX\bhing\nbproject\build-impl.xml:265: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 48 seconds)

ps not sure i'm using which source. ^ error. i'd be more than happy if you can give me the script for lithium based source.
 
Upvote 0
Have Fun!
Joined
Nov 2, 2008
Messages
481
Reaction score
70
PHP:
C:\xxx\Server\src\server\MapleSquad.java:226: error: no suitable method found for changeMap(int)
   getChar(name).changeMap(targetMapId);
    method MapleCharacter.changeMap(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method MapleCharacter.changeMap(MapleMap,MaplePortal) is not applicable
      (actual and formal argument lists differ in length)
    method MapleCharacter.changeMap(MapleMap) is not applicable
      (actual argument int cannot be converted to MapleMap by method invocation conversion)
    method MapleCharacter.changeMap(MapleMap,Point) is not applicable
      (actual and formal argument lists differ in length)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
C:\XXX\bhing\nbproject\build-impl.xml:900: The following error occurred while executing this line:
C:\XXX\bhing\nbproject\build-impl.xml:265: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 48 seconds)

ps not sure i'm using which source. ^ error. i'd be more than happy if you can give me the script for lithium based source.
Ah, I see.
Okay, go to MapleCharacter and add this method:
PHP:
public final void changeMap(int targetMap) {
changeMap(this.client.getChannelServer().getMapFactory().getMap(targetMap));
}
Now you can use the method changeMap() with just a map ID instead of a MapleMap object.
 
Upvote 0
Legendary Battlemage
Joined
Mar 7, 2013
Messages
686
Reaction score
43
Show this Error " ;"

change in ExpeditionType.java:


public enum PartySearchType { Kerning(20, 200, 1000, false), Ludi(30, 200, 1001, false), Orbis(50, 200, 1002, false), Pirate(60, 200, 1003, false), Magatia(70, 200, 1004, false), ElinForest(40, 200, 1005, false), Pyramid(40, 200, 1008, false), Dragonica(100, 200, 1009, false), //what the fk Hoblin(80, 200, 1011, false), Henesys(10, 200, 1012, false), Dojo(25, 200, 1013, false), Balrog_Normal(50, 200, 2001, true), Zakum(50, 200, 2002, true), Horntail(80, 200, 2003, true), PinkBean(140, 200, 2004, true), ChaosZakum(100, 200, 2005, true), ChaosHT(110, 200, 2006, true), CWKPQ(90, 200, 2007, true), VonLeon(120, 200, 2008, true), Hilla(120, 200, 2009, true);AND PartySearchType.java

Code:

public enum PartySearchType { Kerning(20, 200, 1000, false), Ludi(30, 200, 1001, false), Orbis(50, 200, 1002, false), Pirate(60, 200, 1003, false), Magatia(70, 200, 1004, false), ElinForest(40, 200, 1005, false), Pyramid(40, 200, 1008, false), Dragonica(100, 200, 1009, false), //what the fk Hoblin(80, 200, 1011, false), Henesys(10, 200, 1012, false), Dojo(25, 200, 1013, false), Balrog_Normal(50, 200, 2001, true), Zakum(50, 200, 2002, true), Horntail(80, 200, 2003, true), PinkBean(140, 200, 2004, true), ChaosZakum(100, 200, 2005, true), ChaosHT(110, 200, 2006, true), CWKPQ(90, 200, 2007, true), VonLeon(120, 200, 2008, true), Hilla(120, 200, 2009, true);
 
Upvote 0
Back
Top