Skip to content

Instantly share code, notes, and snippets.

View lyuz1n's full-sized avatar
:shipit:
Focusing

Moisés dos Santos lyuz1n

:shipit:
Focusing
View GitHub Profile
@lyuz1n
lyuz1n / protocolreplay.cpp
Created August 24, 2019 19:20
Cam System 10.98
#include "otpch.h"
#include "protocolreplay.h"
#include "outputmessage.h"
#include "configmanager.h"
#include "game.h"
#include "ban.h"
#include "scheduler.h"
@lyuz1n
lyuz1n / vector.lua
Last active June 29, 2020 02:35
lua vector helper
--[[
Lua vector helper created by Lyµ
Discord: Lyµ#8767
]]
vector = {}
setmetatable(vector, {
__call = function(self, ...)
local obj = {...}
@lyuz1n
lyuz1n / actions.xml
Last active July 2, 2020 00:57
Slot Machine (only works in forgottenserver 1.x)
<action uniqueid="48123" script="slot_machine.lua" />
@lyuz1n
lyuz1n / state_manager.dart
Last active April 20, 2022 00:11
Simple State Manager & Dependence Injection
import 'package:flutter/material.dart';
abstract class Homura {
static final Map<Type, ChangeNotifier> _controllers = {};
static ChangeNotifier put(ChangeNotifier controller, {bool replaceOld = false}) {
final Type type = controller.runtimeType;
bool oldRemoved = false;
if (replaceOld && _controllers[type] != null) {
@lyuz1n
lyuz1n / countdown_helper.lua
Last active May 17, 2023 20:06
Countdown Helper (extension for forgottenserver)
--[[
Description: This file is part of Countdown Helper
Author: Lyu
Discord: Lyµ#8767
]]
local EVENT_STATE_CREATED = 0
local EVENT_STATE_STARTED = 1
local EVENT_STATE_PAUSED = 2
local EVENT_STATE_FINISHED = 3
@lyuz1n
lyuz1n / duration_helper.lua
Last active June 17, 2023 04:10
Duration Helper
--[[
Description: This file is part of duration_helper
Author: Lyu
Discord: lyu07
]]
local ERROR_ARGUMENTS_REQUIRED = 'arguments days, hours, minutes, seconds or milliseconds is required'
local ERROR_ARGUMENTS_MUST_BE_NUMBERS = 'arguments must be numbers'
local langs = {
@lyuz1n
lyuz1n / timer_helper.lua
Last active June 17, 2023 04:11
Timer Helper (TFS)
--[[
Description: This file is part of timer_helper
Author: Lyu
Discord: lyu7
]]
local TimerType = {COUNTDOWN = 0, PERIODIC = 1}
local TimerState = {CREATED = 0, STARTED = 1, FINISHED = 2, CANCELED = 3}
if not Timer then

Zone System

Se você tem curiosidade sobre casos de uso, aqui está algumas features que foram desenvolvidas utilizando o Zone System: https://github.com/lyuz1n/zone-system-features/tree/main

011


Zone System é um ferramenta revolucionária que possibilita determinar zonas específicas para ações específicas, sendo possível manipular dentro da zona, todas as criaturas, tiles e posições.

@lyuz1n
lyuz1n / zone-system-en.md
Created August 9, 2023 22:01
Zone System

Zone System

If you are curious about use cases, here are some features that were developed using the Zone System: https://github.com/lyuz1n/zone-system-features/tree/main

011


Zone System is a revolutionary tool that makes it possible to determine specific zones for specific actions, being possible to manipulate within the zone, all creatures, tiles and positions.