Class ReactorActionManager


public class ReactorActionManager extends AbstractPlayerInteraction
反應爐腳本的玩家互動 API,將 AbstractPlayerInteraction 綁定至特定 MapleReactor

ReactorScriptManager 在執行 scripts/reactor/<ID>.js 時建立,並以全域變數 rm 注入腳本環境。本類別以反應爐位置為預設坐標,提供:

  • dropItems:依 reactordrops 資料表的掉寶設定散落道具與楓幣。
  • dropSingleItem:散落單一指定道具。
  • doHarvest:採集(藥草/採礦)邏輯,含熟練度計算與疲勞值扣除。
  • spawnZakumspawnFakeMonster:召喚特殊怪物於反應爐附近。
  • dispelAllMonsters:移除地圖上的 CPQ 守衛技能。

關鍵協作者:

  • Constructor Details

  • Method Details

    • dropItems

      public void dropItems()
    • dropItems

      public void dropItems(boolean meso, int mesoChance, int minMeso, int maxMeso)
    • dropItems

      public void dropItems(boolean meso, int mesoChance, int minMeso, int maxMeso, int minItems)
    • dropSingleItem

      public void dropSingleItem(int itemId)
    • spawnNpc

      public void spawnNpc(int npcId)
      Overrides:
      spawnNpc in class AbstractPlayerInteraction
    • getPosition

      public Point getPosition()
    • getReactor

      public MapleReactor getReactor()
    • spawnZakum

      public void spawnZakum()
    • spawnFakeMonster

      public void spawnFakeMonster(int id)
    • spawnFakeMonster

      public void spawnFakeMonster(int id, int x, int y)
    • spawnFakeMonster

      public void spawnFakeMonster(int id, int qty)
    • spawnFakeMonster

      public void spawnFakeMonster(int id, int qty, int x, int y)
    • killAll

      public void killAll()
    • killMonster

      public void killMonster(int monsId)
    • spawnMonster

      public void spawnMonster(int id)
      Overrides:
      spawnMonster in class AbstractPlayerInteraction
    • spawnMonster

      public void spawnMonster(int id, int qty)
      Overrides:
      spawnMonster in class AbstractPlayerInteraction
    • dispelAllMonsters

      public void dispelAllMonsters(int num)
    • cancelHarvest

      public void cancelHarvest(boolean succ)
    • doHarvest

      public void doHarvest()