Skip to content

Instantly share code, notes, and snippets.

@DiegoRibeiro

DiegoRibeiro/aindex.js

Last active Oct 3, 2020
Embed
What would you like to do?
Autocompletion notepad++ for TFS 1.2
// https://github.com/oozcitak/xmlbuilder-js/wiki/Examples
// https://npp-user-manual.org/docs/auto-completion/
const builder = require('xmlbuilder');
const fs = require('fs');
let c = JSON.parse(fs.readFileSync("constants.json", {encoding: 'utf-8'}).toString());
let f = JSON.parse(fs.readFileSync("functions.json", {encoding: 'utf-8'}).toString());
// merging array
let a = [...c, ...f];
// sorting because notepad++ requires alphabetical case sensitive order from the KeyWord list
let s = a.sort((a, b) => {
if(a < b) return -1;
if(a > b) return 1;
return 0;
});
// creating the root
var xml = builder.create("NotepadPlus", {encoding: "Windows-1252"})
.ele("AutoComplete", {language: "lua"})
.ele("Environment", {ignoreCase: "no", additionalWordChar: ".:"}).up();
// processing all commands
for(let i = 0; i < s.length; i++) {
let func = parseFunction(s[i]);
// not a function its a word
if(!func) {
xml = makeKeyWord(xml, s[i], "void", {isFunc: false});
}
else {
// parse params
let params = func.params.split(/,/g);
xml = makeKeyWord(xml, func.fn, "void", {isFunc: true, params});
}
}
xml = xml.end({pretty: true});
console.log(xml);
fs.writeFileSync("tfs.xml", xml, {encoding: "utf-8"});
/**
*
* @param {*} xml
* @param {*} name
* @param {*} ret {return type}
* @param {*} options {params: array, isFunc: "yes|no"}
*/
function makeKeyWord(xml, name, ret, options) {
if(options.isFunc) {
xml = xml.ele("KeyWord", {name, func: "yes"})
.ele("Overload", {retVal: ret});
for(let i = 0; i < options.params.length; i++) {
xml = xml.ele("Param", {name: options.params[i]}).up();
}
}
else {
xml = xml.ele("KeyWord", {name});
}
if(options.isFunc) {
return xml.up().up();
}
return xml.up();
}
function parseFunction(str) {
let reg = /^\s*(?<fn>[a-zA-Z0-9_:\.]+)\s*\((?<params>.*)\)/g;
let m = reg.exec(str);
return m != null ? m.groups : m;
}
[
"ACCOUNT_TYPE_GAMEMASTER",
"ACCOUNT_TYPE_GOD",
"ACCOUNT_TYPE_NORMAL",
"ACCOUNT_TYPE_SENIORTUTOR",
"ACCOUNT_TYPE_TUTOR",
"CALLBACK_PARAM_LEVELMAGICVALUE",
"CALLBACK_PARAM_SKILLVALUE",
"CALLBACK_PARAM_TARGETCREATURE",
"CALLBACK_PARAM_TARGETTILE",
"CLIENTOS_FLASH",
"CLIENTOS_LINUX",
"CLIENTOS_OTCLIENT_LINUX",
"CLIENTOS_OTCLIENT_MAC",
"CLIENTOS_OTCLIENT_WINDOWS",
"CLIENTOS_WINDOWS",
"COMBAT_DEATHDAMAGE",
"COMBAT_DROWNDAMAGE",
"COMBAT_EARTHDAMAGE",
"COMBAT_ENERGYDAMAGE",
"COMBAT_FIREDAMAGE",
"COMBAT_FORMULA_DAMAGE",
"COMBAT_FORMULA_LEVELMAGIC",
"COMBAT_FORMULA_SKILL",
"COMBAT_FORMULA_UNDEFINED",
"COMBAT_HEALING",
"COMBAT_HOLYDAMAGE",
"COMBAT_ICEDAMAGE",
"COMBAT_LIFEDRAIN",
"COMBAT_MANADRAIN",
"COMBAT_NONE",
"COMBAT_PARAM_AGGRESSIVE",
"COMBAT_PARAM_BLOCKARMOR",
"COMBAT_PARAM_BLOCKSHIELD",
"COMBAT_PARAM_CREATEITEM",
"COMBAT_PARAM_DISPEL",
"COMBAT_PARAM_DISTANCEEFFECT",
"COMBAT_PARAM_EFFECT",
"COMBAT_PARAM_TARGETCASTERORTOPMOST",
"COMBAT_PARAM_TYPE",
"COMBAT_PARAM_USECHARGES",
"COMBAT_PHYSICALDAMAGE",
"COMBAT_POISONDAMAGE",
"COMBAT_UNDEFINEDDAMAGE",
"CONDITIONID_AMMO",
"CONDITIONID_ARMOR",
"CONDITIONID_BACKPACK",
"CONDITIONID_COMBAT",
"CONDITIONID_DEFAULT",
"CONDITIONID_FEET",
"CONDITIONID_HEAD",
"CONDITIONID_LEFT",
"CONDITIONID_LEGS",
"CONDITIONID_NECKLACE",
"CONDITIONID_RIGHT",
"CONDITIONID_RING",
"CONDITION_ATTRIBUTES",
"CONDITION_BLEEDING",
"CONDITION_CHANNELMUTEDTICKS",
"CONDITION_CURSED",
"CONDITION_DAZZLED",
"CONDITION_DROWN",
"CONDITION_DRUNK",
"CONDITION_ENERGY",
"CONDITION_EXHAUST",
"CONDITION_EXHAUST_COMBAT",
"CONDITION_EXHAUST_HEAL",
"CONDITION_EXHAUST_WEAPON",
"CONDITION_FIRE",
"CONDITION_FREEZING",
"CONDITION_HASTE",
"CONDITION_INFIGHT",
"CONDITION_INVISIBLE",
"CONDITION_LIGHT",
"CONDITION_MANASHIELD",
"CONDITION_MUTED",
"CONDITION_NONE",
"CONDITION_OUTFIT",
"CONDITION_PACIFIED",
"CONDITION_PARALYZE",
"CONDITION_PARAM_BUFF_SPELL",
"CONDITION_PARAM_DELAYED",
"CONDITION_PARAM_FIELD",
"CONDITION_PARAM_FORCEUPDATE",
"CONDITION_PARAM_HEALTHGAIN",
"CONDITION_PARAM_HEALTHTICKS",
"CONDITION_PARAM_LIGHT_COLOR",
"CONDITION_PARAM_LIGHT_LEVEL",
"CONDITION_PARAM_MANAGAIN",
"CONDITION_PARAM_MANATICKS",
"CONDITION_PARAM_MAXVALUE",
"CONDITION_PARAM_MINVALUE",
"CONDITION_PARAM_OWNER",
"CONDITION_PARAM_PERIODICDAMAGE",
"CONDITION_PARAM_SKILL_AXE",
"CONDITION_PARAM_SKILL_AXEPERCENT",
"CONDITION_PARAM_SKILL_CLUB",
"CONDITION_PARAM_SKILL_CLUBPERCENT",
"CONDITION_PARAM_SKILL_DISTANCE",
"CONDITION_PARAM_SKILL_DISTANCEPERCENT",
"CONDITION_PARAM_SKILL_FISHING",
"CONDITION_PARAM_SKILL_FISHINGPERCENT",
"CONDITION_PARAM_SKILL_FIST",
"CONDITION_PARAM_SKILL_FISTPERCENT",
"CONDITION_PARAM_SKILL_MELEE",
"CONDITION_PARAM_SKILL_MELEEPERCENT",
"CONDITION_PARAM_SKILL_SHIELD",
"CONDITION_PARAM_SKILL_SHIELDPERCENT",
"CONDITION_PARAM_SKILL_SWORD",
"CONDITION_PARAM_SKILL_SWORDPERCENT",
"CONDITION_PARAM_SOULGAIN",
"CONDITION_PARAM_SOULTICKS",
"CONDITION_PARAM_SPEED",
"CONDITION_PARAM_STARTVALUE",
"CONDITION_PARAM_STAT_MAGICPOINTS",
"CONDITION_PARAM_STAT_MAGICPOINTSPERCENT",
"CONDITION_PARAM_STAT_MAXHITPOINTS",
"CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT",
"CONDITION_PARAM_STAT_MAXMANAPOINTS",
"CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT",
"CONDITION_PARAM_STAT_SOULPOINTS",
"CONDITION_PARAM_STAT_SOULPOINTSPERCENT",
"CONDITION_PARAM_SUBID",
"CONDITION_PARAM_TICKINTERVAL",
"CONDITION_PARAM_TICKS",
"CONDITION_POISON",
"CONDITION_REGENERATION",
"CONDITION_SOUL",
"CONDITION_SPELLCOOLDOWN",
"CONDITION_SPELLGROUPCOOLDOWN",
"CONDITION_YELLTICKS",
"CONST_ANI_ARROW",
"CONST_ANI_BOLT",
"CONST_ANI_BURSTARROW",
"CONST_ANI_CAKE",
"CONST_ANI_CRYSTALLINEARROW",
"CONST_ANI_DEATH",
"CONST_ANI_DRILLBOLT",
"CONST_ANI_EARTH",
"CONST_ANI_EARTHARROW",
"CONST_ANI_ENCHANTEDSPEAR",
"CONST_ANI_ENERGY",
"CONST_ANI_ENERGYBALL",
"CONST_ANI_ENVENOMEDARROW",
"CONST_ANI_ETHEREALSPEAR",
"CONST_ANI_EXPLOSION",
"CONST_ANI_FIRE",
"CONST_ANI_FLAMMINGARROW",
"CONST_ANI_FLASHARROW",
"CONST_ANI_GREENSTAR",
"CONST_ANI_HOLY",
"CONST_ANI_HUNTINGSPEAR",
"CONST_ANI_ICE",
"CONST_ANI_INFERNALBOLT",
"CONST_ANI_LARGEROCK",
"CONST_ANI_NONE",
"CONST_ANI_ONYXARROW",
"CONST_ANI_PIERCINGBOLT",
"CONST_ANI_POISON",
"CONST_ANI_POISONARROW",
"CONST_ANI_POWERBOLT",
"CONST_ANI_PRISMATICBOLT",
"CONST_ANI_REDSTAR",
"CONST_ANI_ROYALSPEAR",
"CONST_ANI_SHIVERARROW",
"CONST_ANI_SMALLEARTH",
"CONST_ANI_SMALLHOLY",
"CONST_ANI_SMALLICE",
"CONST_ANI_SMALLSTONE",
"CONST_ANI_SNIPERARROW",
"CONST_ANI_SNOWBALL",
"CONST_ANI_SPEAR",
"CONST_ANI_SUDDENDEATH",
"CONST_ANI_TARSALARROW",
"CONST_ANI_THROWINGKNIFE",
"CONST_ANI_THROWINGSTAR",
"CONST_ANI_VORTEXBOLT",
"CONST_ANI_WEAPONTYPE",
"CONST_ANI_WHIRLWINDAXE",
"CONST_ANI_WHIRLWINDCLUB",
"CONST_ANI_WHIRLWINDSWORD",
"CONST_ME_ASSASSIN",
"CONST_ME_BATS",
"CONST_ME_BIGCLOUDS",
"CONST_ME_BIGPLANTS",
"CONST_ME_BLACKSMOKE",
"CONST_ME_BLOCKHIT",
"CONST_ME_BLOODYSTEPS",
"CONST_ME_BUBBLES",
"CONST_ME_CAKE",
"CONST_ME_CARNIPHILA",
"CONST_ME_CONFETTI_HORIZONTAL",
"CONST_ME_CONFETTI_VERTICAL",
"CONST_ME_CRAPS",
"CONST_ME_DRAGONHEAD",
"CONST_ME_DRAWBLOOD",
"CONST_ME_ENERGYAREA",
"CONST_ME_ENERGYHIT",
"CONST_ME_EXPLOSIONAREA",
"CONST_ME_EXPLOSIONHIT",
"CONST_ME_FERUMBRAS",
"CONST_ME_FIREAREA",
"CONST_ME_FIREATTACK",
"CONST_ME_FIREWORK_BLUE",
"CONST_ME_FIREWORK_RED",
"CONST_ME_FIREWORK_YELLOW",
"CONST_ME_GIANTICE",
"CONST_ME_GIFT_WRAPS",
"CONST_ME_GREEN_RINGS",
"CONST_ME_GROUNDSHAKER",
"CONST_ME_HEARTS",
"CONST_ME_HITAREA",
"CONST_ME_HITBYFIRE",
"CONST_ME_HITBYPOISON",
"CONST_ME_HOLYAREA",
"CONST_ME_HOLYDAMAGE",
"CONST_ME_ICEAREA",
"CONST_ME_ICEATTACK",
"CONST_ME_ICETORNADO",
"CONST_ME_INSECTS",
"CONST_ME_LOSEENERGY",
"CONST_ME_MAGIC_BLUE",
"CONST_ME_MAGIC_GREEN",
"CONST_ME_MAGIC_RED",
"CONST_ME_MIRRORHORIZONTAL",
"CONST_ME_MIRRORVERTICAL",
"CONST_ME_MORTAREA",
"CONST_ME_NONE",
"CONST_ME_ORCSHAMAN",
"CONST_ME_ORCSHAMAN_FIRE",
"CONST_ME_PLANTATTACK",
"CONST_ME_POFF",
"CONST_ME_POISONAREA",
"CONST_ME_PURPLEENERGY",
"CONST_ME_SKULLHORIZONTAL",
"CONST_ME_SKULLVERTICAL",
"CONST_ME_SLEEP",
"CONST_ME_SMALLCLOUDS",
"CONST_ME_SMALLPLANTS",
"CONST_ME_SMOKE",
"CONST_ME_SOUND_BLUE",
"CONST_ME_SOUND_GREEN",
"CONST_ME_SOUND_PURPLE",
"CONST_ME_SOUND_RED",
"CONST_ME_SOUND_WHITE",
"CONST_ME_SOUND_YELLOW",
"CONST_ME_STEPSHORIZONTAL",
"CONST_ME_STEPSVERTICAL",
"CONST_ME_STONES",
"CONST_ME_STUN",
"CONST_ME_TELEPORT",
"CONST_ME_THUNDER",
"CONST_ME_TUTORIALARROW",
"CONST_ME_TUTORIALSQUARE",
"CONST_ME_WATERCREATURE",
"CONST_ME_WATERSPLASH",
"CONST_ME_YALAHARIGHOST",
"CONST_ME_YELLOWENERGY",
"CONST_ME_YELLOW_RINGS",
"CONST_PROP_BLOCKPATH",
"CONST_PROP_BLOCKPROJECTILE",
"CONST_PROP_BLOCKSOLID",
"CONST_PROP_HASHEIGHT",
"CONST_PROP_IMMOVABLEBLOCKPATH",
"CONST_PROP_IMMOVABLEBLOCKSOLID",
"CONST_PROP_IMMOVABLENOFIELDBLOCKPATH",
"CONST_PROP_ISHORIZONTAL",
"CONST_PROP_ISVERTICAL",
"CONST_PROP_MOVEABLE",
"CONST_PROP_NOFIELDBLOCKPATH",
"CONST_PROP_SUPPORTHANGABLE",
"CONST_SLOT_AMMO",
"CONST_SLOT_ARMOR",
"CONST_SLOT_BACKPACK",
"CONST_SLOT_FEET",
"CONST_SLOT_HEAD",
"CONST_SLOT_LEFT",
"CONST_SLOT_LEGS",
"CONST_SLOT_NECKLACE",
"CONST_SLOT_RIGHT",
"CONST_SLOT_RING",
"CONTAINER_POSITION",
"DIRECTION_EAST",
"DIRECTION_NORTH",
"DIRECTION_NORTHEAST",
"DIRECTION_NORTHWEST",
"DIRECTION_SOUTH",
"DIRECTION_SOUTHEAST",
"DIRECTION_SOUTHWEST",
"DIRECTION_WEST",
"FLAG_CHILDISOWNER",
"FLAG_IGNOREAUTOSTACK",
"FLAG_IGNOREBLOCKCREATURE",
"FLAG_IGNOREBLOCKITEM",
"FLAG_IGNOREFIELDDAMAGE",
"FLAG_IGNORENOTMOVEABLE",
"FLAG_NOLIMIT",
"FLAG_PATHFINDING",
"GAME_STATE_CLOSED",
"GAME_STATE_CLOSING",
"GAME_STATE_INIT",
"GAME_STATE_MAINTAIN",
"GAME_STATE_NORMAL",
"GAME_STATE_SHUTDOWN",
"GAME_STATE_STARTUP",
"GUEST_LIST",
"ITEM_AMULETOFLOSS",
"ITEM_ATTRIBUTE_ACTIONID",
"ITEM_ATTRIBUTE_ARMOR",
"ITEM_ATTRIBUTE_ARTICLE",
"ITEM_ATTRIBUTE_ATTACK",
"ITEM_ATTRIBUTE_CHARGES",
"ITEM_ATTRIBUTE_CORPSEOWNER",
"ITEM_ATTRIBUTE_DATE",
"ITEM_ATTRIBUTE_DECAYSTATE",
"ITEM_ATTRIBUTE_DEFENSE",
"ITEM_ATTRIBUTE_DESCRIPTION",
"ITEM_ATTRIBUTE_DOORID",
"ITEM_ATTRIBUTE_DURATION",
"ITEM_ATTRIBUTE_EXTRADEFENSE",
"ITEM_ATTRIBUTE_FLUIDTYPE",
"ITEM_ATTRIBUTE_HITCHANCE",
"ITEM_ATTRIBUTE_NAME",
"ITEM_ATTRIBUTE_NONE",
"ITEM_ATTRIBUTE_OWNER",
"ITEM_ATTRIBUTE_PLURALNAME",
"ITEM_ATTRIBUTE_SHOOTRANGE",
"ITEM_ATTRIBUTE_TEXT",
"ITEM_ATTRIBUTE_UNIQUEID",
"ITEM_ATTRIBUTE_WEIGHT",
"ITEM_ATTRIBUTE_WRITER",
"ITEM_BAG",
"ITEM_CRYSTAL_COIN",
"ITEM_ENERGYFIELD_NOPVP",
"ITEM_ENERGYFIELD_PERSISTENT",
"ITEM_ENERGYFIELD_PVP",
"ITEM_FIREFIELD_NOPVP",
"ITEM_FIREFIELD_PERSISTENT_FULL",
"ITEM_FIREFIELD_PERSISTENT_MEDIUM",
"ITEM_FIREFIELD_PERSISTENT_SMALL",
"ITEM_FIREFIELD_PVP_FULL",
"ITEM_FIREFIELD_PVP_MEDIUM",
"ITEM_FIREFIELD_PVP_SMALL",
"ITEM_GOLD_COIN",
"ITEM_LABEL",
"ITEM_MAGICWALL",
"ITEM_MAGICWALL_PERSISTENT",
"ITEM_MAGICWALL_SAFE",
"ITEM_PARCEL",
"ITEM_PLATINUM_COIN",
"ITEM_POISONFIELD_NOPVP",
"ITEM_POISONFIELD_PERSISTENT",
"ITEM_POISONFIELD_PVP",
"ITEM_TYPE_BED",
"ITEM_TYPE_CONTAINER",
"ITEM_TYPE_DEPOT",
"ITEM_TYPE_DOOR",
"ITEM_TYPE_KEY",
"ITEM_TYPE_MAGICFIELD",
"ITEM_TYPE_MAILBOX",
"ITEM_TYPE_RUNE",
"ITEM_TYPE_TELEPORT",
"ITEM_TYPE_TRASHHOLDER",
"ITEM_WILDGROWTH",
"ITEM_WILDGROWTH_PERSISTENT",
"ITEM_WILDGROWTH_SAFE",
"MAPMARK_BAG",
"MAPMARK_CROSS",
"MAPMARK_DOLLAR",
"MAPMARK_EXCLAMATION",
"MAPMARK_FLAG",
"MAPMARK_GREENNORTH",
"MAPMARK_GREENSOUTH",
"MAPMARK_KISS",
"MAPMARK_LOCK",
"MAPMARK_QUESTION",
"MAPMARK_REDEAST",
"MAPMARK_REDNORTH",
"MAPMARK_REDSOUTH",
"MAPMARK_REDWEST",
"MAPMARK_SHOVEL",
"MAPMARK_SKULL",
"MAPMARK_STAR",
"MAPMARK_SWORD",
"MAPMARK_TEMPLE",
"MAPMARK_TICK",
"MESSAGE_DAMAGE_DEALT",
"MESSAGE_DAMAGE_OTHERS",
"MESSAGE_DAMAGE_RECEIVED",
"MESSAGE_EVENT_ADVANCE",
"MESSAGE_EVENT_DEFAULT",
"MESSAGE_EVENT_ORANGE",
"MESSAGE_EXPERIENCE",
"MESSAGE_EXPERIENCE_OTHERS",
"MESSAGE_HEALED",
"MESSAGE_HEALED_OTHERS",
"MESSAGE_INFO_DESCR",
"MESSAGE_STATUS_CONSOLE_BLUE",
"MESSAGE_STATUS_CONSOLE_ORANGE",
"MESSAGE_STATUS_CONSOLE_RED",
"MESSAGE_STATUS_DEFAULT",
"MESSAGE_STATUS_SMALL",
"MESSAGE_STATUS_WARNING",
"ORIGIN_CONDITION",
"ORIGIN_MELEE",
"ORIGIN_NONE",
"ORIGIN_RANGED",
"ORIGIN_SPELL",
"PLAYERSEX_FEMALE",
"PLAYERSEX_MALE",
"PlayerFlag_CanAlwaysLogin",
"PlayerFlag_CanBroadcast",
"PlayerFlag_CanConvinceAll",
"PlayerFlag_CanEditHouses",
"PlayerFlag_CanIllusionAll",
"PlayerFlag_CanPushAllCreatures",
"PlayerFlag_CanSenseInvisibility",
"PlayerFlag_CanSummonAll",
"PlayerFlag_CanTalkRedChannel",
"PlayerFlag_CanTalkRedChannelAnonymous",
"PlayerFlag_CanTalkRedPrivate",
"PlayerFlag_CannotAttackMonster",
"PlayerFlag_CannotAttackPlayer",
"PlayerFlag_CannotBeAttacked",
"PlayerFlag_CannotBeBanned",
"PlayerFlag_CannotBeMuted",
"PlayerFlag_CannotBePushed",
"PlayerFlag_CannotPickupItem",
"PlayerFlag_CannotUseCombat",
"PlayerFlag_CannotUseSpells",
"PlayerFlag_HasInfiniteCapacity",
"PlayerFlag_HasInfiniteMana",
"PlayerFlag_HasInfiniteSoul",
"PlayerFlag_HasNoExhaustion",
"PlayerFlag_IgnoreProtectionZone",
"PlayerFlag_IgnoreSpellCheck",
"PlayerFlag_IgnoreWeaponCheck",
"PlayerFlag_IgnoredByMonsters",
"PlayerFlag_IsAlwaysPremium",
"PlayerFlag_NotGainExperience",
"PlayerFlag_NotGainHealth",
"PlayerFlag_NotGainInFight",
"PlayerFlag_NotGainMana",
"PlayerFlag_NotGainSkill",
"PlayerFlag_NotGenerateLoot",
"PlayerFlag_SetMaxSpeed",
"PlayerFlag_SpecialVIP",
"PlayerFlag_TalkOrangeHelpChannel",
"RETURNVALUE_ACTIONNOTPERMITTEDINANOPVPZONE",
"RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE",
"RETURNVALUE_BOTHHANDSNEEDTOBEFREE",
"RETURNVALUE_CANNOTBEDRESSED",
"RETURNVALUE_CANNOTCONJUREITEMHERE",
"RETURNVALUE_CANNOTPICKUP",
"RETURNVALUE_CANNOTTHROW",
"RETURNVALUE_CANNOTUSETHISOBJECT",
"RETURNVALUE_CANONLYUSEONESHIELD",
"RETURNVALUE_CANONLYUSEONEWEAPON",
"RETURNVALUE_CANONLYUSETHISRUNEONCREATURES",
"RETURNVALUE_CONTAINERNOTENOUGHROOM",
"RETURNVALUE_CREATUREBLOCK",
"RETURNVALUE_CREATUREDOESNOTEXIST",
"RETURNVALUE_CREATUREISNOTREACHABLE",
"RETURNVALUE_DEPOTISFULL",
"RETURNVALUE_DESTINATIONOUTOFREACH",
"RETURNVALUE_DIRECTPLAYERSHOOT",
"RETURNVALUE_DROPTWOHANDEDITEM",
"RETURNVALUE_FIRSTGODOWNSTAIRS",
"RETURNVALUE_FIRSTGOUPSTAIRS",
"RETURNVALUE_NAMEISTOOAMBIGIOUS",
"RETURNVALUE_NEEDEXCHANGE",
"RETURNVALUE_NOERROR",
"RETURNVALUE_NOPARTYMEMBERSINRANGE",
"RETURNVALUE_NOTENOUGHCAPACITY",
"RETURNVALUE_NOTENOUGHLEVEL",
"RETURNVALUE_NOTENOUGHMAGICLEVEL",
"RETURNVALUE_NOTENOUGHMANA",
"RETURNVALUE_NOTENOUGHROOM",
"RETURNVALUE_NOTENOUGHSOUL",
"RETURNVALUE_NOTMOVEABLE",
"RETURNVALUE_NOTPOSSIBLE",
"RETURNVALUE_NOTREQUIREDLEVELTOUSERUNE",
"RETURNVALUE_PLAYERISNOTINVITED",
"RETURNVALUE_PLAYERISNOTREACHABLE",
"RETURNVALUE_PLAYERISPZLOCKED",
"RETURNVALUE_PLAYERISPZLOCKEDENTERPVPZONE",
"RETURNVALUE_PLAYERISPZLOCKEDLEAVEPVPZONE",
"RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE",
"RETURNVALUE_PUTTHISOBJECTINBOTHHANDS",
"RETURNVALUE_PUTTHISOBJECTINYOURHAND",
"RETURNVALUE_THEREISNOWAY",
"RETURNVALUE_THISISIMPOSSIBLE",
"RETURNVALUE_THISPLAYERISALREADYTRADING",
"RETURNVALUE_TOOFARAWAY",
"RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS",
"RETURNVALUE_YOUAREALREADYTRADING",
"RETURNVALUE_YOUAREEXHAUSTED",
"RETURNVALUE_YOUARENOTTHEOWNER",
"RETURNVALUE_YOUCANNOTLOGOUTHERE",
"RETURNVALUE_YOUCANONLYUSEITONCREATURES",
"RETURNVALUE_YOUMAYNOTATTACKAPERSONINPROTECTIONZONE",
"RETURNVALUE_YOUMAYNOTATTACKAPERSONWHILEINPROTECTIONZONE",
"RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE",
"RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER",
"RETURNVALUE_YOUMAYNOTLOGOUTDURINGAFIGHT",
"RETURNVALUE_YOUNEEDAMAGICITEMTOCASTSPELL",
"RETURNVALUE_YOUNEEDAWEAPONTOUSETHISSPELL",
"RETURNVALUE_YOUNEEDPREMIUMACCOUNT",
"RETURNVALUE_YOUNEEDTOLEARNTHISSPELL",
"RETURNVALUE_YOUNEEDTOSPLITYOURSPEARS",
"RETURNVALUE_YOURVOCATIONCANNOTUSETHISSPELL",
"SKILL_AXE",
"SKILL_CLUB",
"SKILL_DISTANCE",
"SKILL_FISHING",
"SKILL_FIST",
"SKILL_LEVEL",
"SKILL_MAGLEVEL",
"SKILL_SHIELD",
"SKILL_SWORD",
"SKULL_BLACK",
"SKULL_GREEN",
"SKULL_NONE",
"SKULL_ORANGE",
"SKULL_RED",
"SKULL_WHITE",
"SKULL_YELLOW",
"SLOTP_AMMO",
"SLOTP_ARMOR",
"SLOTP_BACKPACK",
"SLOTP_DEPOT",
"SLOTP_FEET",
"SLOTP_HEAD",
"SLOTP_LEFT",
"SLOTP_LEGS",
"SLOTP_NECKLACE",
"SLOTP_RIGHT",
"SLOTP_RING",
"SLOTP_TWO_HAND",
"SLOTP_WHEREEVER",
"SPEECHBUBBLE_NONE",
"SPEECHBUBBLE_NORMAL",
"SPEECHBUBBLE_QUEST",
"SPEECHBUBBLE_QUESTTRADER",
"SPEECHBUBBLE_TRADE",
"STACKPOS_FIFTH_ITEM_ABOVE_GROUNDTILE",
"STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE",
"STACKPOS_FOURTH_ITEM_ABOVE_GROUNDTILE",
"STACKPOS_GROUND",
"STACKPOS_SECOND_ITEM_ABOVE_GROUNDTILE",
"STACKPOS_THIRD_ITEM_ABOVE_GROUNDTILE",
"STACKPOS_TOP_CREATURE",
"STACKPOS_TOP_FIELD",
"STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE",
"SUBOWNER_LIST",
"TALKTYPE_BROADCAST",
"TALKTYPE_CHANNEL_O",
"TALKTYPE_CHANNEL_R1",
"TALKTYPE_CHANNEL_R2",
"TALKTYPE_CHANNEL_Y",
"TALKTYPE_MONSTER_SAY",
"TALKTYPE_MONSTER_YELL",
"TALKTYPE_ORANGE_1",
"TALKTYPE_ORANGE_2",
"TALKTYPE_PRIVATE_FROM",
"TALKTYPE_PRIVATE_NP",
"TALKTYPE_PRIVATE_PN",
"TALKTYPE_PRIVATE_RED_FROM",
"TALKTYPE_PRIVATE_RED_TO",
"TALKTYPE_PRIVATE_TO",
"TALKTYPE_SAY",
"TALKTYPE_WHISPER",
"TALKTYPE_YELL",
"TEXTCOLOR_BLUE",
"TEXTCOLOR_DARKRED",
"TEXTCOLOR_LIGHTBLUE",
"TEXTCOLOR_LIGHTGREEN",
"TEXTCOLOR_LIGHTGREY",
"TEXTCOLOR_MAYABLUE",
"TEXTCOLOR_NONE",
"TEXTCOLOR_ORANGE",
"TEXTCOLOR_PURPLE",
"TEXTCOLOR_RED",
"TEXTCOLOR_SKYBLUE",
"TEXTCOLOR_WHITE_EXP",
"TEXTCOLOR_YELLOW",
"TILESTATE_BED",
"TILESTATE_BLOCKPATH",
"TILESTATE_BLOCKSOLID",
"TILESTATE_DEPOT",
"TILESTATE_DEPRECATED_HOUSE",
"TILESTATE_DYNAMIC_TILE",
"TILESTATE_FLOORCHANGE",
"TILESTATE_FLOORCHANGE_DOWN",
"TILESTATE_FLOORCHANGE_EAST",
"TILESTATE_FLOORCHANGE_EAST_ALT",
"TILESTATE_FLOORCHANGE_NORTH",
"TILESTATE_FLOORCHANGE_SOUTH",
"TILESTATE_FLOORCHANGE_SOUTH_ALT",
"TILESTATE_FLOORCHANGE_WEST",
"TILESTATE_HOUSE",
"TILESTATE_IMMOVABLEBLOCKPATH",
"TILESTATE_IMMOVABLEBLOCKSOLID",
"TILESTATE_IMMOVABLENOFIELDBLOCKPATH",
"TILESTATE_MAGICFIELD",
"TILESTATE_MAILBOX",
"TILESTATE_NOFIELDBLOCKPATH",
"TILESTATE_NOLOGOUT",
"TILESTATE_NONE",
"TILESTATE_NOPVPZONE",
"TILESTATE_PROTECTIONZONE",
"TILESTATE_PVPZONE",
"TILESTATE_REFRESH",
"TILESTATE_SUPPORTS_HANGABLE",
"TILESTATE_TELEPORT",
"TILESTATE_TRASHHOLDER",
"VOCATION_NONE",
"WEAPON_AMMO",
"WEAPON_AXE",
"WEAPON_CLUB",
"WEAPON_DISTANCE",
"WEAPON_NONE",
"WEAPON_SHIELD",
"WEAPON_SWORD",
"WEAPON_WAND",
"WORLD_TYPE_NO_PVP",
"WORLD_TYPE_PVP",
"WORLD_TYPE_PVP_ENFORCED"
]
[
"getPlayerFlagValue(cid, flag)",
"getPlayerInstantSpellCount(cid)",
"getPlayerInstantSpellInfo(cid, index)",
"doPlayerAddItem(uid, itemid, <optional: default: 1> count/subtype)",
"doPlayerAddItem(cid, itemid, <optional: default: 1> count, <optional: default: 1> canDropOnMap, <optional: default: 1>subtype)",
"doCreateItem(itemid, type/count, pos)",
"doCreateItemEx(itemid, <optional> count/subtype)",
"doTileAddItemEx(pos, uid)",
"doMoveCreature(cid, direction)",
"doSetCreatureLight(cid, lightLevel, lightColor, time)",
"getCreatureCondition(cid, condition, subId)",
"isValidUID(uid)",
"isDepot(uid)",
"isMovable(uid)",
"doAddContainerItem(uid, itemid, <optional> count/subtype)",
"getDepotId(uid)",
"getWorldTime()",
"getWorldLight()",
"getWorldUpTime()",
"createCombatArea( {area}, <optional> {extArea} )",
"createConditionObject(type)",
"setCombatArea(combat, area)",
"setCombatCondition(combat, condition)",
"setCombatParam(combat, key, value)",
"setConditionParam(condition, key, value)",
"addDamageCondition(condition, rounds, time, value)",
"addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet)",
"setCombatCallBack(combat, key, function_name)",
"setCombatFormula(combat, type, mina, minb, maxa, maxb)",
"setConditionFormula(combat, mina, minb, maxa, maxb)",
"doCombat(cid, combat, param)",
"createCombatObject()",
"doAreaCombatHealth(cid, type, pos, area, min, max, effect)",
"doTargetCombatHealth(cid, target, type, min, max, effect)",
"doAreaCombatMana(cid, pos, area, min, max, effect)",
"doTargetCombatMana(cid, target, min, max, effect)",
"doAreaCombatCondition(cid, pos, area, condition, effect)",
"doTargetCombatCondition(cid, target, condition, effect)",
"doAreaCombatDispel(cid, pos, area, type, effect)",
"doTargetCombatDispel(cid, target, type, effect)",
"doChallengeCreature(cid, target)",
"doSetMonsterOutfit(cid, name, time)",
"doSetItemOutfit(cid, item, time)",
"doSetCreatureOutfit(cid, outfit, time)",
"isInArray(array, value)",
"addEvent(callback, delay, ...)",
"stopEvent(eventid)",
"saveServer()",
"cleanMap()",
"debugPrint(text)",
"isInWar(cid, target)",
"doPlayerSetOfflineTrainingSkill(cid, skill)",
"getWaypointPosition(name)",
"sendChannelMessage(channelId, type, message)",
"sendGuildChannelMessage(guildId, type, message)",
"registerClass(className, baseClass, newFunction)",
"registerTable(tableName)",
"registerMethod(className, functionName, function)",
"registerMetaMethod(className, functionName, function)",
"registerGlobalMethod(functionName, function)",
"registerVariable(tableName, name, value)",
"registerGlobalVariable(name, value)",
"registerEnum(value)",
"registerEnumIn(tableName, value)",
"getPlayerFlagValue(cid, flag)",
"getPlayerInstantSpellCount(cid)",
"getPlayerInstantSpellInfo(cid, index)",
"doPlayerAddItem(cid, itemid, <optional: default: 1> count/subtype, <optional: default: 1> canDropOnMap)",
"doPlayerAddItem(cid, itemid, <optional: default: 1> count, <optional: default: 1> canDropOnMap, <optional: default: 1>subtype)",
"doTileAddItemEx(pos, uid)",
"doCreateItem(itemid, <optional> type/count, pos)",
"doCreateItemEx(itemid, <optional> count/subtype)",
"debugPrint(text)",
"getWorldTime()",
"getWorldLight()",
"getWorldUpTime()",
"createCombatObject()",
"createCombatArea( {area}, <optional> {extArea} )",
"createConditionObject(type)",
"setCombatArea(combat, area)",
"setCombatCondition(combat, condition)",
"setCombatParam(combat, key, value)",
"setConditionParam(condition, key, value)",
"addDamageCondition(condition, rounds, time, value)",
"addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet, lookAddons, lookMount)",
"setCombatCallBack(combat, key, function_name)",
"setCombatFormula(combat, type, mina, minb, maxa, maxb)",
"setConditionFormula(condition, mina, minb, maxa, maxb)",
"doCombat(cid, combat, param)",
"doAreaCombatHealth(cid, type, pos, area, min, max, effect, origin = ORIGIN_SPELL)",
"doTargetCombatHealth(cid, target, type, min, max, effect, origin = ORIGIN_SPELL)",
"doAreaCombatMana(cid, pos, area, min, max, effect, origin = ORIGIN_SPELL)",
"doTargetCombatMana(cid, target, min, max, effect, origin = ORIGIN_SPELL)",
"doAreaCombatCondition(cid, pos, area, condition, effect)",
"doTargetCombatCondition(cid, target, condition, effect)",
"doAreaCombatDispel(cid, pos, area, type, effect)",
"doTargetCombatDispel(cid, target, type, effect)",
"doChallengeCreature(cid, target)",
"doSetCreatureOutfit(cid, outfit, time)",
"doSetMonsterOutfit(cid, name, time)",
"doSetItemOutfit(cid, item, time)",
"doMoveCreature(cid, direction)",
"isValidUID(uid)",
"isDepot(uid)",
"isMoveable(uid)",
"isMovable(uid)",
"doAddContainerItem(uid, itemid, <optional> count/subtype)",
"getDepotId(uid)",
"isInArray(array, value)",
"doSetCreatureLight(cid, lightLevel, lightColor, time)",
"addEvent(callback, delay, ...)",
"stopEvent(eventid)",
"isInWar(cid, target)",
"doPlayerSetOfflineTrainingSkill(cid, skillid)",
"getWaypointPositionByName(name)",
"sendChannelMessage(channelId, type, message)",
"sendGuildChannelMessage(guildId, type, message)",
"isType(derived, base)",
"rawgetmetatable(metatableName)",
"os.mtime()",
"table.create(arrayLength, keyLength)",
"Game.getSpectators(position, multifloor = false, onlyPlayer = false, minRangeX = 0, maxRangeX = 0, minRangeY = 0, maxRangeY = 0)",
"Game.getPlayers()",
"Game.loadMap(path)",
"Game.getExperienceStage(level)",
"Game.getMonsterCount()",
"Game.getPlayerCount()",
"Game.getNpcCount()",
"Game.getTowns()",
"Game.getHouses()",
"Game.getGameState()",
"Game.setGameState(state)",
"Game.getWorldType()",
"Game.setWorldType(type)",
"Game.getReturnMessage(value)",
"Game.createItem(itemId, count, position)",
"Game.createContainer(itemId, size, position)",
"Game.createMonster(monsterName, position, extended = false, force = false)",
"Game.createNpc(npcName, position, extended = false, force = false)",
"Game.createTile(x, y, z, isDynamic = false)",
"Game.createTile(position, isDynamic = false)",
"Game.startRaid(raidName)",
"Variant(number/string/position/thing)",
"Variant:getNumber()",
"Variant:getString()",
"Variant:getPosition()",
"Position(x = 0, y = 0, z = 0, stackpos = 0)",
"Position(position)",
"position:getDistance(positionEx)",
"position:isSightClear(positionEx, sameFloor = true)",
"position:sendMagicEffect(magicEffect, player = nullptr)",
"position:sendDistanceEffect(positionEx, distanceEffect, player = nullptr)",
"Tile(x, y, z)",
"Tile(position)",
"tile:getPosition()",
"tile:getGround()",
"tile:getThing(index)",
"tile:getThingCount()",
"tile:getTopVisibleThing(creature)",
"tile:getTopTopItem()",
"tile:getTopDownItem()",
"tile:getFieldItem()",
"tile:getItemById(itemId, subType = -1)",
"tile:getItemByType(itemType)",
"tile:getItemByTopOrder(topOrder)",
"tile:getItemCountById(itemId, subType = -1)",
"tile:getBottomCreature()",
"tile:getTopCreature()",
"tile:getBottomVisibleCreature(creature)",
"tile:getTopVisibleCreature(creature)",
"tile:getItems()",
"tile:getItemCount()",
"tile:getDownItemCount()",
"tile:getTopItemCount()",
"tile:getCreatures()",
"tile:getCreatureCount()",
"tile:hasProperty(property, item)",
"tile:getThingIndex(thing)",
"tile:hasFlag(flag)",
"tile:queryAdd(thing, flags)",
"tile:getHouse()",
"NetworkMessage()",
"networkMessage:getByte()",
"networkMessage:getU16()",
"networkMessage:getU32()",
"networkMessage:getU64()",
"networkMessage:getString()",
"networkMessage:getPosition()",
"networkMessage:addByte(number)",
"networkMessage:addU16(number)",
"networkMessage:addU32(number)",
"networkMessage:addU64(number)",
"networkMessage:addString(string)",
"networkMessage:addPosition(position)",
"networkMessage:addDouble(number)",
"networkMessage:addItem(item)",
"networkMessage:addItemId(itemId)",
"networkMessage:reset()",
"networkMessage:skipBytes(number)",
"networkMessage:sendToPlayer(player, broadcast)",
"ModalWindow(id, title, message)",
"modalWindow:getId()",
"modalWindow:getTitle()",
"modalWindow:getMessage()",
"modalWindow:setTitle(text)",
"modalWindow:setMessage(text)",
"modalWindow:getButtonCount()",
"modalWindow:getChoiceCount()",
"modalWindow:addButton(id, text)",
"modalWindow:addChoice(id, text)",
"modalWindow:getDefaultEnterButton()",
"modalWindow:setDefaultEnterButton(buttonId)",
"modalWindow:getDefaultEscapeButton()",
"modalWindow:setDefaultEscapeButton(buttonId)",
"modalWindow:hasPriority()",
"modalWindow:setPriority(priority)",
"modalWindow:sendToPlayer(player)",
"Item(uid)",
"item:isItem()",
"item:getParent()",
"item:getTopParent()",
"item:getId()",
"item:clone()",
"item:split(count = 1)",
"item:remove(count = -1)",
"item:getUniqueId()",
"item:getActionId()",
"item:setActionId(actionId)",
"item:getCount()",
"item:getCharges()",
"item:getFluidType()",
"item:getWeight()",
"item:getSubType()",
"item:getName()",
"item:getPluralName()",
"item:getArticle()",
"item:getPosition()",
"item:getTile()",
"item:hasAttribute(key)",
"item:getAttribute(key)",
"item:setAttribute(key, value)",
"item:removeAttribute(key)",
"item:moveTo(position/cylinder)",
"item:transform(itemId, count/subType = -1)",
"item:decay()",
"item:getDescription(distance)",
"item:hasProperty(property)",
"Container(uid)",
"container:getContentDescription()",
"container:getSize()",
"container:getCapacity()",
"container:getEmptySlots(recursive = false)",
"container:getItemHoldingCount()",
"container:getItem(index)",
"container:hasItem(item)",
"container:addItem(itemId, count/subType = 1, index = INDEX_WHEREEVER, flags = 0)",
"container:addItemEx(item, index = INDEX_WHEREEVER, flags = 0)",
"container:getItemCountById(itemId, subType = -1)",
"Teleport(uid)",
"teleport:getDestination()",
"teleport:setDestination(position)",
"Creature(id/name/userdata)",
"creature:registerEvent(name)",
"creature:unregisterEvent(name)",
"creature:isRemoved()",
"creature:isCreature()",
"creature:isInGhostMode()",
"creature:isHealthHidden()",
"creature:canSee(position)",
"creature:canSeeCreature(creature)",
"creature:getParent()",
"creature:getId()",
"creature:getName()",
"creature:getTarget()",
"creature:setTarget(target)",
"creature:getFollowCreature()",
"creature:setFollowCreature(followedCreature)",
"creature:getMaster()",
"creature:setMaster(master)",
"creature:getLight()",
"creature:setLight(color, level)",
"creature:getSpeed()",
"creature:getBaseSpeed()",
"creature:changeSpeed(delta)",
"creature:setDropLoot(doDrop)",
"creature:getPosition()",
"creature:getTile()",
"creature:getDirection()",
"creature:setDirection(direction)",
"creature:getHealth()",
"creature:addHealth(healthChange)",
"creature:getMaxHealth()",
"creature:setMaxHealth(maxHealth)",
"creature:setHiddenHealth(hide)",
"creature:getMana()",
"creature:addMana(manaChange, animationOnLoss = false)",
"creature:getMaxMana()",
"creature:getSkull()",
"creature:setSkull(skull)",
"creature:getOutfit()",
"creature:setOutfit(outfit)",
"creature:getCondition(conditionType, conditionId = CONDITIONID_COMBAT, subId = 0)",
"creature:addCondition(condition, force = false)",
"creature:removeCondition(conditionType, conditionId = CONDITIONID_COMBAT, subId = 0, force = false)",
"creature:remove()",
"creature:teleportTo(position, pushMovement = false)",
"creature:say(text, type, ghost = false, target = nullptr, position)",
"creature:getDamageMap()",
"creature:getSummons()",
"creature:getDescription(distance)",
"creature:getPathTo(pos, minTargetDist = 0, maxTargetDist = 1, fullPathSearch = true, clearSight = true, maxSearchDist = 0)",
"Player(id/name/userdata)",
"player:isPlayer()",
"player:getGuid()",
"player:getIp()",
"player:getAccountId()",
"player:getLastLoginSaved()",
"player:getLastLogout()",
"player:getAccountType()",
"player:setAccountType(accountType)",
"player:getCapacity()",
"player:setCapacity(capacity)",
"player:getFreeCapacity()",
"player:getDepotChest(depotId, autoCreate = false)",
"player:getInbox()",
"player:getSkullTime()",
"player:setSkullTime(skullTime)",
"player:getDeathPenalty()",
"player:updateUnjustPoints(progressDay, killsRemainingDay, progressWeek, killsRemainingWeek, progressMonth, killsRemainingMonth, skullDuration)",
"player:getExperience()",
"player:addExperience(experience, sendText = false)",
"player:removeExperience(experience, sendText = false)",
"player:getLevel()",
"player:getMagicLevel()",
"player:getBaseMagicLevel()",
"player:setMaxMana(maxMana)",
"player:getManaSpent()",
"player:addManaSpent(amount)",
"player:getSkillLevel(skillType)",
"player:getEffectiveSkillLevel(skillType)",
"player:getSkillPercent(skillType)",
"player:getSkillTries(skillType)",
"player:addSkillTries(skillType, tries)",
"player:getItemCount(itemId, subType = -1)",
"player:getItemById(itemId, deepSearch, subType = -1)",
"player:getVocation()",
"player:setVocation(id/name/userdata)",
"player:getSex()",
"player:setSex(newSex)",
"player:getTown()",
"player:setTown(town)",
"player:getGuild()",
"player:setGuild(guild)",
"player:getGuildLevel()",
"player:setGuildLevel(level)",
"player:getGuildNick()",
"player:setGuildNick(nick)",
"player:getGroup()",
"player:setGroup(group)",
"player:getStamina()",
"player:setStamina(stamina)",
"player:getSoul()",
"player:addSoul(soulChange)",
"player:getMaxSoul()",
"player:getBankBalance()",
"player:setBankBalance(bankBalance)",
"player:getStorageValue(key)",
"player:setStorageValue(key, value)",
"player:addItem(itemId, count = 1, canDropOnMap = true, subType = 1, slot = CONST_SLOT_WHEREEVER)",
"player:addItemEx(item, canDropOnMap = false, index = INDEX_WHEREEVER, flags = 0)",
"player:addItemEx(item, canDropOnMap = true, slot = CONST_SLOT_WHEREEVER)",
"player:removeItem(itemId, count, subType = -1, ignoreEquipped = false)",
"player:getMoney()",
"player:addMoney(money)",
"player:removeMoney(money)",
"player:showTextDialog(itemId, text, canWrite, length)",
"player:sendTextMessage(type, text, position, primaryValue = 0, primaryColor = TEXTCOLOR_NONE, secondaryValue = 0, secondaryColor = TEXTCOLOR_NONE)",
"player:sendChannelMessage(author, text, type, channelId)",
"player:sendPrivateMessage(speaker, text, type)",
"player:channelSay(speaker, type, text, channelId)",
"player:openChannel(channelId)",
"player:getSlotItem(slot)",
"player:getParty()",
"player:addOutfit(lookType)",
"player:addOutfitAddon(lookType, addon)",
"player:removeOutfit(lookType)",
"player:removeOutfitAddon(lookType, addon)",
"player:hasOutfit(lookType, addon = 0)",
"player:sendOutfitWindow()",
"player:addMount(mountId)",
"player:removeMount(mountId)",
"player:hasMount(mountId)",
"player:getPremiumDays()",
"player:addPremiumDays(days)",
"player:removePremiumDays(days)",
"player:hasBlessing(blessing)",
"player:addBlessing(blessing)",
"player:removeBlessing(blessing)",
"player:canLearnSpell(spellName)",
"player:learnSpell(spellName)",
"player:forgetSpell(spellName)",
"player:hasLearnedSpell(spellName)",
"player:sendTutorial(tutorialId)",
"player:addMapMark(position, type, description)",
"player:save()",
"player:popupFYI(message)",
"player:isPzLocked()",
"player:getClient()",
"player:getHouse()",
"player:setGhostMode(enabled)",
"player:getContainerId(container)",
"player:getContainerById(id)",
"player:getContainerIndex(id)",
"Monster(id/userdata)",
"monster:isMonster()",
"monster:getType()",
"monster:getSpawnPosition()",
"monster:isInSpawnRange(position)",
"monster:isIdle()",
"monster:setIdle(idle)",
"monster:isTarget(creature)",
"monster:isOpponent(creature)",
"monster:isFriend(creature)",
"monster:addFriend(creature)",
"monster:removeFriend(creature)",
"monster:getFriendList()",
"monster:getFriendCount()",
"monster:addTarget(creature, pushFront = false)",
"monster:removeTarget(creature)",
"monster:getTargetList()",
"monster:getTargetCount()",
"monster:selectTarget(creature)",
"monster:searchTarget(searchType = TARGETSEARCH_DEFAULT)",
"Npc(id/name/userdata)",
"npc:isNpc()",
"npc:setMasterPos(pos, radius)",
"npc:getSpeechBubble()",
"npc:setSpeechBubble(speechBubble)",
"Guild(id)",
"guild:getId()",
"guild:getName()",
"guild:getMembersOnline()",
"guild:addMember(player)",
"guild:removeMember(player)",
"guild:addRank(id, name, level)",
"guild:getRankById(id)",
"guild:getRankByLevel(level)",
"guild:getMotd()",
"guild:setMotd(motd)",
"guild:getBankBalance()",
"guild:setBankBalance(bankBalance)",
"Group(id)",
"group:getId()",
"group:getName()",
"group:getFlags()",
"group:getAccess()",
"group:getMaxDepotItems()",
"group:getMaxVipEntries()",
"Vocation(id/name)",
"vocation:getId()",
"vocation:getClientId()",
"vocation:getName()",
"vocation:getDescription()",
"vocation:getRequiredSkillTries(skillType, skillLevel)",
"vocation:getRequiredManaSpent(magicLevel)",
"vocation:getCapacityGain()",
"vocation:getHealthGain()",
"vocation:getHealthGainTicks()",
"vocation:getHealthGainAmount()",
"vocation:getManaGain()",
"vocation:getManaGainTicks()",
"vocation:getManaGainAmount()",
"vocation:getMaxSoul()",
"vocation:getSoulGainTicks()",
"vocation:getAttackSpeed()",
"vocation:getBaseSpeed()",
"vocation:getDemotion()",
"vocation:getPromotion()",
"Town(id/name)",
"town:getId()",
"town:getName()",
"town:getTemplePosition()",
"House(id)",
"house:getId()",
"house:getName()",
"house:getTown()",
"house:getExitPosition()",
"house:getRent()",
"house:getOwnerGuid()",
"house:setOwnerGuid(guid, updateDatabase = true)",
"house:getBeds()",
"house:getBedCount()",
"house:getDoors()",
"house:getDoorCount()",
"house:getTiles()",
"house:getTileCount()",
"house:getAccessList(listId)",
"house:setAccessList(listId, list)",
"ItemType(id/name)",
"itemType:isCorpse()",
"itemType:isDoor()",
"itemType:isContainer()",
"itemType:isFluidContainer()",
"itemType:isMovable()",
"itemType:isRune()",
"itemType:isStackable()",
"itemType:isReadable()",
"itemType:isWritable()",
"itemType:getType()",
"itemType:getId()",
"itemType:getClientId()",
"itemType:getName()",
"itemType:getPluralName()",
"itemType:getArticle()",
"itemType:getDescription()",
"itemType:getSlotPosition()",
"itemType:getCharges()",
"itemType:getFluidSource()",
"itemType:getCapacity()",
"itemType:getWeight(count = 1)",
"itemType:getHitChance()",
"itemType:getShootRange()",
"itemType:getAttack()",
"itemType:getDefense()",
"itemType:getExtraDefense()",
"itemType:getArmor()",
"itemType:getWeaponType()",
"itemType:getElementType()",
"itemType:getElementDamage()",
"itemType:getTransformEquipId()",
"itemType:getTransformDeEquipId()",
"itemType:getDestroyId()",
"itemType:getDecayId()",
"itemType:getRequiredLevel()",
"itemType:hasSubType()",
"Combat()",
"combat:setParameter(key, value)",
"combat:setFormula(type, mina, minb, maxa, maxb)",
"combat:setArea(area)",
"combat:setCondition(condition)",
"combat:setCallback(key, function)",
"combat:setOrigin(origin)",
"combat:execute(creature, variant)",
"Condition(conditionType, conditionId = CONDITIONID_COMBAT)",
"condition:delete()",
"condition:getId()",
"condition:getSubId()",
"condition:getType()",
"condition:getIcons()",
"condition:getEndTime()",
"condition:clone()",
"condition:getTicks()",
"condition:setTicks(ticks)",
"condition:setParameter(key, value)",
"condition:setFormula(mina, minb, maxa, maxb)",
"condition:setOutfit(outfit)",
"condition:setOutfit(lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet, lookAddons, lookMount)",
"condition:addDamage(rounds, time, value)",
"MonsterType(name)",
"monsterType:isAttackable()",
"monsterType:isConvinceable()",
"monsterType:isSummonable()",
"monsterType:isIllusionable()",
"monsterType:isHostile()",
"monsterType:isPushable()",
"monsterType:isHealthShown()",
"monsterType:canPushItems()",
"monsterType:canPushCreatures()",
"monsterType:getName()",
"monsterType:getNameDescription()",
"monsterType:getHealth()",
"monsterType:getMaxHealth()",
"monsterType:getRunHealth()",
"monsterType:getExperience()",
"monsterType:getCombatImmunities()",
"monsterType:getConditionImmunities()",
"monsterType:getAttackList()",
"monsterType:getDefenseList()",
"monsterType:getElementList()",
"monsterType:getVoices()",
"monsterType:getLoot()",
"monsterType:getCreatureEvents()",
"monsterType:getSummonList()",
"monsterType:getMaxSummons()",
"monsterType:getArmor()",
"monsterType:getDefense()",
"monsterType:getOutfit()",
"monsterType:getRace()",
"monsterType:getCorpseId()",
"monsterType:getManaCost()",
"monsterType:getBaseSpeed()",
"monsterType:getLight()",
"monsterType:getStaticAttackChance()",
"monsterType:getTargetDistance()",
"monsterType:getYellChance()",
"monsterType:getYellSpeedTicks()",
"monsterType:getChangeTargetChance()",
"monsterType:getChangeTargetSpeed()",
"party:disband()",
"party:getLeader()",
"party:setLeader(player)",
"party:getMembers()",
"party:getMemberCount()",
"party:getInvitees()",
"party:getInviteeCount()",
"party:addInvite(player)",
"party:removeInvite(player)",
"party:addMember(player)",
"party:removeMember(player)",
"party:isSharedExperienceActive()",
"party:isSharedExperienceEnabled()",
"party:shareExperience(experience)",
"party:setSharedExperience(active)"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment