Search in sources :

Example 1 with MapleOxQuiz

use of server.events.gm.MapleOxQuiz in project HeavenMS by ronancpl.

the class MapleMap method startEvent.

public void startEvent(final MapleCharacter chr) {
    if (this.mapid == 109080000 && getCoconut() == null) {
        setCoconut(new MapleCoconut(this));
        coconut.startEvent();
    } else if (this.mapid == 109040000) {
        chr.setFitness(new MapleFitness(chr));
        chr.getFitness().startFitness();
    } else if (this.mapid == 109030101 || this.mapid == 109030201 || this.mapid == 109030301 || this.mapid == 109030401) {
        chr.setOla(new MapleOla(chr));
        chr.getOla().startOla();
    } else if (this.mapid == 109020001 && getOx() == null) {
        setOx(new MapleOxQuiz(this));
        getOx().sendQuestion();
        setOxQuiz(true);
    } else if (this.mapid == 109060000 && getSnowball(chr.getTeam()) == null) {
        setSnowball(0, new MapleSnowball(0, this));
        setSnowball(1, new MapleSnowball(1, this));
        getSnowball(chr.getTeam()).startEvent();
    }
}
Also used : MapleCoconut(server.events.gm.MapleCoconut) MapleOxQuiz(server.events.gm.MapleOxQuiz) MapleSnowball(server.events.gm.MapleSnowball) MapleFitness(server.events.gm.MapleFitness) MapleOla(server.events.gm.MapleOla)

Aggregations

MapleCoconut (server.events.gm.MapleCoconut)1 MapleFitness (server.events.gm.MapleFitness)1 MapleOla (server.events.gm.MapleOla)1 MapleOxQuiz (server.events.gm.MapleOxQuiz)1 MapleSnowball (server.events.gm.MapleSnowball)1