Como trabalhar com o CWanted

    Compartilhe
    avatar
    Deadstroke
    Scripter CLEO - Intermediário
    Scripter CLEO - Intermediário

    Mensagens : 481
    Reputação : 30
    Desde : 08/02/2016
    Localização : São Paulo

    Como trabalhar com o CWanted

    Mensagem por Deadstroke em Qua 13 Jul 2016, 05:00

    Estou tentando trabalhar com os endereços de memória CWanted (ver http://www.gtamodding.com/wiki/Memory_Addresses_(SA)#Menu ), mas não entendo como ele funciona. Quem souber e puder ajudar...

    CWanted:
    Wanted
    0xB7CD9C - Wanted pool start (CWanted). Each slot has 668 bytes of data.

    +0x0 = Is the counter for how pissed the cops are:
    above 50 = 1 star
    above 180 = 2 stars
    above 550 = 3 stars
    above 1200 = 4 stars
    above 2400 = 5 stars
    above 4600 = 6 stars
    +0x4 = like above, but 'before parole (timed wanted level decrease?)'
    +0x8 = [dword] time value, the last time the wanted level decreased
    +0xC = [dword] time value, the last time the wanted level changed
    +0x10 = [dword] 'time of parole'
    +0x14 = [float] multiplier of wanted level contribution of crimes (set using 03C7?)
    +0x18 = [byte] Current amount of cops 'in pursuit'
    +0x19 = [byte] Maximum number of foot cops simultaneously shooting at you ('in pursuit')
    +0x1A = [byte] Maximum number of cop cars in pursuit
    +0x1B = [byte] Amount of cops currently 'beating the suspect'
    +0x1C = [word] Chance a road block appears, range unknown (though 127 seems to have a special meaning)
    +0x1E = [bool] Is the player ignored by police? (set by script)
    +0x1F = [bool] Is the player ignored by police? (set by garages)
    +0x20 = [bool] Is the player ignored by everyone?
    +0x21 = [bool] Should the streamer load the SWAT models?
    +0x22 = [bool] Should the streamer load the FBI models?
    +0x23 = [bool] Should the streamer load the army models?
    +0x24 = [dword] Current chase time
    +0x28 = [dword] 'Current chase time counter'
    +0x2C = [bool] 'is time counting'
    +0x2D = [word] Current wanted level (1-6)
    +0x2F = [word] Wanted level before 'parole'
    need to do more
    Note: Helicopters will still shoot if you change flag 0x19 to 0.
    avatar
    Nex'
    Scripter CLEO - Básico
    Scripter CLEO - Básico

    Título : Imposto é roubo
    Mensagens : 962
    Reputação : 68
    Desde : 04/03/2013
    Idade : 17

    Re: Como trabalhar com o CWanted

    Mensagem por Nex' em Qua 13 Jul 2016, 09:02

    Código:
    {$CLEO}
    0000:

    const
     CWANTED = 0xB7CD9C
    end

    var
     0@ : int
     2@ : int
    end
    while true
        wait 0
        0A8D: 0@ = read_memory CWANTED size 4 virtual_protect 0
        // 0@ = CWANTED Pointer
        0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0
        {
        1@ =
        +0x0 = Is the counter for how pissed the cops are:
        above 50 = 1 star
        above 180 = 2 stars
        above 550 = 3 stars
        above 1200 = 4 stars
        above 2400 = 5 stars
        above 4600 = 6 stars
        }
        2@ = 0@
        2@ += 0x18
        // 2@ = [byte] Current amount of cops 'in pursuit'
        0A8D: 3@ = read_memory 2@ size 1 virtual_protect 0
        0AD1: show_formatted_text_highpriority "Cops rage: %d~n~Cops in pursuit: %d" time 2000 1@ 3@
    end



    Bem interessante esse "cops rage" :)


    ____________________
    PC Specs
    CPU: Intel Core i3-6100 Skylake
    GPU: HD Intel 530
    RAM: Crucial Ballistix Elite 4GB 2133MHz DDR4
    PSU: Corsair CX-430W
    MOBO: Gigabyte GA-H110M-H DDR4
    avatar
    Deadstroke
    Scripter CLEO - Intermediário
    Scripter CLEO - Intermediário

    Mensagens : 481
    Reputação : 30
    Desde : 08/02/2016
    Localização : São Paulo

    Re: Como trabalhar com o CWanted

    Mensagem por Deadstroke em Qua 13 Jul 2016, 15:25

    Vlw!

    Conteúdo patrocinado

    Re: Como trabalhar com o CWanted

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Qui 22 Jun 2017, 08:59