-
Posts
539 -
Credits
0 -
Joined
-
Last visited
-
Days Won
7 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by wongerlt
-
Help Tradeable Augmented Items For Acis. Part 2
wongerlt replied to xBountyhunt3r's topic in [Request] Client Dev Help
no you can't change packet format. -
Help Tradeable Augmented Items For Acis. Part 2
wongerlt replied to xBountyhunt3r's topic in [Request] Client Dev Help
writeH() is short int (max 32767) -
Help Tradeable Augmented Items For Acis. Part 2
wongerlt replied to xBountyhunt3r's topic in [Request] Client Dev Help
TradeWnd.uc you need fill this var. with ur aug. data. RefineryOp1 RefineryOp2 -
Request Interlude Problem in compile server
wongerlt replied to piats04's question in Request Server Development Help [L2J]
<javac executable="C:/Program Files/Java/jdk-17.0.1/bin/javac" srcdir="${src}" classpathref="classpath" destdir="${build.bin}" compiler="modern" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="17" target="17" encoding="UTF-8" /> best way for me if u have different java versions on pc. just edit ur path. -
Try use simple while or try catch event on title change, just google it. `c++ window title change event`
-
http://prntscr.com/26puoez try open your compiled dll with cff explorer and check export table. https://drive.google.com/file/d/16aF3PkU738rtx-bia9O_rUATL6zwDFH8/view?usp=sharing this ex. For interlude
-
you can do with dll. example: main.cpp (its good or no idk, but its working fine.) #include "main.h" #include "Winuser.h" #include <process.h> void TitleReplaceHookThread(void *param) { DWORD pid = 0; DWORD current_pid = GetCurrentProcessId(); while(true) { Sleep(50); HWND hWnd = FindWindow(NULL, "Lineage II"); GetWindowThreadProcessId(hWnd,&pid); if(hWnd&¤t_pid==pid) { SetWindowText(hWnd, "My Server Name"); break; } } } extern "C" DLL_EXPORT BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) { case DLL_PROCESS_ATTACH: HANDLE hThread; hThread = (HANDLE)_beginthread(TitleReplaceHookThread, 0, NULL); CloseHandle(hThread); break; } return TRUE; } main.h #ifndef __MAIN_H__ #define __MAIN_H__ #include <windows.h> #ifdef BUILD_DLL #define DLL_EXPORT __declspec(dllexport) #else #define DLL_EXPORT __declspec(dllimport) #endif #endif compile and put ur dll file to ur l2 system folder. to compile you can use simple tool `CodeBlocks` and then use CFF Explorer 1. Open window.dll 2. Click Import Adder 3. Add dll file. 4. Select Exported function `DllMain@` and click Import by Name and then click Rebuild Import table. 5. save window.dll done.
-
Help Tradeable Augmented Items For Acis. Part 2
wongerlt replied to xBountyhunt3r's topic in [Request] Client Dev Help
little edit in interface.u and server side. http://prntscr.com/26o1gu5 just use unused variable to send aug. data to client and in interface.u set it as augment. -
Help Validate Location in Water? [Interlude]
wongerlt replied to wongerlt's question in Request Server Development Help [L2J]
Client it self change speed in water if character is in `running state`. Move speed difference is big (from 0 to 100+...) between client side/server side.. So for now temporary fix is just set character move state to `walk` in water. With it speed difference is only 0~5 max. Or maybe some one have better idea? -
Help Validate Location in Water? [Interlude]
wongerlt replied to wongerlt's question in Request Server Development Help [L2J]
really not small different after one minute of swimming http://prntscr.com/25qb8ex Just tested one thing, if i set char. to walk then while swimming char. uses running speed and when i set to run then char. uses walk speed for swimming. (in client side), weird thing -
Help Validate Location in Water? [Interlude]
wongerlt replied to wongerlt's question in Request Server Development Help [L2J]
Then how correct x,y without z in water? tell me -
Help Validate Location in Water? [Interlude]
wongerlt replied to wongerlt's question in Request Server Development Help [L2J]
I mean when i send ValidateLocation packet to client while character is under water changes only x,y and heading. Seems z coordinate didn't work under water. And if i send packet with z coordinate which are highter than water height then working fine. -
Help Validate Location in Water? [Interlude]
wongerlt posted a question in Request Server Development Help [L2J]
Hello, How validate location in water? Now when i send validatelocation packet with x/y/z/heading changes in client only x/y/heading. its interlude bug or what? -
Help [Interlude] Changing NPC Title color
wongerlt replied to Dreigons's question in Request Server Development Help [L2J]
Easy peasy i have one simple PHP script. <?php $acis = glob("acis/*xml"); // npc folder acis. $npcs = array(); function one($string,$one,$two){ $s = @explode($one,$string); $s = @explode($two,$s[1]); return @$s[0]; } if (is_array($acis)) { foreach($acis as $filename) { $file = file_get_contents($filename); $file = explode("<npc",$file); unset($file[0]); foreach ($file as &$value) { $value = "<npc".$value; $id = one($value,'id="','"'); $type = one($value,'name="type" val="','"'); $level = one($value,'name="level" val="','"'); $aggro = one($value,'aggro="','"'); $npcs[$id] = array("type"=>$type,"level"=>$level,'aggro'=>$aggro); } } } $file = file_get_contents("npcnames.txt"); $file = explode("\r\n",$file); $client = array(); foreach($file as $npc) { $ex = explode(" ",$npc); $client[$ex[0]] = $ex; } // 0 - id // 1 - name // 2 - title // 3 - r // 4 - g // 5 - b // 6 - reserved foreach($npcs as $id => &$npc){ if($npc['type'] == "Monster"){ $client[$id][2] = $npc['level']." Level"; if($npc['aggro']>0){ $client[$id][3] = "FF"; $client[$id][4] = "FF"; $client[$id][5] = "FF"; } } } // print npcnames.... CTRL+U in browser. foreach($client as &$val){ echo implode(" ",$val)."\r\n"; } ?> you can adapt for any pack. -
Help Help, I need help with the raid bosses.
wongerlt replied to Kusaty's question in Request Server Development Help [L2J]
Delete from `droplist` where `mob_id` IN(select `mob_id` from `raidboss_table` where 1) Just change names.. -
Help Help with Autovote reward L2JFROZEN REV 1056
wongerlt replied to reths's question in Request Server Development Help [L2J]
Any info about ur Big problem? I can fix it for u but it will cost for u. -
you can try edit it with Resource Hacker just open window.dll from system folder and change Icon image.
-
If its acis then u need geodata.
-
Help Bug when attacking too many monsters
wongerlt replied to dextroy's question in Request Server Development Help [L2J]
in this place about 2k mobs, ofc with Provoke skill i cant take all mobs. But anyway not big lag, not like in dextroy video. -
Help Bug when attacking too many monsters
wongerlt replied to dextroy's question in Request Server Development Help [L2J]
what u think, acis not have bugs and other s...? -
Help Bug when attacking too many monsters
wongerlt replied to dextroy's question in Request Server Development Help [L2J]
but still something is wrong in ur server side. MMO_MAX_SEND_PER_PASS = 12, must work without lag with only 10+ mobs. https://mega.nz/file/Gc13lC6T#2aZj_JYa-zyvjvRD07uCpED0fQ_ZGZvXmL6sD1ao2n4 1. run L2Phx as admin 2. run l2.exe 3. login to server. 4. and u will see in l2 phx all packets client/server. -
Help Bug when attacking too many monsters
wongerlt replied to dextroy's question in Request Server Development Help [L2J]
im using frozen older rev. and there no problem like this. Tried with more than 2k mobs in one place everything work fine. Try write to chat something when monster hp bar freezes and if message late that mean ur pc instance busy with something else, i think, maybe one of ur mod. or something like that and its happens with all mobs? tried other not dinosaurs? -
Discussion L2TOPZONE THE WORST SITE EVER
wongerlt replied to reths's topic in General Discussion [English]
They dont care anything until you pay to them. Just avoid them. -
Code Autofarm server bot like L2Warland
wongerlt replied to Elfo's topic in Server Shares & Files [L2J]
yeah... and i tried to understand what a point to select mob which have lowest distance between other mob but not player.. totally nonsense -
Code Autofarm server bot like L2Warland
wongerlt replied to Elfo's topic in Server Shares & Files [L2J]
how this nonsense must work? var closestTarget = targets.stream().min((o1, o2) -> (int) MathUtil.calculateDistance(o1, o2, false)).get();