Lua API reference (latest) - VanaDev/Vana GitHub Wiki
1.0.0 - Covers all commits from r3504
- system_environment_id
- system_lua_version_major
- system_lua_version_minor
- system_lua_version
- system_player_id
- system_script
- system_path
- system_instance_name
- instance_timer
- msg_blue
- msg_red
- msg_notice
- msg_box
- gender_male
- gender_female
- boat_docked
- boat_undocked
- type_bool
- type_int
- type_num
- type_str
- portal_enabled
- portal_disabled
- line_beginner
- line_warrior
- line_magician
- line_bowman
- line_thief
- line_pirate
- progression_second
- progression_third
- progression_fourth
- item_mesos
- locale_global
- locale_korea
- locale_japan
- locale_china
- locale_europe
- locale_thailand
- locale_taiwan
- locale_sea
- locale_brazil
- env_version
- env_subversion
- env_is_test_server
- env_locale
- env_api_version
- getAllFaces
- getAllHairs
- getAllSkins
- getRandomFace
- getRandomHair
- getRandomSkin
- isValidFace
- isValidHair
- isValidSkin
- getHorntailChannels
- getMaxHorntailBattles
- getMaxPapulatusBattles
- getMaxPianusBattles
- getMaxPinkBeanBattles
- getMaxZakumBattles
- getPapulatusChannels
- getPianusChannels
- getPinkBeanChannels
- getZakumChannels
- isHorntailChannel
- isPapulatusChannel
- isPianusChannel
- isPinkBeanChannel
- isZakumChannel
- addInstanceMap
- addInstanceParty
- addInstancePlayer
- checkInstanceTimer
- createInstance
- deleteInstanceVariable
- getAllInstancePlayerIds
- getInstancePlayerCount
- getInstancePlayerId
- getInstanceVariable
- isInstance
- isInstanceMap
- isInstancePersistent
- markForDelete
- moveAllPlayers
- passPlayersBetweenInstances
- removeAllInstancePlayers
- removeInstancePlayer
- respawnInstanceMobs
- respawnInstanceReactors
- revertInstance
- setInstance
- setInstancePersistence
- setInstanceReset
- setInstanceVariable
- showInstanceTime
- startInstanceFutureTimer
- startInstanceSecondOfHourTimer
- stopAllInstanceTimers
- stopInstanceTimer
- addSlots
- addStorageSlots
- destroyEquippedItem
- getEquippedItemInSlot
- getItemAmount
- getMaxStackSize
- getMesos
- getOpenSlots
- giveItem
- giveItemGachapon
- giveMesos
- hasOpenSlotsFor
- isEquippedItem
- isValidItem
- useItem
- clearDrops
- clearMobs
- countMobs
- setPortalState
- getAllMapPlayerIds
- getNumPlayers
- getReactorState
- killMobs
- setBoatDocked
- setMapSpawn
- setReactorState
- showMapMessage
- showMapTimer
- spawnMob
- spawnMobPos
- getMobFh
- getMobHp
- getMobMaxHp
- getMobMaxMp
- getMobMp
- getMobPosX
- getMobPosY
- getRealMobId
- killMob
- mobDropItem
- checkPartyFootholds
- getAllPartyPlayerIds
- getPartyCount
- getPartyId
- getPartyMapCount
- isPartyInLevelRange
- isPartyLeader
- verifyPartyFootholds
- warpParty
- deletePlayerVariable
- endMorph
- getAp
- getDex
- getExp
- getFace
- getFame
- getFh
- getGender
- getGmLevel
- getHair
- getHp
- getHpMpAp
- getId
- getInt
- getJob
- getLevel
- getLuk
- getMap
- getMaxHp
- getMaxMp
- getMp
- getName
- getPlayerVariable
- getPosX
- getPosY
- getRealMaxHp
- getRealMaxMp
- getSkin
- getSp
- getStr
- giveAp
- giveExp
- giveFame
- giveSp
- isActiveItem
- isActiveSkill
- isGm
- isOnline
- revertPlayer
- setAp
- setDex
- setExp
- setHp
- setInt
- setJob
- setLevel
- setLuk
- setMap
- setMaxHp
- setMaxMp
- setMp
- setPlayer
- setPlayerVariable
- setSp
- setStr
- setStyle
- showInstructionBubble
- showMessage
- getDate
- getDay
- getHour
- getMinute
- getMonth
- getNearestMinute
- getSecond
- getTime
- getTimeZoneOffset
- getWeek
- getYear
- isDst