Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


unsure how to write this script to do what I want
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Faxonation
Cheater
Reputation: 0

Joined: 18 Oct 2014
Posts: 25

PostPosted: Thu Sep 17, 2015 11:11 pm    Post subject: Reply with quote

There is something I would like to add near the bottom but cant make it work for nothing




Code:

if mytimer == nil then
    should_change = true
    elapsed_time = 0
    interval_timer = 100
    mytimer=createTimer(nil)
    mytimer.Interval=interval_timer
    mytimer.OnTimer=function(t)
        local value = readInteger("12B81548")
        if value >= 1 and value <= 5 and should_change then
            should_change = false
            elapsed_time = 0
            writeInteger("11F9B8D4", 4294967295)
            writeInteger("12882354", 4294967295)
            writeInteger("12750934", 4294967295)
            writeInteger("129D2FA4", 4294967295)
            writeInteger("129C7F14", 4294967295)
            writeInteger("11F690D4", 4294967295)
            writeInteger("12B297C4", 4294967295)
            writeInteger("127599D4", 4294967295)
            writeInteger("11FB04E4", 4294967295)
            writeInteger("119C2784", 4294967295)
            writeInteger("12A7C784", 4294967295)
            writeInteger("1278A2A4", 4294967295)
            writeInteger("12A8D634", 4294967295)
            writeInteger("12840B34", 4294967295)
            writeInteger("1277C1C4", 4294967295)
            writeInteger("122D7E84", 4294967295)
            writeInteger("127BFDC4", 4294967295)
            writeInteger("12727EB4", 4294967295)
            writeInteger("1194DFC4", 4294967295)
            writeInteger("127B8C14", 4294967295)
            writeInteger("1213EB44", 4294967295)
            writeInteger("1280C0A4", 4294967295)
            writeInteger("12894BE4", 4294967295)
            writeInteger("122D7B94", 4294967295)
        end
        value = readInteger("12B8152C")
        if value == 0 then
            if elapsed_time > 2000 then
                should_change = true
                writeInteger("11F9B8D4", 14642864)
                writeInteger("12882354", 24524640)
                writeInteger("12750934", 14653680)
                writeInteger("129D2FA4", 25354864)
                writeInteger("129C7F14", 17747056)
                writeInteger("11F690D4", 25341312)
                writeInteger("12B297C4", 22708128)
                writeInteger("127599D4", 21844512)
                writeInteger("11FB04E4", 14799024)
                writeInteger("119C2784", 32426208)
                writeInteger("12A7C784", 26650400)
                writeInteger("1278A2A4", 25881776)
                writeInteger("12A8D634", 25287040)
                writeInteger("12840B34", 25000800)
                writeInteger("1277C1C4", 24423632)
                writeInteger("122D7E84", 23956064)
                writeInteger("127BFDC4", 22801696)
                writeInteger("12727EB4", 22557056)
                writeInteger("1194DFC4", 21479168)
                writeInteger("127B8C14", 17732800)
                writeInteger("1213EB44", 17081936)
                writeInteger("1280C0A4", 15161040)
                writeInteger("12894BE4", 14555504)
                writeInteger("122D7B94", 8755248)
            end
            value = readInteger("12B81548")
            if value == 1 then
                should_change = true
                writeInteger("12B81548", 0)
            end
            value = readInteger("12B81548")
            if value == 2 then
                should_change = true
                writeInteger("12B81548", 0)
            end
            value = readInteger("12B81548")
            if value == 3 then
                should_change = true
                writeInteger("12B81548", 0)
            end
            value = readInteger("12B81548")
            if value == 4 then
                should_change = true
                writeInteger("12B81548", 0)
            end
            value = readInteger("12B81548")
            if value == 5 then
                should_change = true
                writeInteger("12B81548", 0)
            end

            valueTwo = readInteger("12B81548") --0
            valueThree = readInteger("12B81540") --11
            valueFour= readInteger("12B8153C") --6
            valueFive = readInteger("12B8152C") --0
            if valueTwo == 0 and valueThree == 11 and valueFour == 6 and valueFive == 0 then
                -- same time
                writeInteger("1315A6D8", 1187348242)
                writeInteger("1315A6DC", 1113091811)
                writeInteger("1315A6E0", 1182120682)
                --st end

                --same time
                writeInteger("1315A760 ", 1187348242)
                writeInteger("1315A764 ", 1113091811)
                writeInteger("1315A768 ", 1182120682)
                --st end
                end


Here I would like it to wait 7 seconds before changing these addresses to 0

("12B81548", 0)
("12B81540", 0)
("12B8153C", 0)




Code:

end
        end
        elapsed_time = elapsed_time + interval_timer
    end
 end
 mytimer.Enabled=truerue
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites