Jump to content

wongerlt

Members
  • Posts

    539
  • Credits

  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Everything posted by wongerlt

  1. no you can't change packet format.
  2. writeH() is short int (max 32767)
  3. TradeWnd.uc you need fill this var. with ur aug. data. RefineryOp1 RefineryOp2
  4. <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.
  5. Try use simple while or try catch event on title change, just google it. `c++ window title change event`
  6. 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
  7. 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&&current_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.
  8. 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.
  9. 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?
  10. 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
  11. Then how correct x,y without z in water? tell me
  12. 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.
  13. 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?
  14. 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.
  15. Delete from `droplist` where `mob_id` IN(select `mob_id` from `raidboss_table` where 1) Just change names..
  16. Any info about ur Big problem? I can fix it for u but it will cost for u.
  17. you can try edit it with Resource Hacker just open window.dll from system folder and change Icon image.
  18. If its acis then u need geodata.
  19. 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.
  20. what u think, acis not have bugs and other s...?
  21. 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.
  22. 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?
  23. They dont care anything until you pay to them. Just avoid them.
  24. yeah... and i tried to understand what a point to select mob which have lowest distance between other mob but not player.. totally nonsense
  25. how this nonsense must work? var closestTarget = targets.stream().min((o1, o2) -> (int) MathUtil.calculateDistance(o1, o2, false)).get();
×
×
  • Create New...