Class ReactorActionManager
java.lang.Object
scripting.AbstractPlayerInteraction
scripting.ReactorActionManager
反應爐腳本的玩家互動 API,將
AbstractPlayerInteraction 綁定至特定 MapleReactor。
由 ReactorScriptManager 在執行 scripts/reactor/<ID>.js 時建立,並以全域變數 rm
注入腳本環境。本類別以反應爐位置為預設坐標,提供:
dropItems:依reactordrops資料表的掉寶設定散落道具與楓幣。dropSingleItem:散落單一指定道具。doHarvest:採集(藥草/採礦)邏輯,含熟練度計算與疲勞值扣除。spawnZakum、spawnFakeMonster:召喚特殊怪物於反應爐附近。dispelAllMonsters:移除地圖上的 CPQ 守衛技能。
關鍵協作者:
AbstractPlayerInteraction:提供傳送、道具操作、任務查詢等完整腳本 API。MapleReactor:持有反應爐 ID、位置及所在MapleMap。ReactorScriptManager:呼叫端,亦提供getDrops以查詢掉寶清單。
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelHarvest(boolean succ) voiddispelAllMonsters(int num) voidvoidvoiddropItems(boolean meso, int mesoChance, int minMeso, int maxMeso) voiddropItems(boolean meso, int mesoChance, int minMeso, int maxMeso, int minItems) voiddropSingleItem(int itemId) voidkillAll()voidkillMonster(int monsId) voidspawnFakeMonster(int id) voidspawnFakeMonster(int id, int qty) voidspawnFakeMonster(int id, int x, int y) voidspawnFakeMonster(int id, int qty, int x, int y) voidspawnMonster(int id) voidspawnMonster(int id, int qty) voidspawnNpc(int npcId) voidMethods inherited from class AbstractPlayerInteraction
achievement, addHP, addPartyTrait, addPartyTrait, addTrait, allMembersHere, Aran_Start, AranTutInstructionalBubble, cancelItem, canHold, canHold, canHold, canHoldSlots, changeMusic, changePortal, channelMessage, channelMessage, clearSavedLocation, destroyReactor, disableOthers, disableOthers, DisableUI, dojo_getPts, dojo_getUp, dojoAgent_NextMap, dojoAgent_NextMap, EarnTitleMsg, EnableUI, endPartyQuest, endPartyQuest, equip, equip, equip, evanTutorial, evanTutorial, forceCompleteQuest, forceStartQuest, forceStartQuest, forceStartQuest, forceStartQuest, forceStartReactor, gainCloseness, gainClosenessAll, gainExp, gainExp_PQ, gainExpR, gainGP, gainItem, gainItem, gainItem, gainItem, gainItem, gainItem, gainItem, gainItem, gainItem, gainItem, gainItemPeriod, gainItemPeriod, gainItemS, gainItemS, gainItemSilent, gainMeso, gainMeso, gainNX, gainNX, gainPet, getAndroidStat, getC, getChannelNumber, getChannelOnline, getChannelServer, getChar, getClient, getCurrentPartyId, getCurrentTime, getDirectionStatus, getDisconnected, getEvanIntroState, getEvent, getEventInstance, getEventManager, getGP, getGuild, getGuild, getInfoQuest, getInventory, getInvType, getItemName, getJob, getMap, getMap, getMap_Instanced, getMapId, getMode, getMonsterCount, getMorphState, getName, getNpc, getOneInfo, getParty, getPartyLog, getPlayer, getPlayerCount, getPlayerStat, getQuest, getQuestNoRecord, getQuestRecord, getQuestStatus, getReborns, getSavedLocation, getScript, getTempFlag, getTotalOnline, givePartyExp, givePartyExp, givePartyExp_PQ, givePartyExp_PQ, givePartyItems, givePartyItems, givePartyItems, givePartyNX, givePartyNX, guildMessage, guildMessage, hasSpace, haveItem, haveItem, haveItem, haveMonster, hitReactor, isAllPartyMembersAllowedJob, isAllPartyMembersAllowedLevel, isAllReactorState, isLeader, isQuestActive, isQuestFinished, itemQuantity, killAllMob, killMob, lockUI, lockUI, lockUI, logPQ, makeStatsEquip, makeStatsEquip2, makeStatsEquip3, mapMessage, mapMessage, MovieClipIntroUI, nextInt, openNpc, openNpc, openNpc, openNpc, openNpc, openNpc, openNpc, outputFileError, phantomTutorial, playerMessage, playerMessage, playerSummonHint, playMovie, playPortalSE, playSound, playSound, prepareAswanMob, randInt, removeAll, removeFromParty, removeFromParty, removeItem, removeNpc, removeNpc, removeSlot, resetMap, saveLocation, saveReturnLocation, sendDirectionInfo, sendDirectionStatus, sendMoveScreen, sendNPCText, setGender, setPartyLog, showDarkEffect, showEffect, showInstruction, showMapEffect, showQuestMsg, showScreenAutoLetterBox, showScreenAutoLetterBox, showWZEffect, ShowWZEffect, showWZEffectNew, spawnMob, spawnMob, spawnMobOnMap, spawnMonster, spawnMonster, spawnMonster, spawnNpc, spawnNpc, spawnNpcForPlayer, startAriantPQ, startAswanOffSeason, summonMsg, summonMsg, teachSkill, teachSkill, teachSkill, trembleEffect, unequip, unequip, unequipEverything, updateEvanIntroState, updateInfoQuest, updateOneInfo, useItem, useSkill, warp, warp, warp, warp_Instanced, warpBack, warpMap, warpParty, warpParty, warpParty, warpParty_Instanced, warpS, warpS, worldMessage
-
Constructor Details
-
ReactorActionManager
-
-
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:
spawnNpcin classAbstractPlayerInteraction
-
getPosition
-
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:
spawnMonsterin classAbstractPlayerInteraction
-
spawnMonster
public void spawnMonster(int id, int qty) - Overrides:
spawnMonsterin classAbstractPlayerInteraction
-
dispelAllMonsters
public void dispelAllMonsters(int num) -
cancelHarvest
public void cancelHarvest(boolean succ) -
doHarvest
public void doHarvest()
-