Skip to content
Nick edited this page Nov 23, 2021 · 1 revision

Objects

L2Object
  |
  ├── L2Buff
  ├── L2Skill
  ├── L2Creature
  |     ├── L2PartyPet
  |     ├── L2Summon
  |     ├── L2Mob
  |     ├── L2Npc
  |     └── L2Character
  |           ├── L2User
  |           └── L2PartyMember
  ├── L2Mail
  ├── L2Recipe
  └── L2Item
        └── L2DroppedItem

Commands

Command Does what?
say Send a general message
shout Shout a message
tell Send a PM
sayToParty Send a party message
sayToClan Send a clan message
sayToTrade Send a trade message
sayToAlly Send an ally message
moveTo Move to location
dropItem Drop an item to location
hit Hit on target. Accepts L2Object object or ObjectId
attack Attack a target. Accepts L2Object object or ObjectId
cancelTarget Cancel the active target
acceptJoinParty Accepts the requested party invite
declineJoinParty Declines the requested party invite
nextTarget Select next/closest attackable target
inventory Request for inventory item list
useItem Use an item. Accepts L2Item object or ObjectId
requestDuel Request player a duel. If no char is provided, the command tries to request the selected target
autoShots Enable/disable auto-shots
cancelBuff Cancel a buff
sitOrStand Sit or stand
validatePosition Sync position with server
dwarvenCraftRecipes Dwarven craft recipe book
craft Craft an item
revive Revive to a location (Town, Castle, Clan Hall)

Events

Event Type Event Data Type When?
LoggedIn void logged in to Game server
PacketReceived EPacketReceived a packet is received
PacketSent EPacketSent a packet is sent
PartyRequest EPartyRequest receive a party request
Die EDie L2Creature is dead
TargetSelected ETargetSelected L2Creature is selected by L2Creature
MyTargetSelected EMyTargetSelected L2Creature is selected by L2User
Attacked EAttacked L2User is beings attacked
RequestedDuel ERequestedDuel receive a duel request
StartMoving EStartMoving L2Creature starts moving
StopMoving EStopMoving L2Creature stops moving
CraftResult ECraftResult A result from crafting an item
RecipeBook ERecipeBook A receipt book is received
PartySmallWindow EPartySmallWindow The party small window updated
PartyMemberPosition EPartyMemberPosition A party member position is updated
CharInfo ECharInfo character info
Revive ERevive creature is revived
ConfirmDlg EConfirmDlg confirm dialog
SystemMessage ESystemMessage server system message
CreatureSay ECreatureSay creature says
NpcHtmlMessage ENpcHtmlMessage receiving HTML from an NPC
NpcQuestHtmlMessage ENpcQuestHtmlMessage receiving a quest HTML from an NPC
Clone this wiki locally