Jump to content
  • 0

Thelw mia mikri boithia


Question

Posted

exw alonisei to google, exw kseskonisei to maxcheaters  kai den brika tpt pou na DOULEUEI, xreiazome npc gia ct1,5

pio sigekrimena npc buffer p na exei olla ta buffs, gm shop me ola ta items kai ta s80 na ta agorazeis me adena kai oxi me angelic esence p brika ena, opos episeis kai class change npc

kati akoma pws borw na balw na peftoun blood coins apo ta mobs kai na ta balw os adalaksima gia apella?(btw i phoenix apetei system download i mono host?)

5 answers to this question

Recommended Posts

  • 0
Posted

file mporis na vris opio GMshop s aresi kai apla na allaxis to SQL file symfona me ta SQL tou hellbound. episis g na valis sta mobs ta drops mporis na kaneis modify to droplist.SQL kai na valis ena line opws afto:

 

INSERT INTO `droplist` VALUES

('MobID','ItemID','MinDrop','MaxDrop','Category','Drop Chance');

  • 0
Posted

den thelw na kanw neo post opote borei kapios na mou dosei enan buffera me full buffs ena gm shop kai mia GK na telionoume? thx ek ton proteron

  • 0
Posted

exw alonisei to google, exw kseskonisei to maxcheaters kai den brika tpt pou na DOULEUEI, xreiazome npc gia ct1,5

pio sigekrimena npc buffer p na exei olla ta buffs, gm shop me ola ta items kai ta s80 na ta agorazeis me adena kai oxi me angelic esence p brika ena, opos episeis kai class change npc

kati akoma pws borw na balw na peftoun blood coins apo ta mobs kai na ta balw os adalaksima gia apella?(btw i phoenix apetei system download i mono host?)

 

koita. proton sto shop mporeis poli efkola na kaneis edit to ti item 8a poulaei kai to gt 8a ta antalazi. episis 8a mporeis na valeis to drop list opos s eipan oi aloi. gia tin buffer p sinexizeis na zitas psakse ligo iparxoun poles kai kane oti leei edw gia install

http://www.maxcheaters.com/forum/index.php?topic=33769.0 apla elinika einai. kai gia to gmshop mporeis anetotata na kaneis edit kai na mpenei sto pack s. gia gk dn mporo na s doso mias kai dn exw kamia rdy, protimaw c4 kai oti exw einai gia c4....... prospa8ise pantos n vreis, sini8os merika pack exoun rdy gk.

 

UPDATE: dn eida to 8ema tou class changer. loipon pigene sto altsetings pou einai mesa sta config tou gameserver kane delete ta panta kai paste afto edo

 

#=============================================================

# WARNING WARNING

#=============================================================

# Those settings can modify the behaviour of your server.

# Your server will NOT be as retail servers.

#

# Those settings are usefull if you own some special server

# or really small server.

#=============================================================

 

#-------------------------------------------------------------

# Server config

#-------------------------------------------------------------

# AutoLoot enable... True to enable, False to disable

AutoLoot = True

 

# AutoLoot for Adena enable... True to enable, False to disable

# If False Adena will drop on ground even if AutoLoot is enabled

AutoLootAdena = True

 

# If False herbs will drop on ground even if AutoLoot is enabled

AutoLootHerbs = False

 

# If XP loss (and deleveling) is enabled, default is 'true'

Delevel = True

 

# If disabled, magic dmg has always 100% chance of success, default is 'true'

MagicFailures = True

 

# Alternative cancel of attack (bow, cast, all)

AltGameCancelByHit = cast

 

# Alternative rules for shields - if they block, the damage is powerAtk-shieldDef,

# otherwice it's powerAttak / (shieldDef + powerDef)

AltShieldBlocks = False

 

# Alternative Rate Value for Perfect Shield Block Rate.

AltPerfectShieldBlockRate = 5

 

# Alternative AltGameMobAttackAI, like C1

AltGameMobAttackAI = False

 

# Alternative mob behavior in peace zones

# Default = True; Set to False to prevent mobs from auto-agro against players in peace zones

AltMobAgroInPeaceZone = True

 

# Alternative Freight mode. If true, freights can be withdrawed from any place.

# Also, possibility to change Freight price (in adena) for each item slot in freight.

# NOTE: AltGameFreightPrice WILL NOT change the value shown to the player, but the

# player will actually get charged for the value set in here.

AltGameFreights = True

AltGameFreightPrice = 30

 

# Alternative Xp/Sp rewards, if not 0, then calculated as 2^((mob.level-player.level) / coef),

# A few examples for "AltGameExponentXp = 5." and "AltGameExponentSp = 3."

# diff = 0 (player and mob has the same level), XP bonus rate = 1, SP bonus rate = 1

# diff = 3 (mob is 3 levels above), XP bonus rate = 1.52, SP bonus rate = 2

# diff = 5 (mob is 5 levels above), XP bonus rate = 2, SP bonus rate = 3.17

# diff = -8 (mob is 8 levels below), XP bonus rate = 0.4, SP bonus rate = 0.16

AltGameExponentXp = 0

AltGameExponentSp = 0

 

# Set alternative default restarttown

# 0 = Talking Island

AltDefaultRestartTown = 0

 

# Use tiredness (instead of combat points)

AltGameTiredness = False

 

# Disable Raidboss Petrification

DisableRaidBossPetrification = False

 

# Critical Cap

AltCriticalCap = 500

 

#-------------------------------------------------------------

# Alternative settings against player with karma

#-------------------------------------------------------------

AltKarmaPlayerCanBeKilledInPeaceZone = False

AltKarmaPlayerCanShop = True

# Can the player use Scroll of Escape or Return skill?

AltKarmaPlayerCanTeleport = True

# Can the player use gatekeepers (GK)?

AltKarmaPlayerCanUseGK = False

AltKarmaPlayerCanTrade = True

AltKarmaPlayerCanUseWareHouse = True

 

# Protect Player till level of PVP ( he also cant attack other players) 0 = disabled

AltPlayerProtectionLevel = 0

 

# Allow free teleportation around the world.

AltFreeTeleporting = False

 

#Set true for disallow recommend character twice or more a day

AltRecommend = False

 

# Allows to spawn siege guard when castle siege start

# Disable will reduce lag when castle siege

SpawnSiegeGuard = True

 

# Limit attack speed (0 = disable)

MaxPAtkSpeed=1200

MaxMAtkSpeed=1400

 

# Damage Multipliers for Characters.

AltPDamageMages = 1.0

AltMDamageMages = 1.0

AltPDamageFighters = 1.0

AltMDamageFighters = 1.0

 

# Damage Multipliers for pets and summons.

AltPDamagePets = 1.0

AltMDamagePets = 1.0

 

# Damage Multipliers for NPCs (mobs).

AltPDamageNpc = 1.0

AltMDamageNpc = 1.0

 

# Attack Speed config,decrease the delay before next hit.

# for example 0.90 will decrease delay time for 10%

AltAttackDelay = 1.00

 

# Allows grade penalty

GradePenalty = True

 

# Allows Players to Shift-click Mobs and view their Stats and Droplist

AltGameViewNpc = False

 

# If True Hero Weapons can be only eq by Heros cant be traded sold etc..

StrictHeroSystem = True

StrictSevenSigns = True

 

# Hate of mobs on Buffers/Healers - higher value lower hate

BufferHate = 1

 

# No EXP/SP cutoff, if mob is too high level for player, no EXP/SP

# Make sure is a negative value

# -10 = If mob is 10+ levels higher than player, player gets no EXP/SP

# Deprecated, don't use it

# MobPCExpCutoff = -10

 

#Alchemist Mixing Urn temp fail

UrnTempFail = 10

 

# All new characters of the same account are newbies, not only first one

AltNewCharAlwaysIsNewbie = True

 

#SoulCrystal Chance

ChanceToBreak = 10

ChanceToLevel = 32

 

# feature that fails in FakeDeath(true = Failure)

FailFakeDeath = False

 

# Wyvern enable flying in siege.

AltFlyingWyvernInSiege = False

 

# Privilege browse warehouse enables at the same time also withdraw from warehouse!

AltMembersCanWithdrawFromClanWH = False

 

#Remove Castle circlets after a clan lose its castle or a player leaves a clan? - default true

RemoveCastleCirclets = True

 

#-------------------------------------------------------------

# Crafting config

#-------------------------------------------------------------

# Crafting enabled/disabled. On by default

CraftingEnabled = True

 

#Limits for recipes (defal: 50 - for dwarf , 50 - for common)

DwarfRecipeLimit = 50

CommonRecipeLimit = 50

 

# Alternative crafting rules:

# - crafting takes time

# - players get EXP/SP for crafting

AltGameCreation = False

 

# time multiplier - bigger number ===> slower crafting but more XP/SP

AltGameCreationSpeed = 1

 

# Additional XP/SP rate multiplier (for increased XP/SP) default = 1

AltGameCreationRateXp = 1

AltGameCreationRateSp = 1

 

# If set to False, blacksmiths don't take recipes from players inventory when crafting.

# Default = True (on retail it's confirmed that blacksmith use recipes for each crafted item)

AltBlacksmithUseRecipes = True

 

#-------------------------------------------------------------

# Wyvern Manager

#-------------------------------------------------------------

# Elite Pet Trainer in Castle that can train strider to wyver

# for castle lord for 10 B-grade Crystalls

SpawnWyvernManager = True

 

#-------------------------------------------------------------

# Class Master

#-------------------------------------------------------------

# Config for special Class Master npc that can change players occupation

# If you need change occupation only use quest then set this to False (Default)

# Syntax: occupation number;[required item id(count)],[],...;[reward item id(count)],[],...;occupation number...

# Examples:

#

# ConfigClassMaster=1;[57(100000)];[];2;[57(1000000)];[];3;[57(10000000)],[5575(1000000)];[6622(1)]

# 1st occupation change for 100.000 Adena (item id 57)

# 2nd occupation change for 1.000.0000 Adena (item id 57)

# 3rd occupation change for 10.000.0000 Adena (item id 57) and 1.000.000 Ancient Adena (item id 5575)

# on 3rd occupation change player will be rewarded with 1 Book of Giants (item id 6622)

#

# ConfigClassMaster=1;[];[];2;[];[];3;[];[]

# 1st, 2nd, 3rd occupation change for free, without rewards

ConfigClassMaster = 1;[57(100000)];[];2;[57(1000000)];[];3;[57(10000000)],[5575(1000000)];[6622(1)]

# Spawn Class Master npc if you have any in spawnlist. Default = False

SpawnClassMaster = True

 

# Allows Strider Update

ClassMasterUpdateStrider = False

 

#-------------------------------------------------------------

# Skills config

#-------------------------------------------------------------

# Spell Book needed to learn skills

SpBookNeeded = True

# Life crystal needed to learn clan skills

LifeCrystalNeeded = True

# Book needed to enchant skills

EnchantSkillSpBookNeeded = True

 

# Alternative skill learn rules:

# - all classes can learn all skills

# - skills of another class costs x2 SP

# - skills of another race costs x2 SP

# - skills of fighters/mages costs x3 SP

AltGameSkillLearn = False

 

# Allow player sub-class addition without checking for unique quest items.

AltSubClassWithoutQuests = False

# Max SubClasses possible (Default, official value = 3)

MaxSubclass = 3

 

# Alternative success rate formulas for skills like dagger/critical skills,

# 'true' to use this formula , 'false' to use the original based on rCrit (c3 like)

AltGameDaggerFormula = false

 

# Alternative success rate for skills like dagger/critical skills

# MUST be setted above to AltGameDaggerFormula = true

# Rate of success is based on the position of the char,to this is added/subed some percent

# if the char is behind or is in Front of the target.

# FailRate is the chance of a skill critical attack to fail. max value 100 (100% fail)

# Successrate is the chance of a skill critical attack. max value 100 (100% critical)

# Do some tests before changing the values.

AltSuccessRate= 0

AltFailRate= 30

AltSuccessRateBehind = 15

AltSuccessRateFront = 10

 

#Dagger Skill Damage VS heavy,light,robe.

#Use value 1.0 to disable this option.Higher value equal to lower damage.

DaggerVSRobe= 1.8

DaggerVSHeavy = 2.5

DaggerVSLight = 2.0

 

#Instant Kill Effect lvl 2 (no change on CP,HP reduced to 1hp , no kill on char)

#Value In Percent % ,higher value,higher chance,max value = 100%.

InstantKillEffect2 = 2.0

 

# Buff time rate

AltBuffTime = 1

AltDanceTime = 1

AltSeedTime = 1

 

# if True Continues doesnt consume additional mp

AltDanceMpConsume = False

 

# Buff Max Number - 24 retail like.

AltNbCumulatedBuff = 24

 

# Enable auto learn skills for players

AutoLearnSkills=False

 

# Party range for l2attackable (default 1600)

AltPartyRange = 1600

# Party range for l2party (default 1400)

AltPartyRange2 = 1400

 

# Weight Limit multiplier - default 1

AltWeightLimit = 1.

 

# summon penalty rate, the final penalty will be : expPenalty (define in xml) * ratePenalty (define here)

# set to 0 if you want to completely disable summon penalty or let 1.0 to keep it like before

AltSummonPenaltyRate=1.0

 

# temporary config for FallHeight

# by retail each class have own FallHeight

# set Height of Fall before char will get damage

AltMinimumFallHeight = 400

 

#-----------------------------------------------------------------

#Olympiad Config

#-----------------------------------------------------------------

 

# Olympiad Start Time in Military hours Default 6pm (18)

AltOlyStartTime = 18

 

# Olympiad Start Time for Min's, Default 00 so at the start of the hour.

AltOlyMin = 00

 

# Olympiad Compeition Period, Default 6 hours.

AltOlyCPeriod = 21600000

 

# Olympiad Battle Period, Default 6 minutes. (If set different, should be < AltOlyBWait)

AltOlyBattle = 360000

 

# Olympiad Battle Wait, Default 10 Minutes

AltOlyBWait = 600000

 

# Olympiad Inital Wait Period, Default 5 minutes

AltOlyPwait = 300000

 

# Olympiad Weekly Period, Default 1 week

AltOlyWperiod = 604800000

 

# Olympiad Validation Period, Default 24 Hours.

AltOlyVperiod = 86400000

 

#-------------------------------------------------------------

# Npc Crafter

#-------------------------------------------------------------

# Can craft manager create items for players using dwarven skills

CraftManagerDwarvenCraft=False

# Can craft manager create items for players using common craft skills

CraftManagerCommonCraft=False

# Can craft manager break items to crystals

CraftManagerCrystallize=False

# Quota of product price for craft and crystallize

CraftManagerPriceMultiplier=0.1

# Default price, if refference price is zero

CraftManagerDefaultPrice=50000

 

#-------------------------------------------------------------

# Misc config

#-------------------------------------------------------------

 

# Time when a door opens of "The room of a great pirate captain (Zaken)".

# Value range 0-23. (0=00:00:00 AM)

TimeInADayOfOpenADoor = 0

 

# Time that the door of "The room of a great pirate captain (Zaken)" is opening.

# Value is minute. Range 5-30.

TimeOfOpeningADoor = 5

 

# time of NurseAnt's re-spawn

# Value is second. Range 15-120

NurseAntRespawnDelay = 15

 

# Time limit of invade to lair of bosses after server restarted.

TimeLimitOfInvade = 1800000

 

#-----------------------------------

# Dimension Rift Config

#-----------------------------------

# Minimal party size to enter rift. Min = 2, Max = 9.

# If in rift party will become smaller all members will be teleported back

RiftMinPartySize = 5

 

# Number of maximum jumps between rooms allowed, after this time party will be teleported back

MaxRiftJumps = 4

 

# Time in ms the party has to wait until the mobs spawn when entering a room. C4 retail: 10s

RiftSpawnDelay = 10000

 

# Time between automatic jumps in seconds

AutoJumpsDelayMin = 480

AutoJumpsDelayMax = 600

 

# Time Multiplier for stay in the boss room

BossRoomTimeMultiply = 1.5

 

# Cost in dimension fragments to enter the rift, each party member must own this amount

RecruitCost = 18

SoldierCost = 21

OfficerCost = 24

CaptainCost = 27

CommanderCost = 30

HeroCost = 33

 

#-----------------------------------------------------------------

# Manor Config

#-----------------------------------------------------------------

 

# Manor Refresh Time in Military hours Default 8pm (20)

AltManorRefreshTime = 20

 

# Manor Refresh Time for Min's, Default 00 so at the start of the hour.

AltManorRefreshMin = 00

 

# Manor Next Period Approve Time in Military hours Default 6am

AltManorApproveTime = 6

 

# Manor Next Period Approve Time for Min's, Default 00 so at the start of the hour.

AltManorApproveMin = 00

 

# Manor Maintenance time, Default 6 minutes.

AltManorMaintenancePeriod = 360000

 

# Manor Save Type. 1-Save data into db after every action; Default false

AltManorSaveAllActions = False

 

# Manor Save Period (used only if AltManorSaveAllActions=false) Default very 2 hours

AltManorSavePeriodRate = 2

 

 

meta //spawn roy_the_cat kai gg

 

sorry alla dn kserw pos mpenei to codes p vazoune poloi alla oi simvoules efprosdektes. sorry p einai ligo megalo.

  • 0
Posted

Lipon gia na alaxis na ta poulai me adena kai oxi me afta ta angelic tha pas data kai tha bris sto multisell to arxeio pou poulai to item pou thes eki pou tha lei to id tou angelic(afto) tha balis to id 57 dld ta adena kai meta tha ta poulai me adena!

 

 

 

Then exo kapio proxiro multisell brosta mou na ssou dikso pos akribos alla alaxe to id tou angelic essence apo to to multisell arxio pou tha bris poio einai afto apo to merchant sto shop tha anixis to axrio me edit kai thadis apo pou perni tis edoles gia to sigekrimeno adikimeno kai tha psa na anoixis to multisell meta kai tha to diorthosis tha bgalis to id tou angelic essence kai tha balis to id 57 dld adena...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • L2jBayev Chronicle 3: Rise of Darkness – AiEngine Edition In short: this is a C3 build with a full-fledged AI engine, live mercenaries, a built-in quiz, a “personal account” in the Community Board, and server logic neatly distributed across thread pools. The project is about a living world without lags : bots farm, communicate, gather parties, teleport along routes, and the server remains cold and stable.   What's inside (the most delicious) 1) Full-fledged AI engine for characters Behavior types: farming ( FarmAI ), combat ( CombatAI ), party logic ( PartyAI ), trading/walking ( TraderAI / WalkerAI ), support roles (healer, etc.). Class profiles: for mages/archers/daggers, etc., “smart” skill rotations, distance control, sleep/save skills, healing, loot pickup, etc. are implemented (see examples of classes like SpellSingerAI , NecromancerAI , etc.). Self-healing and teleports: when dying, the bot goes through a sequence of steps without sleep()- via AITaskSequence + AITeleportToLocTask , searches for the nearest gatekeeper and teleports via TeleportationManager with routes depending on the level. Auto-support: auto-nipples, arrows/bones, smart auto-proceduring of buffs and auto-banks CP/HP/MP with thresholds - all sewn into the auxiliary EtcPlayersAi . Chat context: ChatManagerAi processes mentions, makes responses with delays (anti-flood), supports party chat and “human” reaction. Understanding: ChatManagerAi system  processes the dialogue, bots remember your aggression and insults, they start to respond less often to modern users, stop accepting or inviting to a group (party) and when it goes beyond the peak they will simply merge you, and every time they see you on the PC, there is an opportunity to measure more often, communicate respectfully and beautifully, in general, a “human” reaction. Why a player/admin needs this: bots actually “live”, farm and interact, and don’t just stand on macros. This is a great background for online and PvE action.   2) Mercenaries (Mercenary system) Full-fledged companion character : L2MercenaryInstance with its own MercenaryAI (movement, attack, support, consumables, shots). Behavior modes: DEFENDER / SUPPORT / PASSIVE - switchable to suit your playing style. Progress and trust: the mercenary's trust/exp/level grows , skills are learned according to the MercenarySkillTree (conditions are based on the trust or level of the owner). Templates and equipment: via MercenaryTemplateTable and spawner - model/weapon/type are selected. Social: MercenarySpeechManager - a set of speeches; the mercenary "comes to life" in the chat. Premium Link: Premium account owners give the mercenary additional trust (faster progress). Why: This is not a dummy pet, but a playful companion with modes, training and “character”.   3) Quiz (event viktorina ) Rounds according to schedule: pre-launch with announcements (minutes/seconds before start), registration .reg, auto-opening of the window. Multiple choice questions: question + set of answer buttons; fair processing, timings, question change. Tops and history: results table, statistics, neat UI via HTML assembly. Flexible control: you can start immediately or set a delayed start (notification package 5/2/1 min, etc.). Why: regular activity for players, “social entertainment” module right in the build.   4) Personal account in Community Board KB managers: buff cabinet, teleports, clans/forums/mail/friends, tops (PK/PvP/wealth/players), character repair, viewing skill trees , etc. Premium logic: some services/mail are limited by premium; premium also affects the visual (nickname color) and bonuses (see effect on mercenary). Single sign-on: all in one place, no team chaos. Why: conveniently manage your character and services without going into the console or installing third-party mods.   Why is the system technically valuable? Minimum load and stability Separated thread pools: AI logic, hunting, teleports, chat - on separate onesScheduledExecutorService ( AI_THREAD_POOL , MONSTER_HUNT_POOL , TELEPORT_POOL , CHAT_POOL ). No "freezing": task sequencers (teleport/recovery) work through the scheduler, not Thread.sleep(). Bot limitation: protection against overload via thresholds/counters - “extra” bots do not start. One bot - one sequence: AITaskManager ensures that the character does not have parallel conflicting tasks. Smoothing out peaks: starting tasks with offsets so that there are no simultaneous “ticks” of hundreds of bots. Monitoring/logs: own loggers (separate files for info/errors/processes/chats), CPU load monitoring. Bottom line: the build is designed for “thick online” and mass activities without TPS failures .   Additional Features Auto-alliances for farming: party logic invites suitable players (checking level/equipment/clan flags), there are “human” responses to requests. Sub/class management: out of the box helpers for changing class/subclass, auto-learning of necessary skills and selection of equipment by level. Security/protection: secondary PIN/picture password support (used in KB/voiced commands; optional). Premium accounts: privileges in KB/mail/visual and synergy with mercenary progress. Ready-made services: tops, auctions/mail, teleports from KB, buff rooms, repairs, viewing skill trees, etc.   Who is this build for? Freeshare/project admins who want a living world “from the pack”: bots and mercenaries provide a constant background of activity. Players who value convenience: personal account, premium services, events and a mercenary companion. Developers who want a clean, predictable backend with thread pools and a neat task model without “magic”.   How it differs from standard assemblies Not macros - AI profiles with “brains”: rotations, positioning, healing, decision making. Not a decoration pet - a mercenary with his own modes, progress, skill tree and lines. Not a faceless gamemod - an event quiz with UI, schedule, tops. No chaos in flows - strict pools, planning and task managers designed for online and growth. No separate scripts - a single personal account in KB for most activities.   TL;DR (one paragraph for the project card) AiEngine C3 is a build with live AI, smart bots, mercenaries (modes/progress/skills), built-in quiz, premium logic and a convenient personal account in KB. Under the hood are distributed thread pools and task managers without sleep(), so even with a dense online the server remains stable and responsive.   Additionally add - there is still a lot of interesting things command .assassin or shift+target (order murder), shift+target for admins on AI characters for control, admin panel is completely rewritten, many additional functions, mercenaries change their appearance depending on trust, deepseek and chatGPT system is connected for communication of characters like real players, GPT - for newer java, there is still a very large list of fixes after the last versions, a lot has been fixed, including height coordinates (Z) geo-Squares, pathfinding, visibility through obstacles, fix pet summons, trade packages, shop packages, many effects, quests (including the original ones like nipples, etc.), Ai behavior of NPC and RB monsters, absolutely all epics have been transferred to AiLoader no longer in python scripts. Attention! The server is suitable for both classic mode and PvP format, as well as with various mods. Absolutely everything is configured in the configurations to suit your taste and purposes of use. It is recommended to launch the server through L2ServerControl (simplifies management and control of processes). Download Servers: Chronicle 3 Server Chronicle 4 Test Upgraded Server Full Desc & screens: Post & Screens c3 Post & Desc c4    
    • 🎃 HALLOWEEN EVENT 🎃   ‼️ Information and details: https://forum.l2harbor.com/threads/halloween-event-fall-harvest-30-10-07-11.8265/post-168620
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock