This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- just place this in libs | |
function doSendAnimatedText(pos, text, color, player) | |
local p = Player(player) | |
if not p then | |
return false | |
end | |
local msg = NetworkMessage() | |
msg:addByte(0x84) | |
msg:addPosition(pos) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local combat = Combat() | |
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) | |
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_WILDGROWTH) | |
local function tile_timer(id, pos, delay, color) | |
if not Tile(pos):getItemById(id) then | |
return true | |
end | |
if delay ~= 1 then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- what is it: | |
-- this is a file designed to make vs code's Lua extension intellisense working properly | |
-- it contains placeholders for Lua content defined by C++ files | |
-- how to use: | |
-- download vs code | |
-- install sumneko's lua extension | |
-- drop this file to your data/scripts folder | |
-- make sure it starts with # so it won't get loaded by the tfs | |
-- open folder in vs code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- example replacement for lack of MESSAGE_STATUS_CONSOLE_BLUE: | |
player:sendPrivateMessage(nil, "Players online: Name [1], Other Name [41], Placeholder [10]") | |
-- output: 21:41 [0]: Players online: Name [1], Other Name [41], Placeholder [10] | |
-- hypothetically the function could be adjusted (source edit) to send "Players online" as player name and "level" as players online |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- client id tester | |
-- /lex clientId | |
-- installation: drop into data/scripts folder | |
local talk = TalkAction("/lex", "/looktypeex") | |
function talk.onSay(player, words, param) | |
if not player:getGroup():getAccess() then | |
return true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CreateSingletonClass(self, obj) | |
obj.__index = obj | |
setmetatable(obj, self) | |
function obj.new(...) | |
if obj._instance then | |
return obj._instance | |
end | |
local instance = setmetatable({}, obj) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCREENSHOT_TYPE_ACHIEVEMENT = 1 | |
SCREENSHOT_TYPE_BESTIARYENTRYCOMPLETED = 2 | |
SCREENSHOT_TYPE_BESTIARYENTRYUNLOCKED = 3 | |
SCREENSHOT_TYPE_BOSSDEFEATED = 4 | |
SCREENSHOT_TYPE_DEATHPVE = 5 | |
SCREENSHOT_TYPE_DEATHPVP = 6 | |
SCREENSHOT_TYPE_LEVELUP = 7 | |
SCREENSHOT_TYPE_PLAYERKILLASSIST = 8 | |
SCREENSHOT_TYPE_PLAYERKILL = 9 | |
SCREENSHOT_TYPE_PLAYERATTACKING = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<channel id="32" name="Lua" script="luachannel.lua" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- module system | |
if not Game.modules then | |
-- load | |
Game.modules = { | |
moduleList = {}, | |
unLoadedModuleList = {} | |
} | |
else | |
-- reload | |
local newModuleList = {} |
OlderNewer