Skip to content

Instantly share code, notes, and snippets.

View felzan's full-sized avatar
:shipit:
Hmm

Luís Felipe Zanatto felzan

:shipit:
Hmm
View GitHub Profile
@felzan
felzan / tfs-lua.sublime-completions
Last active January 12, 2016 12:44 — forked from TheUltDev/tfs-lua.sublime-completions
Lua functions for The Forgotten Server. Autocomplete file for Sublime Text 3.
{
"scope": "source.lua",
"completions": [
"ACCOUNT_TYPE_GAMEMASTER",
"ACCOUNT_TYPE_GOD",
"ACCOUNT_TYPE_NORMAL",
"ACCOUNT_TYPE_SENIORTUTOR",
"ACCOUNT_TYPE_TUTOR",
"CALLBACK_PARAM_LEVELMAGICVALUE",
"CALLBACK_PARAM_SKILLVALUE",
function Container.isContainer(self)
function Creature.getClosestFreePosition(self, position, extended)
function Creature.getPlayer(self)
function Creature.isItem(self)
function Creature.isMonster(self)
function Creature.isNpc(self)
function Creature.isPlayer(self)
function Creature.isTile(self)
function Creature:onAreaCombat(tile, isAggressive)
function Creature:onChangeOutfit(outfit)
{"trigger": "Container.isContainer","contents": "Container.isContainer(${1:self})\n$10"},
{"trigger": "Creature.getClosestFreePosition","contents": "Creature.getClosestFreePosition(${1:self}, ${2:position}, ${3:extended})\n$10"},
{"trigger": "Creature.getPlayer","contents": "Creature.getPlayer(${1:self})\n$10"},
{"trigger": "Creature.isItem","contents": "Creature.isItem(${1:self})\n$10"},
{"trigger": "Creature.isMonster","contents": "Creature.isMonster(${1:self})\n$10"},
{"trigger": "Creature.isNpc","contents": "Creature.isNpc(${1:self})\n$10"},
{"trigger": "Creature.isPlayer","contents": "Creature.isPlayer(${1:self})\n$10"},
{"trigger": "Creature.isTile","contents": "Creature.isTile(${1:self})\n$10"},
{"trigger": "Creature:onAreaCombat","contents": "Creature:onAreaCombat(${1:tile}, ${2:isAggressive})\n$10"},
{"trigger": "Creature:onChangeOutfit","contents": "Creature:onChangeOutfit(${1:outfit})\n$10"},
function AddPremium(cid, days)
function BackTeam(cid)
function BikeSpeedOff(cid, t)
function BikeSpeedOn(cid, t)
function ChangeBalls(cid, param, cancelequal)
function ChargingBeam(cid)
function EddyHavoc(cid)
function FocusModule.messageMatcher(keywords, message)
function FocusModule.onFarewell(cid, message, keywords, parameters)
function FocusModule.onGreet(cid, message, keywords, parameters)
ACTION_BANFINAL
ACTION_BANISHMENT
ACTION_BANLOCK
ACTION_BANLOCKFINAL
ACTION_BANREPORT
ACTION_BANREPORTFINAL
ACTION_DELETION
ACTION_NAMELOCK
ACTION_NAMEREPORT
ACTION_NOTATION
function onMove(cid, fromPosition, toPosition) )
function destroyItem(cid, itemEx, toPosition)
function onUse(cid, item, fromPosition, itemEx, toPosition)
function BikeSpeedOn(cid,nSpeed)
function BikeSpeedOff(cid)
function isRunning(id)
function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2)
function onUse(cid, item, topos, item2, frompos)
function onUse(cid, item, frompos, item2, topos)
function onUse(cid, item, frompos, item3, topos)
{
"player": {"values": ["feed", "addexp", "dothis"]},
"creature": {"values": ["kill", "this", "bitch"]},
"z-index": {"values": ["auto", "inherit"]}
}
addEvent(callback, delay, ...)
canJoin(player)
cleanMap()
closeShopWindow(cid)
Combat()
combat:execute(creature, variant)
combat:setArea(area)
combat:setCallback(key, function)
combat:setCondition(condition)
combat:setFormula(type, mina, minb, maxa, maxb)
addDamageCondition(condition, rounds, time, value)
addEvent(callback, delay, ...)
addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet)
addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet[, lookAddons, lookMount])
canJoin(player)
cleanMap()
closeShopWindow(cid)
Combat()
combat:execute(creature, variant)
combat:setArea(area)
Atom sync-settings