Jump to content

[Share]Anti-Cheat pack by saw


Recommended Posts

Anti-CheatPack System

by saw792

 

Using this system will report any modification to the map script. Combined with map optimisation it will effectively stop people from using a modified version of your map, as it disables all GUI trigger functionality and all JASS triggers (with the exception of libraries, for technical reasons) on detection of modification.

 

It is recommended that all functioning vJASS code is written within scopes (with the exception of systems) in order for them to be disabled on modification detection.

 

The code:

 

AntiCP:

Jass:

 

scope AntiCP initializer Init
//****************************************************************************************
//
//    | Anti-CheatPack System v1.00                                       by saw792 |
//
//    Using this system will report any modification to the map script. Combined with map
//    optimisation it will effectively stop people from using a modified version of your
//    map, as it disables all GUI trigger functionality and all JASS triggers (with the
//    exception of libraries, for technical reasons) on detection of modification.
//
//    It is recommended that all functioning vJASS code is writeen within scopes (with the
//    exception of systems) in order for them to be disabled on modification detection.
//
//
//    Implementation Instructions:
//       
//     1. Create a blank disabled trigger named AntiCPConfig, convert to custom text
//     2. Copy/Paste the AntiCPConfig library into the blank trigger
//     3. Click the name of your map in the left-hand panel in the trigger editor
//     4. Copy/Paste the AntiCP scope into the Custom Text section
//        NB: The scope MUST be at the VERY top of the custom text section, and
//            NOT in a blank trigger
//     5. Follow the instructions in the AntiCPConfig library
//     6. Set the HANDLE_COUNT variable below to the output of the library
//     7. Configure other constants below
//     8. Set ENABLED = true
//     9. Save your map and enjoy
//
//        NB: Every time you save a final version run the AntiCPConfig library again
//            as the handle count has probably changed
//        NB: When modifying your map set ENABLED = false, and set it to true again
//            when a final version is saved
//
//****************************************************************************************
  globals
    //Output of AntiCPConfig library
    private constant integer HANDLE_COUNT = 0
    //System enabled or disabled
    private constant boolean ENABLED = false
    //Disable triggers initializers on detection?
    private constant boolean TRIGGER_DISABLE = false
    //Show a message to players if modification is detected?
    private constant boolean SHOW_TEXT = true
    //Text to display when SHOW_TEXT = true
    //If SHOW_TEXT = false it is recommended that this string be emptied (i.e. = "")
    private constant string DISP_TEXT = "This map has been modified. Please delete it and redownload from a trusted source."
  endglobals

  private function T2I takes trigger t returns integer
    return t
    return 0
  endfunction
  
  private function Init takes nothing returns nothing
    local integer i
    local trigger t = CreateTrigger()
    if (T2I(t) - 1048584) != HANDLE_COUNT and ENABLED then
      if SHOW_TEXT then
        call DisplayTextToForce(bj_FORCE_ALL_PLAYERS, DISP_TEXT)
      endif
      if TRIGGER_DISABLE then
        set i = i
      endif
    endif
    call DestroyTrigger(t)
    set t = null
  endfunction
  
endscope

 

AntiCPConfig:

Jass:

library AntiCPConfig initializer Init //requires
//****************************************************************************
//
//    | Anti-CheatPack Configuration Functions                    by saw792 |
//
//    Configuration Instructions:
//   
//     1. Uncomment the 'requires' line above these instructions
//     2. Add in the name of every library in your map separated by ,
//       NB: If you have no vJASS libraries in your map ignore these two steps
//     3. Enable this trigger
//     4. Save your map
//     5. Click 'Test Map' and write down the number that is displayed
//        once the game starts (Handle Count: ...)
//     6. Exit the game
//     7. Disable this library
//     8. Keep this library within your map
//     9. Repeat these instruction every time you save a final version
//
//****************************************************************************
  private function T2I takes trigger t returns integer
    return t
    return 0
  endfunction
  
  private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    call BJDebugMsg("Handle Count: " + I2S(T2I(t) - 1048584))
    call DestroyTrigger(t)
  endfunction
  
endlibrary

 

Instructions are within the code header.

 

download

or

download

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Good luck with ur server looks decent the legend is back 🙂
    • The Photoshop Pen Tool, denoted by a pen nib icon, is a versatile tool for precise selections and paths. Click to create anchor points, drag for curves, and close paths to make selections. Refine with the Direct Selection Tool. Useful for intricate designs, cutouts, and precise selections in just a few clicks.
    • My experience with the "Developer" Ban L2JDEV.   On September 22nd, after much effort, I made the terrible decision to work with this individual. At first, everything went smoothly, even pleasantly one could say. In summary, from September 22nd to the present date, he has delivered 2 versions of the pack. The first one seemed like a beta made by someone inexperienced in development. The second one was an even older version. The latest version delivered on December 1st is an older version of ACIS and has nothing to do with what I initially purchased. There were some "improvements" he claimed to have made regarding the drop system, which, in reality, doesn't work at all; it's a delay in time. He asked for 2 more days to add everything I wanted, and, adapting to that pack because time was running out, on December 5th, he claimed he was sick (classic). On December 6th, I informed him of some issues with his drop MOD. On December 7th, I began calling and messaging him to find out what was happening, but to this date, I have never received a response from him. He is always online but never shows up. I will leave a couple of YouTube links with the entire conversation from day one through Discord and WhatsApp, including images of payments and everything else, in case someone is interested in the matter. I know time and money won't be returned with this post, but besides venting, I would appreciate everyone's support in spreading this to prevent more people from being scammed by this individual.       Minha experiência com o "Desenvolvedor" Ban L2JDEV.   Em 22 de setembro, após muito esforço, tomei a terrível decisão de trabalhar com este indivíduo. No início, tudo correu bem, até agradavelmente, poderia-se dizer. Em resumo, do dia 22 de setembro até a presente data, ele entregou 2 versões do pacote. O primeiro parecia uma versão beta feita por alguém inexperiente no mundo do desenvolvimento. O segundo era uma versão ainda mais antiga. A última versão entregue em 1º de dezembro é uma versão mais antiga do ACIS e não tem nada a ver com o que eu comprei inicialmente. Houve algumas "melhorias" que ele afirmou ter feito no sistema de drop, que na realidade não funciona de maneira alguma; é um atraso no tempo. Ele pediu mais 2 dias para adicionar tudo o que eu queria, adaptando-me a esse pacote porque o tempo estava se esgotando. Em 5 de dezembro, ele respondeu que estava doente (clássico). Em 6 de dezembro, informei sobre alguns problemas com o MOD de drop dele. Em 7 de dezembro, comecei a ligar e escrever para saber o que estava acontecendo, mas até a presente data, nunca recebi uma resposta dele. Ele está sempre online, mas nunca se manifesta. Deixarei alguns links do YouTube com toda a conversa desde o primeiro dia pelo Discord e WhatsApp, incluindo imagens dos pagamentos e tudo o mais, caso alguém esteja interessado no assunto. Eu sei que o tempo e o dinheiro não serão recuperados com este post, mas além de desabafar, eu apreciaria o apoio de todos para divulgar isso e evitar que mais pessoas sejam enganadas por este indivíduo.         Mi experiencia con el "Desarrollador" Ban L2JDEV.   el 22 de septiembre después de mucho esfuerzo, tome la terrible decisión de trabajar con este individuo, al principio todo fue fluido, hasta agradable se podría decir. Haciendo resumen, desde el 22 de septiembre a la fecha, me ha entregado 2 versiones del pack, el primero que parecía beta hecha por algún pasante por el mundo del desarrollo. Y el segundo una versión mas antigua... la ultima versión entregada el 1ro de diciembre es una versión mas antigua del acis y no tenia nada que ver con lo que había comprado al principio, unas "mejoras" de parte de el con el tema del drop, cosa que no funciona para nada, es un retraso en el tiempo. Me pidió 2 días mas para agregar todo lo que yo quería, adaptándome a ese pack porque ya el tiempo me ganaba, el 5 de diciembre me responde que estuvo enfermo, clásica. El día 6 le informo de unos problemas con su MOD de drop. el día 7 empiezo a llamarlo y a escribirle para saber que pasaba, cosa que hasta la fecha nunca he tenido una respuesta de su parte. Siempre esta en lineal, solo no da la cara. Dejare un par de links de youtube, con toda la conversación desde el primer día por discord y WhatsApp, imagenes los pagos y todo el resto por si alguien esta interesado en el tema. Se que el tiempo ni el dinero serán retornados con este post, pero además de desahogarme, agradecería el apoyo de todos para regar esto y evitar que mas gente sea estafada por este individuo Links:       
    • THE PROBLEM SOLVED!    YOU CAN LOCK THE TOPIC!          Reset PC connection, and everything will be fine, if anyone will meet a problem like that. 
  • Topics

×
×
  • Create New...