Jump to content

Recommended Posts

Posted (edited)

Because the most of Lineage 2 servers have a global gatekeeper, I decided to share a guide about this for you.

First of all you have to insert this code in Server/Script/npcdata.txt (desirable at the end of file):
 

npc_begin       teleporter      36006   [gk_global]     level=70        acquire_exp_rate=0      acquire_sp=0    unsowing=1      clan={} ignore_clan_list={}     clan_help_range=300     slot_chest=[]   slot_rhand=[]   slot_lhand=[]   shield_defense_rate=0   shield_defense=0        skill_list={@s_race_undead;@s_full_magic_defence}       npc_ai={[gk_global];{[fnHi]=[teleport_list.htm]};{[fnNobless]=[teleport_list.htm]};{[fnNoNobless]=[teleport_list.htm]};{[fnNoNoblessItem]=[teleport_list.htm]};{[fnYouAreChaotic]=[gk_global003.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=134};{[MoveAroundSocial2]=134}}       category={}     race=human      sex=female      undying=1       can_be_attacked=0       corpse_time=7   no_sleep_mode=0 agro_range=1000 ground_high={120;0;0}   ground_low={50;0;0}     exp=429634528   org_hp=2444.46819       org_hp_regen=7.5        org_mp=1345.8   org_mp_regen=2.7        collision_radius={8;8}  collision_height={20;20}        str=40  int=21  dex=30  wit=20  con=43  men=10  base_attack_type=sword  base_attack_range=40    base_damage_range={0;0;80;120}  base_rand_dam=30        base_physical_attack=688.86373  base_critical=4 physical_hit_modify=4.75        base_attack_speed=253   base_reuse_delay=0      base_magic_attack=470.40463     base_defend=295.91597   base_magic_defend=216.53847     physical_avoid_modify=0 soulshot_count=0        spiritshot_count=0      hit_time_factor=0.6     item_make_list={}       corpse_make_list={}     additional_make_list={} additional_make_multi_list={}   hp_increase=0   mp_increase=0   safe_height=100 npc_end

then open Server/Script/ai.obj (with any text editor - you must wait about 1 minute untill it's opening) and at the end of file after 2 white spaces from up to down add the next code:
 


class 1 gk_global : teleporter

property_define_begin

telposlist_begin Position

{"Coliseum"; 146440; 46723; -3400; 0; 0 }

{"Giran Arena"; 73579; 142709; -3768; 0; 0 }

{"Gludin Arena"; -87297; 142365; -3648; 0; 0 }

telposlist_end

telposlist_begin PositionNoblessNoItemTown

{"Talking Island Village"; -84141; 244623; -3729; 0; 0 }

{"Elven Village"; 46951; 51550; -2976; 0; 0 }

{"Dark Elven Village"; 9709; 15566; -4500; 0; 0 }

{"Orc Village"; -45158; -112583; -236; 0; 0 }

{"Dwarven Village"; 115120; -178224; -917; 0; 0 }

{"Gludin Village"; -80826; 149775; -3043; 0; 0 }

{"Gludio Castle Town"; -12694; 122776; -3114; 0; 0 }

{"Town of Dion"; 15671; 142994; -2704; 0; 0 }

{"Giran Castle Town"; 83382; 147983; -3400; 0; 0 }

{"Giran Harbor"; 47935; 186810; -3420; 0; 0 }

{"Heine"; 111455; 219400; -3546; 0; 0 }

{"Hunters Village"; 117088; 76931; -2670; 0; 0 }

{"Town of Oren"; 83011; 53207; -1470; 0; 0 }

{"Ivory Tower"; 85343; 16267; -3640; 0; 0 }

{"Town of Aden"; 146783; 25808; -2000; 0; 0 }

{"Town of Goddard"; 147978; -55408; -2728; 0; 0 }

{"Rune Township"; 43826; -47688; -792; 0; 0 }

{"Town of Schuttgart"; 87093; -143329; -1288; 0; 0 }

telposlist_end

telposlist_begin PositionNoblessNoItemField

{"Elven Ruins [Lv 10-20]"; 48586; 248459; -6160; 0; 0 }

{"Elven Fortess [Lv 10-20]"; 27630; 74962; -3808; 0; 0 }

{"Execution Grounds [Lv 20-40]"; 44589; 148484; -3696; 0; 0 }

{"Fortress Resistance [Lv 25-35]"; 48651; 111342; -2128; 0; 0 }

{"Aligator Island [Lv 35-45]"; 115309; 190650; -3584; 0; 0 }

{"Death Pass [Lv 40-50]"; 71411; 118056; -3672; 0; 0 }

{"Cruma Tower [Lv 35-45]"; 17209; 114182; -3440; 0; 0 }

{"Hardin's Private Academic [Lv 35-50]"; 105918; 109759; -3208; 0; 0 }

{"Enchanted Valley [Lv 45-55]"; 124904; 61992; -3920; 0; 0 }

{"Frozen Labyrinth [Lv 50-60]"; 111584; -111996; -1320; 0; 0 }

{"The Forbidden Gateway [Lv 54-65]"; 185319; 20218; -3264; 0; 0 }

{"Antharas Lair [Lv 50-75]"; 131152; 114471; -3720; 0; 0 }

{"Blazing Swamp [Lv 65-75]"; 159455; -12931; -2872; 0; 0 }

{"Silent Valley [Lv 65-75]"; 170866; 55794; -5240; 0; 0 }

{"Swamp of Scream [Lv 70-75]"; 70479; -49999; -3272; 0; 0 }

{"Valley of Saints [Lv 65-70]"; 81278; -75070; -3728; 0; 0 }

{"Primeval Isle [Lv 70-75]"; 6993; -22078; -3336; 0; 0 }

telposlist_end

telposlist_begin PositionNoblessNoItemSSQ

{"Giants Cave [Lv 79-85]"; 183505; 47449; 4368; 0; 0 }

telposlist_end

property_define_end

class_end

Exemple where to add the code:
 


......

class_end

...WHITE SPACE HERE...

...WHITE SPACE HERE...

paste code here

...WHITE SPACE HERE...

After you're done with this and close&save ai.obj file, go to Server/html and copy paste the next htm file:
- Mirror 1
- Mirror 2

Now the last part of the guide it's how to add the gatekeeper to autospawn when server starts:
- Go in Server/Script/npcpos.txt
- Find(Ctrl+F) the normal gatekeeper name from that town(Ex: gatekeeper_belladonna - Gludio Town) and you will get something like


npcmaker_ex_begin [gludio08_npc1921_020] name=[gludio_npc1921_02001] ai=[default_maker] maximum_npc=4

npc_ex_begin [gatekeeper_belladonna] pos={-12736;122816;-3114;49152} total=1 respawn=1min npc_ex_end

- Now chage maximum_npc=4 to maximum_npc=5 and add this new line after npc_ex_end.Exemple:

npc_ex_begin [gk_global] pos={POSX;POSY;POSZ;FACEDIRECTION} total=1 respawn=1min npc_ex_end

. Replace POSX,POSY,POSZ with new gk coordonates and FACEDIRECTION with N/S/V/E coordonate.
    Face Direction Possible Values:
- North(N)  : 49152
- South(S) : 16384
- West(W) : 32768
- East(E)  : 65536

- NE = (N + E)/2 = (49152 + 65536)/2 =  57344
- NW = (N + W)/2 = (49152 + 32768)/2 = 40960
- WS = (W + S)/2 = (32768 + 16384)/2 = 24576
- SE = (S + E)/2 = (16384 + 65536)/2 = 40960


Now you're done.I hope you will have no problems while you're parsing this guide.

 

Edited by Universe
Posted

Updated: 

 

  Face Direction Possible Values:

- North(N)  : 49152

- South(S) : 16384

- West(W) : 32768

- East(E)  : 65536

 

- NE = (N + E)/2 = (49152 + 65536)/2 =  57344

- NW = (N + W)/2 = (49152 + 32768)/2 = 40960

- WS = (W + S)/2 = (32768 + 16384)/2 = 24576

- SE = (S + E)/2 = (16384 + 65536)/2 = 40960

Posted

Updated: 

 

  Face Direction Possible Values:

- North(N)  : 49152

- South(S) : 16384

- West(W) : 32768

- East(E)  : 65536

 

- NE = (N + E)/2 = (49152 + 65536)/2 =  57344

- NW = (N + W)/2 = (49152 + 32768)/2 = 40960

- WS = (W + S)/2 = (32768 + 16384)/2 = 24576

- SE = (S + E)/2 = (16384 + 65536)/2 = 40960

 

Good Guide!

  • 5 months later...
  • 4 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...

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
    • looking for good price adena or account or other things from lu4 black contact me telegram: hankowens or discord: brasca_17563
  • 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