Jump to content

Recommended Posts

Posted

Follows UEngine::Exec decompiled function from Engine.dll i posted here all available builder's client commands. Maybe it will useful for someone.

 

  • ///flush
  • ///stat [anim|default|reset|fps|render|hardware|game|histograph|xboxmem|matinee|audio|net|packetcount|expacketcount|all|none|console|l2|mem|thread|script|scriptr]
  • ///crackurl
  • ///packetcountstart
  • ///packetcountstop
  • ///expacketcountstart
  • ///expacketcountstop
  • ///reload
  • ///replaysave [start|end]
  • ///replayload [replay name, e.g. Rep00000]
  • ///buildlevel
  • ///releaselevel
  • ///fakeitem

 

Raw (C language) function for the most curious:

int __userpurge UEngine::Exec@<eax>(UEngine *this@<ecx>, double a2@<st0>, const wchar_t *a3, struct FOutputDevice *a4)
{
  UEngine *v4; // esi
  struct FOutputDevice *v5; // edi
  int v6; // ecx
  int v7; // eax
  int v8; // ecx
  int result; // eax
  BOOL v10; // eax
  int v11; // ecx
  _DWORD *v12; // esi
  _DWORD *v13; // eax
  int v14; // eax
  int v15; // eax
  int i; // ebx
  int v17; // eax
  int v18; // eax
  void *v19; // eax
  int v20; // eax
  int v21; // ecx
  int v22; // ecx
  int v23; // ecx
  int v24; // ecx
  int v25; // esi
  int v26; // eax
  int *v27; // esi
  int v28; // edx
  FL2ReplayManager *v29; // ecx
  int v30; // eax
  int v31; // eax
  int v32; // [esp-Ch] [ebp-A8h]
  int v33; // [esp-8h] [ebp-A4h]
  int *v34; // [esp-4h] [ebp-A0h]
  int v35; // [esp+0h] [ebp-9Ch]
  int v36; // [esp+Ch] [ebp-90h]
  int v37; // [esp+18h] [ebp-84h]
  int v38; // [esp+24h] [ebp-78h]
  int v39; // [esp+28h] [ebp-74h]
  int v40; // [esp+34h] [ebp-68h]
  int v41; // [esp+38h] [ebp-64h]
  int v42; // [esp+40h] [ebp-5Ch]
  int v43; // [esp+4Ch] [ebp-50h]
  int v44; // [esp+50h] [ebp-4Ch]
  char v45; // [esp+68h] [ebp-34h]
  int v46; // [esp+74h] [ebp-28h]
  char v47; // [esp+78h] [ebp-24h]
  int v48; // [esp+7Ch] [ebp-20h]
  int v49; // [esp+88h] [ebp-14h]
  int *v50; // [esp+8Ch] [ebp-10h]
  int v51; // [esp+98h] [ebp-4h]

  v50 = &v35;
  v4 = this;
  v51 = 0;
  v5 = a4;
  if ( *(_DWORD *)GSys
    && (**(int (__stdcall ***)(const wchar_t *, struct FOutputDevice *))(*(_DWORD *)GSys + 52))(a3, a4) )
  {
    return 1;
  }
  if ( UObject::StaticExec(a3, v5)
    || FMemCache::Exec(&GCache, a3, v5)
    || *(_DWORD *)GExec && (***(int (__stdcall ****)(const wchar_t *, struct FOutputDevice *))GExec)(a3, v5) )
  {
    return 1;
  }
  v6 = *((_DWORD *)v4 + 9);
  if ( v6 )
  {
    if ( (*(int (__stdcall **)(const wchar_t *, struct FOutputDevice *))(*(_DWORD *)v6 + 136))(a3, v5) )
      return 1;
  }
  v7 = *((_DWORD *)v4 + 10);
  if ( v7 )
  {
    if ( (**(int (__stdcall ***)(const wchar_t *, struct FOutputDevice *))(v7 + 52))(a3, v5) )
      return 1;
  }
  if ( dword_2077ED44 && sub_20414540((int)a3) )
    return 1;
  v8 = *((_DWORD *)v4 + 15);
  if ( v8 )
  {
    if ( (*(int (__stdcall **)(const wchar_t *))(*(_DWORD *)v8 + 1588))(a3) )
      return 1;
  }
  if ( ParseCommand(&a3, L"FLUSH") )
  {
    (*(void (__stdcall **)(signed int))(*((_DWORD *)v4 - 13) + 120))(1);
    FOutputDevice::Log(v5, L"Flushed engine caches");
    return 1;
  }
  if ( ParseCommand(&a3, L"STAT") )
  {
    if ( ParseCommand(&a3, L"ANIM") )
    {
      *((_DWORD *)v4 + 24) = *((_DWORD *)v4 + 24) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"DEFAULT") || ParseCommand(&a3, L"RESET") )
    {
      *((_DWORD *)v4 + 24) = 0;
      *((_DWORD *)v4 + 20) = 0;
      *((_DWORD *)v4 + 21) = 0;
      *((_DWORD *)v4 + 27) = 0;
      *((_DWORD *)v4 + 22) = 0;
      *((_DWORD *)v4 + 28) = 0;
      *((_DWORD *)v4 + 23) = 0;
      *((_DWORD *)v4 + 25) = 0;
      *((_DWORD *)v4 + 30) = 0;
      *((_DWORD *)v4 + 31) = 0;
      *((_DWORD *)v4 + 32) = 0;
      *((_DWORD *)v4 + 33) = 0;
      *((_DWORD *)v4 + 34) = 0;
      *((_DWORD *)v4 + 35) = 0;
      *((_DWORD *)v4 + 36) = 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"FPS") )
    {
      *((_DWORD *)v4 + 19) = *((_DWORD *)v4 + 19) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"RENDER") )
    {
      *((_DWORD *)v4 + 20) = *((_DWORD *)v4 + 20) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"HARDWARE") )
    {
      *((_DWORD *)v4 + 21) = *((_DWORD *)v4 + 21) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"GAME") )
    {
      *((_DWORD *)v4 + 22) = *((_DWORD *)v4 + 22) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"HISTOGRAPH") )
    {
      *((_DWORD *)v4 + 25) = *((_DWORD *)v4 + 25) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"XBOXMEM") )
    {
      *((_DWORD *)v4 + 26) = *((_DWORD *)v4 + 26) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"MATINEE") )
    {
      *((_DWORD *)v4 + 27) = *((_DWORD *)v4 + 27) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"AUDIO") )
    {
      *((_DWORD *)v4 + 28) = *((_DWORD *)v4 + 28) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"NET") )
    {
      *((_DWORD *)v4 + 23) = *((_DWORD *)v4 + 23) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"PACKETCOUNT") )
    {
      *((_DWORD *)v4 + 32) = *((_DWORD *)v4 + 32) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"EXPACKETCOUNT") )
    {
      *((_DWORD *)v4 + 33) = *((_DWORD *)v4 + 33) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"ALL") )
    {
      result = 1;
      *((_DWORD *)v4 + 19) = 1;
      *((_DWORD *)v4 + 20) = 1;
      *((_DWORD *)v4 + 21) = 1;
      *((_DWORD *)v4 + 27) = 1;
      *((_DWORD *)v4 + 22) = 1;
      *((_DWORD *)v4 + 28) = 1;
      *((_DWORD *)v4 + 23) = 1;
      *((_DWORD *)v4 + 30) = 1;
      *((_DWORD *)v4 + 31) = 1;
      *((_DWORD *)v4 + 34) = 1;
      *((_DWORD *)v4 + 35) = 1;
      return result;
    }
    if ( ParseCommand(&a3, L"NONE") )
    {
      v10 = 0;
      *((_DWORD *)v4 + 24) = 0;
      *((_DWORD *)v4 + 19) = 0;
      *((_DWORD *)v4 + 20) = 0;
      *((_DWORD *)v4 + 21) = 0;
      *((_DWORD *)v4 + 27) = 0;
      *((_DWORD *)v4 + 22) = 0;
      *((_DWORD *)v4 + 28) = 0;
      *((_DWORD *)v4 + 23) = 0;
      *((_DWORD *)v4 + 30) = 0;
      *((_DWORD *)v4 + 31) = 0;
      *((_DWORD *)v4 + 32) = 0;
      *((_DWORD *)v4 + 33) = 0;
      *((_DWORD *)v4 + 34) = 0;
LABEL_48:
      *((_DWORD *)v4 + 35) = v10;
      return 1;
    }
    if ( ParseCommand(&a3, L"CONSOLE") )
    {
      *((_DWORD *)v4 + 49) = *((_DWORD *)v4 + 49) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"L2") )
    {
      *((_DWORD *)v4 + 30) = *((_DWORD *)v4 + 30) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"MEM") )
    {
      *((_DWORD *)v4 + 31) = *((_DWORD *)v4 + 31) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"Thread") )
    {
      *((_DWORD *)v4 + 34) = *((_DWORD *)v4 + 34) == 0;
      return 1;
    }
    if ( ParseCommand(&a3, L"Script") )
    {
      v10 = *((_DWORD *)v4 + 35) == 0;
      goto LABEL_48;
    }
    if ( ParseCommand(&a3, L"ScriptR") )
    {
      sub_200DE330(&v45);
      LOBYTE(v51) = 1;
      sub_200DE3C0(v11, (int *)&v47);
      v12 = UObject::GObjObjects;
      while ( v48 < v12[1] )
      {
        v13 = *(_DWORD **)(*v12 + 4 * v48);
        if ( v13 )
        {
          v13[40] = 0;
          v13[41] = 0;
          v13[42] = 0;
          v13[43] = 0;
          v12 = UObject::GObjObjects;
        }
        sub_20005C90(0, (int *)&v47);
      }
      LOBYTE(v51) = 0;
      sub_200DE370((int)&v45);
      return 1;
    }
  }
  else
  {
    if ( ParseCommand(&a3, L"CRACKURL") )
    {
      FURL::FURL((FURL *)&v36, 0, (int)a3, 0);
      LOBYTE(v51) = 2;
      if ( v43 )
      {
        v14 = FString::operator*(&v36);
        FOutputDevice::Logf(v5, (const char *)L"     Protocol: %s", v14);
        v15 = FString::operator*(&v37);
        FOutputDevice::Logf(v5, (const char *)L"         Host: %s", v15);
        FOutputDevice::Logf(v5, (const char *)L"         Port: %i", v38);
        v34 = (int *)FString::operator*(&v39);
        FOutputDevice::Logf(v5, (const char *)L"          Map: %s", v34);
        FOutputDevice::Logf(v5, (const char *)L"   NumOptions: %i", v41);
        for ( i = 0; ; ++i )
        {
          v49 = i;
          if ( i >= v41 )
            break;
          v17 = FString::operator*(v40 + 12 * i);
          FOutputDevice::Logf(v5, (const char *)L"     Option %i: %s", i, v17);
        }
        v18 = FString::operator*(&v42);
        FOutputDevice::Logf(v5, (const char *)L"       Portal: %s", v18);
        v19 = FURL::String(&v36, &v45, 0);
        LOBYTE(v51) = 3;
        v20 = FString::operator*(v19);
        FOutputDevice::Logf(v5, (const char *)L"       String: '%s'", v20);
        LOBYTE(v51) = 2;
        FString::~FString(&v45);
        LOBYTE(v51) = 0;
        FURL::~FURL((FURL *)&v36);
      }
      else
      {
        FOutputDevice::Logf(v5, L"BAD URL");
        LOBYTE(v51) = 0;
        FURL::~FURL((FURL *)&v36);
      }
      return 1;
    }
    if ( ParseCommand(&a3, L"PACKETCOUNTSTART") )
    {
      v21 = *((_DWORD *)v4 + 13);
      if ( v21 )
      {
        (*(void (**)(void))(*(_DWORD *)v21 + 116))();
        *((_DWORD *)v4 + 32) = 1;
      }
      return 1;
    }
    if ( ParseCommand(&a3, L"PACKETCOUNTSTOP") )
    {
      v22 = *((_DWORD *)v4 + 13);
      if ( v22 )
      {
        (*(void (**)(void))(*(_DWORD *)v22 + 120))();
        *((_DWORD *)v4 + 32) = 0;
      }
      return 1;
    }
    if ( ParseCommand(&a3, L"EXPACKETCOUNTSTART") )
    {
      v23 = *((_DWORD *)v4 + 13);
      if ( v23 )
      {
        (*(void (**)(void))(*(_DWORD *)v23 + 124))();
        *((_DWORD *)v4 + 33) = 1;
      }
      return 1;
    }
    if ( ParseCommand(&a3, L"EXPACKETCOUNTSTOP") )
    {
      v24 = *((_DWORD *)v4 + 13);
      if ( v24 )
      {
        (*(void (**)(void))(*(_DWORD *)v24 + 128))();
        *((_DWORD *)v4 + 33) = 0;
      }
      return 1;
    }
    if ( ParseCommand(&a3, L"RELOAD") )
    {
      v25 = *((_DWORD *)v4 + 13);
      if ( v25 )
        (*(void (__thiscall **)(int))(*(_DWORD *)v25 + 1180))(v25);
      return 1;
    }
    if ( ParseCommand(&a3, L"REPLAYSAVE") )
    {
      if ( *((_DWORD *)v4 + 13) && *((_DWORD *)v4 + 92) )
      {
        if ( ParseCommand(&a3, L"START") )
        {
          if ( !*(_DWORD *)(*((_DWORD *)v4 + 92) + 23904) )
          {
            FString::FString(&v46);
            LOBYTE(v51) = 4;
            v26 = ParseToken(&v45, &a3, 0);
            LOBYTE(v51) = 5;
            FString::operator=(&v46, v26);
            LOBYTE(v51) = 4;
            FString::~FString(&v45);
            *(_DWORD *)(*((_DWORD *)v4 + 92) + 24020) = 0;
            a4 = (struct FOutputDevice *)&v32;
            FString::FString(&v32, &v46);
            LOBYTE(v51) = 4;
            FL2ReplayManager::PrepareSave(*((_DWORD **)v4 + 92), v32, v33, (int)v34);
            L2ParamStack::L2ParamStack(&v44, 10);
            LOBYTE(v51) = 7;
            L2ParamStack::PushBack(&v44, L"reload", (signed int)L"reload" >> 31);
            v27 = (int *)*((_DWORD *)v4 + 13);
            v28 = *v27;
            v34 = &v44;
            (*(void (__thiscall **)(int *, int *))(v28 + 688))(v27, &v44);
            LOBYTE(v51) = 4;
            L2ParamStack::~L2ParamStack(&v44);
            LOBYTE(v51) = 0;
            FString::~FString(&v46);
            return 1;
          }
        }
        else if ( ParseCommand(&a3, L"END") )
        {
          v29 = (FL2ReplayManager *)*((_DWORD *)v4 + 92);
          if ( *((_DWORD *)v29 + 5976) == 2 )
          {
            FL2ReplayManager::Save(v29, (int)ParseCommand, a2);
            FL2ReplayManager::Clear(*((FL2ReplayManager **)v4 + 92), -1);
            result = 1;
            *(_DWORD *)(*((_DWORD *)v4 + 92) + 24020) = 1;
            return result;
          }
        }
      }
    }
    else if ( ParseCommand(&a3, L"REPLAYLOAD") )
    {
      if ( *((_DWORD *)v4 + 13) )
      {
        v30 = *((_DWORD *)v4 + 92);
        if ( v30 )
        {
          if ( !*(_DWORD *)(v30 + 23904) )
          {
            FString::FString(&v46);
            LOBYTE(v51) = 8;
            v31 = ParseToken(&v45, &a3, 0);
            LOBYTE(v51) = 9;
            FString::operator=(&v46, v31);
            LOBYTE(v51) = 8;
            FString::~FString(&v45);
            if ( FL2ReplayManager::SetSceneName(*((FL2ReplayManager **)v4 + 92), (const struct FString *)&v46) )
            {
              FL2ReplayManager::SetState(*((FL2ReplayManager **)v4 + 92), 3);
              LOBYTE(v51) = 0;
              FString::~FString(&v46);
              return 1;
            }
            LOBYTE(v51) = 0;
            FString::~FString(&v46);
          }
        }
      }
    }
    else
    {
      if ( ParseCommand(&a3, L"BuildLevel") || ParseCommand(&a3, L"ReleaseLevel") )
      {
        v34 = (int *)9;
        debugf(L"L2 Release Level = %d");
        return 1;
      }
      if ( ParseCommand(&a3, L"FAKEITEM") )
      {
        *(_DWORD *)GL2CheckFakeItem = *(_DWORD *)GL2CheckFakeItem == 0;
        return 1;
      }
    }
  }
  return 0;
}

 

This is the small list of client commands. The full list you can find inside UInput::Exec function.

 

https://pastebin.com/Uu1ayPW3

 

P.S. Some funny commands:

  • ///bighead - enable big head for self;
  • ///firecracker - make a firework for target;
  • ///observer [on|off] - show hide the player texture and names.

 

 

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

    • UPDATE M63 Introduced the first major Party Logic system: Bots can join and operate under a real-player party leader. Party members: follow the real player, assist the leader in combat, coordinate around the party leader, support party combat instead of behaving purely as independent farmers. Added initial party formation/follow behavior. Added party-aware PvP assisting.   Expanded Party Support / Party Combat behavior: Improved party coordination across different bot classes. Added broader healer/support participation. Expanded combat equipment/ammunition support, including all six arrow grades. Party members became more coordinated in PvP and group combat. Added improved bot reaction to resurrection situations. Added compatible resurrection-answer handling. Refined party formation behavior. Party combat became more persistent when members were attacked. Party members maintain combat participation more reliably instead of immediately dropping engagement.     Major Party Logic expansion:   Changed party travel formation Added temporary main assister leadership: if the real-player leader dies, a random living damage dealer becomes combat leader, other bots assist that damage dealer, if the assister dies, another DD can take over. Added special Bishop/Cardinal real-player leader logic: bots continue following the real player, a damage-dealer bot becomes the party’s combat assister. Added 5-second idle Party Logic: if the real-player leader stops moving/actively controlling combat for 5 seconds, bots can resume autonomous farming around the leader. Temporary main assisters use the bot’s already configured PvP mode instead of a separate Party Logic PvP system. Existing modes remain authoritative: Idle AttackFlagged AttackEveryone Temporary main assister can independently acquire PvP targets according to its configured mode. Other party bots assist that selected combat leader. Made Party Logic target acquisition party-location aware. While operating in a party, autonomous PvE/PvP searches can be centered around the real player’s current location rather than only the bot’s original farming position. Existing bot farmRadius remains the effective acquisition radius. This allows parties to travel away from their original farming areas while continuing to operate dynamically.     Expanded Bishop/Cardinal Party Logic behavior:   Bishop/Cardinal parties now use the same 5-second activity/idle model as normal real-player-led parties. While the Bishop/Cardinal leader is moving or active: bots prioritize staying with the real player, maintain the ~70–100 unit random formation. After the Bishop/Cardinal remains idle for 5 seconds: party bots may return to autonomous farming around the leader. When the Bishop/Cardinal starts moving again: party members transition back to following the leader. PvP remains independent of the PvE idle condition: valid PvP targets can still trigger combat according to each bot’s configured PvP mode.     Optional Hero System: Added a new hero_enabled option for Autobots. Bot creation gained Hero appearance: No / Yes. Existing bots default to hero_enabled = 0. Bots with hero_enabled = 1 spawn with native Lucera Hero status/aura/appearance through Player.setHero(true). Hero weapons configured through the existing Autobots item system can be equipped normally. This is intentionally visual/status Hero only: no Hero skill injection, no automatic native Hero skills, no changes to combat AI or targeting. Hero state can also be changed directly in the database and takes effect after respawning the bot.     DOWNLOAD
    • Throw a free cloudflare SSL cert in there. 😄
    • Nextarget was a LT international clan in Dawn and  Evoke and other servers, playing most in Interlude, so dunno if you try use this name to atrack the players or smth.
    • Server Specs ChapterInterlude Classic EXP / SP Ratex50 Adena Ratex30 Drop Ratex20 Spoil Ratex15 Max Level78 Website https://l2nextarget.com/ Start On Today At 22:00
    • Since last forums fail, I decided to introduce a little website over PTS server holder - just to make basic informations more reachable. You can discover it over http://anothercrappyinterludeserver.com/   Discord channels ACCESS TO SOURCES and SERVER INSTALLATION were also reworked to be easier to handle.
  • 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..