Jump to content

Recommended Posts

Posted

hi all , im playing in l2gve.net , and every 12 hours there is an event for 45 min long , but if u are afk like 2 min u will be kicked ,and there l2walker is working (hellbound) , i think an MoveTo location script would be great ^^ can someone tell me the command pls ? a friend told me that i just had to modify the location

ty

Posted

MOVETO(x,y,z) - that is commend for move

 

I think that can help u too:

 

Rules of Scripting

This page contains a list of codes (syntax) used by the L2Walker and L2Superman scripting language. Before you begin, take a look of these very important rules of scripting.
Rules:
Rule 1: Always save as Unicode
When saving the file, use notepad and select Unicode for the encoding. Go to the tutorials section for more information.
Rule 2: Dont use Tabs
If you use tabs, your script will not function properly. Notice none of my scripts use tabs. This makes the script hard to read, but it has to be so.
Rule 3: Don't use spaces
Just like you can't use tabs, you can't use spaces, unless they are used to seperate words in comments, npc names, item names, or skill names. You may also use spaces in some of the control syntax, such as Call(), Jmp() or Label()
Rule 4: Conditions within conditions DON'T work

Something like this:

CharStatus(CHP,>=,1000)
{
Msg(Condition: Should Not Show 1)
CharStatus(CHP,>=,1000)
{
Msg(Condition: Should Not Show 2)
}
Msg(Condition: Should Not Show 3)
}
Will not work. The opening bracket { will seek the first closing bracket }. Code directly after the closing bracket will be executed. In this case, that would be the Msg(Condition: Should Not Show 3).
Note: Some of my older scripts (if not updated) use conditions within conditions. They should, however, work fine nevertheless. This is because the conditions are not necessary, but put in as a form of backup coding before I knew the information here. It is, in other words a backup feature that does not work :P
Control:
/
This is a comment. Its sole purpose is to mark sections code. Walker will ignore anything written after a comment, as long as it is on the same line. A comment could consist of a foreward slash /, several foreward slashes //////, or foreward slashes and any text beyond it ////[ East Guard ]////

Here are a few more examples:
Code
////[ How to use a comment 101 ]////
/This is a comment you can write anything here even this:
/Exit()
/the Exit() function above will do nothing at all.
/This is because there is a comment placed in front of it.

/This however will make your script exit:
Exit()/
/This is because the comment is placed after the code.

//////////You may use any number of foreward slashes
Delay()/<----[You may also use comments like this]
/if you do so, the the code before the comment will still work.
Call(Text)
Call() goes to a Label(), then upon the command Return() it returns back to where the Call() was placed. Take a look at this code for example:
CODE
Call(Test1)
Delay(1000)//1
Call(Test1)
Delay(1000)//2
Call(Test1)
Delay(1000)//3
Call(Test1)
Delay(1000)//4

EXIT()

Label(Test1)
Delay(2000)//Call1
Return()

The first Call(Test1) will jump to the Label(Test1), carry out the codes following it then return back to the first Call(Test1) once it hits Return().

It will then perform the Delay(1000)//1 function and continue to the second Call(Test1).

The second Call(Test1) will also jump to the Label(Test1) and perform the functions following but this time, upon the Return() code it will not return to the first Call(Test1) but to the second Call(Test1) and then perform the Delay(1000)//2 function.

This will continue to happen for each Call(Test1) and will return to that specific Call(Test1) upon the command Return()

If i had used Jmp() instead of Call(), the return would be ineffective, and the code would not return back to the Jmp() upon the Return() code. It would, rather, continue on with the scrip. In the case of the above script, it would end after the Delay(2000)//Call1 as there are no more effective codes following it.

I hope this explains it.

Try this script to see what i mean...then try replacing all the Call() code with Jmp() code and see what happens.

Delay(Milliseconds)
This will stop the script for the defined ammount of time. For example, Delay(2000) will stop the script for 2 seconds. 1000 milliseconds is 1 second.
Exit(Text)
This will terminate the script

GoHome(Text)
This function goes to town if you are dead. Does nothing if you are alive

Jmp(Text)
Refer to the Call() function found above

Label(Text)
Refer to the Call() function found above

Pause(Text)
This will pause the script indefinately. Press Continue on the script panel to continue to the script

Return()
Refer to the Call() function found above. The misconception about Return() is that it is used to restart the script, which it does not.

Say(Message)
This will display the message inside the brackets to the L2walker chat area. Other players CAN see the output of this script. If you were to write say(I am a bot!), you would be saying to other players "I am a bot!"
NPC Interaction:
Here is an example of NPC Commands:
CODE
LABEL(Wirphy)
NPCSEL(Wirphy)
DELAY(1000)
NPCDLG(Wirphy)
DELAY(1000)
DLGSEL(Quest)
DELAY(1000)
StrInDlg(Say you will help)
{
DLGSEL(Say you will help)
JMP(Wirphy)
}
StrNotInDlg(Say you will help)
{
DELAY(1000)
NPCDLG(Wirphy)
DELAY(1000)
DLGSEL(Go to another village)
DLGSEL(Go to another village)
DLGSEL(The Northeast Coast - 700 ??)
DELAY (30000)
}


DlgSel(Diologue)
Selects the defined dilogue in a diologue window

NPCDlg(NPCNAME[iD=#])
Enables diologue with the defined NPC

NPCSel(NPCNAME[iD=#])
Selects an NPC

StrInDlg(Diologue)
Looks for a certain string in the dilogue and if it exists performs functions withiin a mathematica brace { }. The brace MUST follow this statement for it to function correctly

StrNotInDlg(Diologue)
Looks for a certain strin in the dilogue and if it does not exists, the script will performs functions in a mathematica brace { }. a mathematica brace { } must follow the script.
BuyItem(ITEMNAME[iD=#],#;)
Buys Item. Must have the buy window open with the desired npc

BuySeed(SEEDNAME[iD=#],#;)
Buys seed. Must have the buy seed window open with the desired npc

LoadItem(ITEMNAME[iD=#],#;)
takes out the desired item from the warehouse. Withdraw window must be opened. Use semicolon ; to add other items. Here is an example:
CODE
LoadItem(Stem[iD=1864],50;Varnish[iD=1865],50)
This code will remove 50 stems and 50 varnish from the warehouse

SaveItem(ITEMNAME[iD=#],#;)
similar to the above, except that it will put items into the warehouse instead of take them out. Here is an example:
CODE
LABEL(Itemdeposit)
NPCSEL(Airy[iD=7522])
DELAY(1000)
NPCDLG(Airy[iD=7522])
DELAY(1000)
DLGSEL(Deposit Item (Private Warehouse))
DELAY(1000)
ITEMCOUNT(Stem[iD=1864],>,0)
{
SaveItem(Stem[iD=1864],9999)
CALL(Itemdeposit)
Delay(2000)
}
The first part of this script is not necessary. It selects the desired npc (in this case, Airy), and opens the "Deposit Item" window (see NPCs section below for more information). Similar to the above load item syntax, which removes 50 stems and 50 varnish, it will place 9999 stems (or all, if you don't have that many) into the warehouse.
SellItem(ITEMNAME[iD=#],#;)
Similar to the BuyItem(ITEMNAME [iD=#],#;) function. The buy window must be open with an NPC. This code will buy the desired items, provided that the NPC carries them and you have the required adena.

SellSeed(SEEDNAME[iD=#],#;)
Similar to the BuySeed() function, but it sells seeds instead

Character
I am not entirely familiar with the UseSkill syntax. When it comes to this section, I advise you use common sense.
UseSkill(NAME[iD=#],NPC,TARGETNAME)
This syntax is used to make your character cast a spell on an NPC target. The target name has to be specified.
UseSkill(NAME[iD=#],Party,TARGETNAME)
I am unfamiliar with the use of this syntax. If anyone knows, please email me.
UseSkill(NAME[iD=#],Pet,TARGETNAME)
UseSkill(NAME[iD=#],Player,TARGETNAME)
UseSkill(NAME[iD=#],Self,TARGETNAME)
ChangeWaitType(0|1)
Sets the character to either sit or stand. 0 = sit, 1 = stand.

UseItem(ITEMNAME [iD=#];)
Uses a desired item or items
Settings:
Set(DefPath,Add,x,y,z,radii)
This syntax adds a Path point to the Define PathPoint section (found on the Pathing tab) of l2walker.
Set(DefPath,Clear)
This syntax clears all path points
Set(DefRange,Add,x,y,z)
This syntax adds a point to the Define Range section of the Pathing tab in L2-Walker options.
Set(DefRange,CLEAR)
This syntax clears all Define Range positions
Set(FIGHTSTART)
This syntax enables fighting mode.
Set(FIGHTSTOP)
This syntax disables fighting mode
Set(Item,NoPick,NAME[iD=#])
This syntax sets a
Set(Item,Pick,NAME[iD=#])
Set(Item,Save,NAME[iD=#])
Set(L2Walker,Disable)
This syntax disables L2-Walker. Scripts still function when L2-Walker is disabled
Set(L2Walker,Enable)
This syntax enables L2-Walker. Scripts still function when L2-Walker is disabled
Set(Mon,Attack,NAME [iD=#])
This syntax sets the settings of a perticular monster (as defined by Name[iD=#]) to Attack. In other words, Walker will attack that perticular monster.
Set(Mon,AttackOne,NAME [iD=#])
This syntax sets the settings of a perticular monster (as defined by Name[iD=#]) to Attack alone. In other words, Walker will attack that perticular monster, but only if that monster is found to be by itself.
Set(Mon,NoAttack,NAME [iD=#])
This syntax sets the settings of a perticular monster (as defined by Name[iD=#]) to Not Attack. In other words, Walker will not attack that perticular monster, unless that monster initiates combat.
Set(RangeType,Defpath)
This syntax sets the perimiters of fighting to the Define Path Point mode.
Set(RangeType,DefPos,x,y,z,radii)
This syntax sets the perimiters of fighting to the Center of an x, y and z Point, with a radius as defined by the radii.
Set(RangeType,DefRange)
This syntax sets the perimiters of fighting to the Define Range mode.
Set(RangeType,RAnd)
This syntax sets the perimiters of fighting to the RAnd mode (what ever that does).
Set(RangeType,StartPos,radii)
This syntax sets the perimiters of fighting to the "Combat Begin Point is Center Point" mode with a radius as defined by radii.
Conditions:
CharStatus(CHP,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Must be followed by a mathematical brace { }. This script is to be followed by a mathematical brace { }. This code will calculate the character's current HP value, and if the conditons >=|> |==|!=|<|<= satisfy the number to the right #, the script within the a mathematical brace { } will be executed .
CharStatus(CMP,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first of the conditions series, but it calculates the MP value. If it satisfies the conditions it will perform the script within the a mathematical brace { }.
CharStatus(HP,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first of the conditions series, but it calculates the HP percenage. If it satisfies the conditions it will perform the script within the brackets { }.
CharStatus(LV,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first of the conditions series, but it calculates the HP percenage. If it satisfies the conditions it will perform the script within the a mathematical brace { }.
CharStatus(MP,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first of the conditions series, but it calculates the MP percenage. If it satisfies the conditions it will perform the script within the a mathematical brace { }.
CharStatus(RACE,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first of the conditions series, but it checks the character's race (by this, I assume they mean Class). If it satisfies the conditions it will perform the script within the a mathematical brace { }.
CharStatus(SP,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first code of the CharStatus() seires, but it calculates the SP value. If it satisfies the conditions it will perform the script within the a mathematical brace { }.
CharStatus(STAND,>=|>|==|!=|<|<=,0|1)
{
//code to be executed goes here
}
Similar to the first code of the CharStatus() sequence, but it checks wether or not the character is standing. 0 = sit, 1 = stand. If it satisfies the conditions it will perform the script within the a mathematical brace { }.
CharStatus(WEIGHT,>=|>|==|!=|<|<=,#)
{
//code to be executed goes here
}
Similar to the first code of the CharStatus() sequence, but it calculates the weight value of the character's inventory. If it satisfies the conditions it will perform the script within the a mathematical brace { }.
PosInRange(x,y,z,radii)
{
//code to be executed goes here
}
Must be followed by a mathematical brace { }. Checks wether or not the character is within the specified area (detirmened by the x, y and z axis as the epicenter of the location and the radius as the possible distance away from that location). If the character is found within this area, the code within the a mathematical brace { } is executed.
PosOutRange(x,y,z,radii)
{
//code to be executed goes here
}
Must be followed by a mathematical brace { }. Checks wether or not the character is within the specified area (detirmened by the x, y and z axis as the epicenter of the location and the radius as the possible distance away from that location). If the character is NOT found within this area, the code within the a mathematical brace { } is executed.
ItemCount(ITEMNAME[iD=#],>=|>|==|!=|<|<=,1)
{
//code to be executed goes here
}
This code is to be followedby a mathematical brace { }. Make sure both the open and close bracket is on a seperate line. This code Checks wether or not you have a certain ammount of items in your inventory (including what your character is equiped with) and if it satisfies the conditions it will perform the script within the a mathematical brace { }. Here is an example:
CODE
ITEMCOUNT(Wooden Arrow[iD=17],<=,20)
{
DELAY(1000)
Call(ToTown)
}
Operators:
{
//code to be executed goes here
}
Mathematical Brace . These are preceeded by a conditonal statement, such as a CharStatus() code. if the condition is satisfied, the code in the a mathematical brace will be executed. otherwise, it will be skipped. This is not to be used alone as a means of defining an object or a section of code. The opening and closing braces are to be each ALONE on a seperate line with no other characters or spaces preceeding and/or following it on that same line.
==
Equal to. Used in conditional statements
>
Greater Than. Used in conditional statements
>=
Greater Than or Equal To. Used in conditional statements
<
Less Than. Used in conditional statements
<=
Less Than, or Equal to. Used in conditional statements
!=
Not Equal to. Used in conditional statements
;
A semicolon seperates item names in many of the codes under the "Items" section. This lets you define more than one type of item to be stored, sold, bought, withdrawn in a single code. The example under the LoadItems() script, found above, shows how the semicolon would be used.

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

    • τι εκανες εκει παλι ρε τρελάρα; 🤣   welcome back mate, happy seeing you online again, well thats beyond l2 needs for sure and It’s rare to see anyone pushing Interlude this far technically anymore without trying to monetize it. definitely interested in seeing the source whenever you're ready to share it! keep it up!
    • your only choice brother cmon https://www.l2jsunrise.com/
    • Hello everyone  How are you all doing? I'd like to share with the community an open-source project I've been working on intensely: the **L2 Phantom AI Manager**. Tired of those static bots that just stand still in the city or sink into the map because of Geodata? Me too! That's why I developed a modular Phantom system with real Artificial Intelligence, initially designed for **L2J Mobius Essence (RoseVain)**, but which can be adapted to other chronicles. Main Features Modular architecture: the system is split into focused files such as PhantomAI, PhantomEngine, PhantomFactory, PhantomEquipment, PhantomHuntingSpots, PhantomGeo, PhantomMenu, and more. Automatic creation: create 10 or 50 phantoms from the menu or commands. XML persistence: automatically created phantoms are saved into PhantomPlayers.xml, so they keep loading after server restarts. Batch startup: .pstart and Start 10 load only 10 phantoms at a time. Batch disconnect: disconnect 10 active phantoms without shutting down the whole system. Origin towns: new phantoms spawn using PlayerTemplate.getCreationPoint(), respecting race and class. Geodata-safe spawning: spawn points use NPC-like coordinate validation to avoid under-map or floating characters. Real datapack spots: reads data/stats/npcs and data/spawns to build level-based hunting locations. Bad target filtering: ignores Training Dummy, tutorial objects, chests, and fake farm targets. Smart relocation: if a phantom cannot find useful mobs, it relocates to another spot for its level. Level goals: phantoms receive leveling goals, return to town, recover resources, and go back to farming. Mage MP rest mode: mages rest until MP is recovered; in PvP they try to escape when out of mana. Skills and buffs: phantoms try to use offensive skills and self buffs such as Might, Shield, Focus, Haste, Empower, Acumen, Wind Walk, Chant, Song, and Dance. Varied gear packs: gear packs by grade for mages and fighters, with multiple variants to avoid visual clones. Automatic shots: randomized Soulshot and Spiritshot restocking by class and grade. Inventory cleanup: unnecessary items are removed automatically while preserving Adena, shots, and equipped gear. PvP and PK behavior: some phantoms are aggressive, may become PK, and attacked phantoms try to defend themselves. Optional AI chat: optional Google Gemini integration for short social replies. TXT logs: the menu displays log state and can enable/disable logging. GM Menu Use .pmenu to open the control panel. Current options: Start 10 Disconnect 10 Create 10 Create 50 Reload XML Stop All Enable Log / Disable Log The menu also shows: active phantom count; XML ID count; current TXT log state. Commands .pmenu - opens the control panel. .pstart - starts 10 phantoms from XML. .pstop - removes all active phantoms. .pstop10 - disconnects 10 active phantoms. .pload - reloads PhantomPlayers.xml. .pcreate 10 - creates, starts, and saves 10 phantoms to XML. .pcreate 50 - creates, starts, and saves 50 phantoms to XML. .pm Name Message - sends a private message to a phantom. .pdebug - toggles TXT logging. Logs Logs are created in the GameServer log/ folder: log/PhantomManager.txt - global historical log. log/PhantomManager-yyyyMMdd-HHmmss.txt - separate log for each session. Useful logged events include: new level goals; travel to hunting spots; town rest; mob attacks; PvP defense; shot restocking; inventory cleanup; AI exceptions with stacktrace. Main Files PhantomManager.java - commands, logs, and bootstrap. PhantomEngine.java - start, stop, spawn, respawn, batches, and AI loop. PhantomAI.java - farm, PvP, PK, rest, targeting, and movement decisions. PhantomConfig.java - routes, gear, shots, and XML persistence. PhantomFactory.java - automatic character creation. PhantomEquipment.java - buffs, progression, shots, and inventory cleanup. PhantomHuntingSpots.java - real datapack NPC/spawn loader. PhantomGeo.java - geodata-safe coordinate handling. PhantomState.java - temporary phantom memory. PhantomMenu.java - GM HTML panel. PhantomBypass.java - menu button handling. PhantomChat.java - messages and optional Gemini integration. Copy custom/PhantomManager into: dist/game/data/scripts/custom/PhantomManager/ Place PhantomPlayers.xml in: game/config/Custom/PhantomPlayers.xml Compile scripts or restart the GameServer. Use .pmenu to create, start, and manage phantoms. https://github.com/miacodeweb/L2-Phantom-AI
    • EspadaWorld Reborn - Lineage 2 High Five Private Server Official Website: https://l2espadaworld.com   GitHub Presentation: https://github.com/worldespada-cloud/EspadaWorld   About EspadaWorld Reborn   EspadaWorld Reborn is a cinematic Lineage 2 High Five private server project built on a customized FandC / L2J-style High Five core. The project is focused on balanced gameplay, PvP competition, PvE progression, custom systems, vote rewards, rankings, protection integration, website features, and long-term stability. EspadaWorld is not a clean stock pack. The server has been extended with custom systems, website integration, vote reward logic, protection-related modules, custom instance content, gameplay improvements, and server-side adjustments. Server Foundation Chronicle: Lineage 2 High Five Base: FandC High Five core, heavily customized Core style: L2J-based server architecture Build system: Apache Ant Java target: Java 25 Database: MySQL Project type: Active development / production server environment Main Features - Custom Lineage 2 High Five server environment - FandC-based core with custom improvements - Custom Community Board systems - Player ranking systems - PvP-focused gameplay logic - PvE progression support - Custom Espada instance and custom gameplay content - Vote reward system with multiple vote website integrations - Unified .getreward command - Website, account, ranking, vote, media, and download integration - Protection module integration - Admin tools and server management systems - Datapack and server packaging scripts Vote Reward System EspadaWorld includes a custom vote reward flow based around the .getreward command. The system verifies votes from all enabled vote websites and gives one unified global reward only after all required votes are confirmed. Current vote integration includes: - iTopZ - HopZone - L2Network - L2JBrasil - L2TopZone - L2Votes Vote system features: - Unified reward after all votes are confirmed - Configurable global reward list - Item amount and chance configuration - Cooldown / reuse protection - HWID / IP-based reward protection - Debug logging for vote verification - Anti-abuse logic for repeated reward claims Protection & Security The project includes protection-related modules and integration points designed to improve server and client-side security. Protection-related areas include: - Runtime protection module integration - Client protection support - Server-side validation systems - Anti-abuse logic around vote rewards and account actions - Configuration-driven security behavior - Release packaging support for protected builds Private protection details, keys, internal configuration, and production security data are not public. Custom Gameplay Content EspadaWorld Reborn includes custom gameplay work designed to give the server its own identity while keeping the Lineage 2 High Five feeling. Examples of custom content and systems: - Custom Espada instance - PvP-oriented systems and zones - PvE progression systems - Ranking and competition systems - Community Board extensions - Custom HTML and datapack content - Gameplay scripts and server-side feature extensions - Vote reward progression Website & Community Platform EspadaWorld also includes a modern web platform connected to the server community. Website features include: - Modern responsive website - Account panel - Download section - Vote section - Ranking pages - Media section - News and information system - Admin-controlled website settings - Theme/template system - SEO optimization - Performance optimization The website has been optimized for speed, accessibility, best practices, and SEO, offering a clean public presentation for the server and community. Useful Links Website: https://l2espadaworld.com   GitHub Presentation: https://github.com/worldespada-cloud/EspadaWorld   EspadaWorld Reborn is a cinematic Lineage 2 High Five private server project built on a customized FandC-based core.     Preserving safety and trust within our community is our priority. Thank you for your understanding and support!   Best regards,VastoLordes. Contact Information :  support@l2espadaworld.com
    • Hi,im looking for "stable" mid rate high five l2j files source included,i prefer not clean files but something already used by another server in the past,if you have something intrested and not shared pm me.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..