Ty that worked
and now I need to Enable 2 Scripts at the same time
and this don't seem to work
if i Check both boxes only 1 will work
Code:
isEnabled = 0
function CETrainer_CECheckbox1Click(sender)
addressList = getAddressList()
if sender.checked == true then
script1 = addressList.getMemoryRecordByDescription("Stats")
script2 = addressList.getMemoryRecordByDescription("Stats1")
script1.Active = true
script2.Active = true
isEnabled = 1
else
script1 = addressList.getMemoryRecordByDescription("Stats") -- hack false -close
script2 = addressList.getMemoryRecordByDescription("Stats1") --hack false
script1.Active = false
script2.Active = false
isEnabled = 0
end
end
function CETrainer_CECheckbox2Click(sender)
addressList = getAddressList()
if sender.checked == true then
script3 = addressList.getMemoryRecordByDescription("Enemy Stats")
script3.Active = true
isEnabled = 1
else
script3 = addressList.getMemoryRecordByDescription("Enemy Stats")
script3.Active = false
isEnabled = 0
end
end
-- or all select
function CETrainer_CECheckbox3Click(sender)
if sender.checked == true then
CETrainer.CECheckbox1.checked = true --or CETrainer_CECheckbox1
CETrainer.CECheckbox2.checked = true
else
CETrainer.CECheckbox1.checked = false
CETrainer.CECheckbox2.checked = false
end
end
2)maybe I'm asking too much but how make in another window when "Enemy HP"
is Losing HP in another window would show how much HP is lost in 1 second
here is the code that displays HP
Code:
function CETrainer_CETimer3Timer(sender)
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "HP E")
local value=memoryrecord_getValue(memrec)
control_setCaption(CETrainer_CEEdit1, value)
end
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