Exemplo n.º 1
0
 @Override
 public int execute(MapleClient c, String[] splitted) {
   c.removeClickedNPC();
   NPCScriptManager.getInstance().dispose(c);
   c.getSession().write(CWvsContext.enableActions());
   return 1;
 }
Exemplo n.º 2
0
 @Override
 public int execute(MapleClient c, String[] splitted) {
   if (c.getPlayer().isInBlockedMap() || c.getPlayer().hasBlockedInventory()) {
     c.getPlayer().dropMessage(5, "You may not use this command here.");
     return 0;
   }
   NPCScriptManager.getInstance().start(c, 9000000, null);
   return 1;
 }
Exemplo n.º 3
0
 @Override
 public int execute(MapleClient c, String[] splitted) {
   if (c.getPlayer().isInBlockedMap() || c.getPlayer().hasBlockedInventory()) {
     c.getPlayer().dropMessage(5, "You may not use this command here.");
     return 0;
   } else if (c.getPlayer().getLevel() < 30) {
     c.getPlayer().dropMessage(5, "You need to be at least lvl 30 in order to advance.");
     return 0;
   } else {
     NPCScriptManager.getInstance().start(c, 2300001, null);
     return 1;
   }
 }
Exemplo n.º 4
0
 @Override
 public int execute(MapleClient c, String[] splitted) {
   c.getPlayer()
       .dropMessage(
           6,
           "You currently have "
               + c.getPlayer().getCSPoints(1)
               + " Cash, "
               + c.getPlayer().getEPoints()
               + " Event Points, "
               + c.getPlayer().getDPoints()
               + " Donation Points, "
               + c.getPlayer().getVPoints()
               + " voting points and "
               + c.getPlayer().getIntNoRecord(GameConstants.BOSS_PQ)
               + " Boss Party Quest points.");
   c.getPlayer()
       .dropMessage(
           6,
           "The time is currently "
               + FileoutputUtil.CurrentReadable_TimeGMT()
               + " GMT. | EXP "
               + (Math.round(c.getPlayer().getEXPMod()) * 100)
                   * Math.round(c.getPlayer().getStat().expBuff / 100.0)
               + "%, Drop "
               + (Math.round(c.getPlayer().getDropMod()) * 100)
                   * Math.round(c.getPlayer().getStat().dropBuff / 100.0)
               + "%, Meso "
               + Math.round(c.getPlayer().getStat().mesoBuff / 100.0) * 100
               + "%");
   c.getPlayer()
       .dropMessage(6, "EXP: " + c.getPlayer().getExp() + " / " + c.getPlayer().getNeededExp());
   c.removeClickedNPC();
   NPCScriptManager.getInstance().dispose(c);
   c.getSession().write(CWvsContext.enableActions());
   return 1;
 }
Exemplo n.º 5
0
 @Override
 public int execute(MapleClient c, String[] splitted) {
   NPCScriptManager.getInstance().start(c, 9010000, "CashDrop");
   return 1;
 }