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 


[help] label rainbow

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
verygood14101
How do I cheat?
Reputation: 0

Joined: 16 Mar 2021
Posts: 3

PostPosted: Tue Mar 16, 2021 1:37 pm    Post subject: [help] label rainbow Reply with quote

I want lua code in the video, I want to make the label rainbow like in the video.

I can not post Link here But you can find it on youtube please help me thank you

Video Name = Growtopia | Trainer/ New / V.2.999
Back to top
View user's profile Send private message
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Tue Mar 16, 2021 4:53 pm    Post subject: Reply with quote

Code:
if f then f.destroy() f = nil end
f = createForm()
f.Position = 'poScreenCenter'
f.color=0

local label1 = createLabel(f)
label1.Font.Size=18 label1.Left=15 label1.Top=15 label1.caption="Cheat Engine 1"

local label2 = createLabel(f)
label2.Font.Size=18 label2.Left=50 label2.Top=50 label2.caption="Cheat Engine 2"

local label3 = createLabel(f)
label3.Font.Size=18 label3.Left=85 label3.Top=85 label3.caption="Cheat Engine 3"

local label4 = createCheckBox(f)
label4.Font.Size=18 label4.Left=75 label4.Top=125 label4.caption="Form On Click Effect!"

local panel1 = createPanel(f) panel1.AutoSize=false
panel1.Font.Size=18 panel1.Left=75 panel1.Top=175 panel1.caption="Cheat Engine 5"

local objColor=101

if c1 then c1.Destroy() c1=nil end
c1=createTimer(false)
c1.Interval=900

c1.OnTimer= function ()
    objColor=tonumber(objColor) + 101802
    print(objColor)
  for i=0, f.ControlCount-1 do
    local object = f.Control[i]
    object.Font.Color=math.floor(objColor,16777215) --objColor
    if objColor>16777215 then
      objColor=101
    end
  end
end

f.OnClick=function() if c1.Enabled==false then c1.Enabled=true else c1.Enabled=false end end
--c1.Enabled = false


or.. sprinkle effect.
Code:
if f then f.destroy() f = nil end

f = createForm()
f.Position = 'poScreenCenter'
f.color=0

local label1 = createLabel(f)
label1.Font.Size=18 label1.Left=15 label1.Top=15 label1.caption="Cheat Engine 1"

local label2 = createLabel(f)
label2.Font.Size=18 label2.Left=50 label2.Top=50 label2.caption="Cheat Engine 2"

local label3 = createLabel(f)
label3.Font.Size=18 label3.Left=85 label3.Top=85 label3.caption="Cheat Engine 3"

local label4 = createLabel(f)
label4.Font.Size=18 label4.Left=75 label4.Top=125 label4.caption="Form On Click Effect!"

local panel1 = createPanel(f) panel1.AutoSize=false
panel1.Font.Size=18 panel1.Left=75 panel1.Top=175 panel1.caption="Cheat Engine 5"

local objColor=101

if c1 then c1.Destroy() c1=nil end
c1=createTimer(false)
c1.Interval=100

c1.OnTimer= function ()
  for i=0, f.ControlCount-1 do
    local object = f.Control[i]
    objColor=tonumber(objColor) + 101
    object.Font.Color=objColor
    print(objColor)
    if objColor>16777215 then
      objColor=101
    end
  end
end

f.OnClick=function() if c1.Enabled==false then c1.Enabled=true else c1.Enabled=false end end
--c1.Enabled = false


Or create a table, add the special colors you want into it (sort the colors by tone for deletion and appearing)
Then add these colors to the timer.

sample:"0x00FF00"
Code:
local myColors={"0x00FF00","0xFFFF00","0xFF0000","0xFF007E",
"0xFF00FF","0xBF00FE","0x0040FF","0x007FFF","0x00BEFF","0x00FFFF"}
local colorIndex=0

c1.OnTimer= function ()
colorIndex=tonumber(colorIndex) + 1
  for i=0, f.ControlCount-1 do
    local object = f.Control[i]

object.Font.Color=myColors[colorIndex]
end
if colorIndex==10 then --5 myColors index
colorIndex=0
end
end
Back to top
View user's profile Send private message
verygood14101
How do I cheat?
Reputation: 0

Joined: 16 Mar 2021
Posts: 3

PostPosted: Wed Mar 17, 2021 5:43 am    Post subject: Reply with quote

ByTransient wrote:
Code:
if f then f.destroy() f = nil end
f = createForm()
f.Position = 'poScreenCenter'
f.color=0

local label1 = createLabel(f)
label1.Font.Size=18 label1.Left=15 label1.Top=15 label1.caption="Cheat Engine 1"

local label2 = createLabel(f)
label2.Font.Size=18 label2.Left=50 label2.Top=50 label2.caption="Cheat Engine 2"

local label3 = createLabel(f)
label3.Font.Size=18 label3.Left=85 label3.Top=85 label3.caption="Cheat Engine 3"

local label4 = createCheckBox(f)
label4.Font.Size=18 label4.Left=75 label4.Top=125 label4.caption="Form On Click Effect!"

local panel1 = createPanel(f) panel1.AutoSize=false
panel1.Font.Size=18 panel1.Left=75 panel1.Top=175 panel1.caption="Cheat Engine 5"

local objColor=101

if c1 then c1.Destroy() c1=nil end
c1=createTimer(false)
c1.Interval=900

c1.OnTimer= function ()
    objColor=tonumber(objColor) + 101802
    print(objColor)
  for i=0, f.ControlCount-1 do
    local object = f.Control[i]
    object.Font.Color=math.floor(objColor,16777215) --objColor
    if objColor>16777215 then
      objColor=101
    end
  end
end

f.OnClick=function() if c1.Enabled==false then c1.Enabled=true else c1.Enabled=false end end
--c1.Enabled = false


or.. sprinkle effect.
Code:
if f then f.destroy() f = nil end

f = createForm()
f.Position = 'poScreenCenter'
f.color=0

local label1 = createLabel(f)
label1.Font.Size=18 label1.Left=15 label1.Top=15 label1.caption="Cheat Engine 1"

local label2 = createLabel(f)
label2.Font.Size=18 label2.Left=50 label2.Top=50 label2.caption="Cheat Engine 2"

local label3 = createLabel(f)
label3.Font.Size=18 label3.Left=85 label3.Top=85 label3.caption="Cheat Engine 3"

local label4 = createLabel(f)
label4.Font.Size=18 label4.Left=75 label4.Top=125 label4.caption="Form On Click Effect!"

local panel1 = createPanel(f) panel1.AutoSize=false
panel1.Font.Size=18 panel1.Left=75 panel1.Top=175 panel1.caption="Cheat Engine 5"

local objColor=101

if c1 then c1.Destroy() c1=nil end
c1=createTimer(false)
c1.Interval=100

c1.OnTimer= function ()
  for i=0, f.ControlCount-1 do
    local object = f.Control[i]
    objColor=tonumber(objColor) + 101
    object.Font.Color=objColor
    print(objColor)
    if objColor>16777215 then
      objColor=101
    end
  end
end

f.OnClick=function() if c1.Enabled==false then c1.Enabled=true else c1.Enabled=false end end
--c1.Enabled = false


Or create a table, add the special colors you want into it (sort the colors by tone for deletion and appearing)
Then add these colors to the timer.

sample:"0x00FF00"
Code:
local myColors={"0x00FF00","0xFFFF00","0xFF0000","0xFF007E",
"0xFF00FF","0xBF00FE","0x0040FF","0x007FFF","0x00BEFF","0x00FFFF"}
local colorIndex=0

c1.OnTimer= function ()
colorIndex=tonumber(colorIndex) + 1
  for i=0, f.ControlCount-1 do
    local object = f.Control[i]

object.Font.Color=myColors[colorIndex]
end
if colorIndex==10 then --5 myColors index
colorIndex=0
end
end




Thank you very much
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
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