Code:package server.buffs.buffclasses.gamemaster; import client.MapleBuffStat; import constants.GameConstants; import server.MapleStatEffect; import server.MapleStatInfo; import server.buffs.AbstractBuffClass; /** * * @author ExtremeDevilz */ public class GameMasterBuff extends AbstractBuffClass { public GameMasterBuff() { buffs = new int [] { 9001000, // GM Haste (Normal) 9001001, // GM Super Dragon Roar 9001002, // GM Teleport 9001003, // GM Bless 9001005, // GM resurrection 9001008, // GM Hyper body 9101000, // GM Heal + Dispel 9101001, // GM Haste (Super) 9101002, // GM Holy Symbol 9101003, // GM Bless 9101004, // GM Hide 9101005, // GM Resurrection 9101008 // GM Hyper Body }; } @Override public boolean containsJob(int job) { return GameConstants.isAdventurer(job) && job / 100 == 9; } @Override public void handleBuff(MapleStatEffect eff, int skill) { switch(skill) { case 9101000: break; case 9001000: case 9101001: // Super GM Haste eff.statups.put(MapleBuffStat.JUMP, eff.info.get(MapleStatInfo.jump)); eff.statups.put(MapleBuffStat.SPEED, eff.info.get(MapleStatInfo.speed)); break; case 9101002: eff.statups.put(MapleBuffStat.HOLY_SYMBOL, eff.info.get(MapleStatInfo.x)); break; case 9001003: case 9101003: eff.statups.put(MapleBuffStat.BLESS, eff.info.get(MapleStatInfo.x)); break; case 9001004: case 9101004: eff.info.put(MapleStatInfo.time, 30000); // 30 Seconds eff.statups.put(MapleBuffStat.DARKSIGHT, eff.info.get(MapleStatInfo.x)); break; case 9001005: case 9101005: break; case 9001008: case 9101008: eff.statups.put(MapleBuffStat.MAXHP, eff.info.get(MapleStatInfo.x)); eff.statups.put(MapleBuffStat.MAXMP, eff.info.get(MapleStatInfo.x)); break; default: System.out.println("GM skill not coded: " + skill); break; } } }


Reply With Quote



