Function that gives offsets for every jass native

This is a discussion on Function that gives offsets for every jass native within the Warcraft 3 forum board part of the Hot Games category; Hello guys. I was reading this thread http://www.d3scene.com/forum/warcraf...-versions.html by @ DarkSupremo : Here he says: "I did an class based ...

Results 1 to 4 of 4
  1. #1
    Trigger Edge is offline Wannabe Member
    Array
    Join Date
    Jun 2017
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    1
    Reputation
    1

    Function that gives offsets for every jass native

    Hello guys.

    I was reading this thread [Release+Source=C++] Generate FULL JASS Natives List (Work to all war3 versions) by @DarkSupremo:

    Here he says:
    "I did an class based on it that populate an list with the offset and jass name, with that you can just do an function like CJass->find("CreateUnit") to return the offset of this jass, its really simple and usefull to make hacks to work with every war3 version with no much code"

    I totally agree because look for every offsets one per one is totally a waste of work...



    Could someone please explain to me how to use this "CJass->find("CreateUnit")"?

  2. #2
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008

  3. #3
    Trigger Edge is offline Wannabe Member
    Array
    Join Date
    Jun 2017
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    1
    Reputation
    1
    Nope, I know how to use jass in c ++, what I want to know is how to use the DarkSupremo´s code but in a native declaration, example:

    Code:
    typedef int(__cdecl *pGetPlayers)();
    pGetPlayers GetPlayers = (pGetPlayers)(GameDll + GetJassNativeOffset());

  4. #4
    Trigger Edge is offline Wannabe Member
    Array
    Join Date
    Jun 2017
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    1
    Reputation
    1
    Bump!

Similar Threads

  1. [Tut] Calling JASS Natives - RCString (how to pass JASS Strings to functions)
    By Jan Ra in forum Warcraft 3 Hacks, bots and tools
    Replies: 10
    Last Post: 06-14-2013, 11:04 AM
  2. SC2 Native List
    By haxorico in forum Starcraft 2 Coding
    Replies: 0
    Last Post: 05-08-2012, 06:20 AM
  3. Replies: 1
    Last Post: 02-09-2012, 11:51 PM
  4. [Help] tell me pls GetPlayerColor (not JASS) function offset for any version
    By wc3noobpl in forum Warcraft 3 Hacks, bots and tools
    Replies: 28
    Last Post: 01-21-2012, 04:46 PM
  5. Some help interpreting this jass function?
    By negativeone in forum Warcraft 3 Custom Maps
    Replies: 1
    Last Post: 03-13-2009, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •