Class PortalPlayerInteraction
java.lang.Object
scripting.AbstractPlayerInteraction
scripting.PortalPlayerInteraction
傳送門腳本的玩家互動 API,將
AbstractPlayerInteraction 綁定至特定 MaplePortal。
由 PortalScriptManager 在執行 scripts/portal/<名稱>.js 時建立,
並以 PortalScript.enter(PortalPlayerInteraction) 傳入腳本。本類別以傳送門的位置為預設坐標,
提供自由市場(inFreeMarket)、梅斯特鎮(inArdentmill)等常用傳送捷徑,
以及以傳送門位置為基準的怪物召喚重載(spawnMonster)。
關鍵協作者:
AbstractPlayerInteraction:提供傳送、道具操作、任務查詢等完整腳本 API。MaplePortal:保存傳送門 ID、位置及scriptName,供腳本讀取。MapleClient:持有當前玩家連線,透過getPlayer()存取角色。
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal MaplePortalfinal voidfinal voidvoidspawnMonster(int id) voidspawnMonster(int id, int qty) voidspawnMonster(int id, long hp, int mp, int qty, int exp) Methods 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, 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
-
PortalPlayerInteraction
-
-
Method Details
-
getPortal
-
inFreeMarket
public final void inFreeMarket() -
inArdentmill
public final void inArdentmill() -
spawnMonster
public void spawnMonster(int id) - Overrides:
spawnMonsterin classAbstractPlayerInteraction
-
spawnMonster
public void spawnMonster(int id, int qty) - Overrides:
spawnMonsterin classAbstractPlayerInteraction
-
spawnMonster
public void spawnMonster(int id, long hp, int mp, int qty, int exp)
-