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 Combobox Trainer with cheat engine
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 4:56 am    Post subject: Help Combobox Trainer with cheat engine Reply with quote

Hello ( after long search ) and tested example.ct from Dark Byte but i want to learn but it's hard

I want to make Combobox with all location => button for teleport



and if someone is available to teach me ( I can pay to receive several lesson) or free if someone has time
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 10:46 am    Post subject: Reply with quote

Code:
function CEButton1Click(sender)
  local s = UDF1.CEComboBox1.ItemIndex
  if s == 0 then
    writeDouble(0x02301BA0,1234.568)
    writeDouble(0x02301BA8,-897.4)
  elseif s == 1 then
    writeDouble(0x02301BA0,-211)
    writeDouble(0x02301BA8,2423.3)
  -- etc...
  end
end

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 11:20 am    Post subject: Reply with quote

Thanks, this is for Teleport button right ? and how to add all location to combobox list ( pointer / array of byte )

Pointer ( "UnityEngine.dll"+014817B4 ( 78+428+0+30 )

i don't want lost your time, if you want money pm me
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 11:30 am    Post subject: Reply with quote

You don't. The combobox is just for the user to know where they're teleporting to.

For example, if you want index 0 to be some city, then the text of that will be "City" or whatever. The button, when pressed and when the combobox is at "City", will write the location of the city to your coordinates when it's selected (ItemIndex == 0), effectively teleporting you to the city. Same concept for other indices- if index 1 is a cave, then write the location of the cave to your coordinates when the button is pressed and when ItemIndex == 1.

Assuming that's a pointer to your coordinate, use:
Code:
writeDouble("[[[[UnityEngine.dll+014817B4]+78]+428]+0]+30", 1234.568)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 1:14 pm    Post subject: Reply with quote

I am so lost

Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 1:18 pm    Post subject: Reply with quote

Here's a simple example. Just run the Lua script at least once.

Make sure you use writeDouble(...) instead of writeDoubleLocal(...) and replace the address with the pointer path as I showed previously.



Teleport Combobox Example.CT
 Description:

Download
 Filename:  Teleport Combobox Example.CT
 Filesize:  1.99 KB
 Downloaded:  1642 Time(s)


_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 1:22 pm    Post subject: Reply with quote

After edit ( with your writedouble =)

writeDouble("[[[[UnityEngine.dll+014817B4]+78]+428]+0]+30", C9 9B 30 44 CC 56 12 44 C7 C3 FF 41 00 00 00 00 00 00 00 00 60 4C 35 3F 6A BD 34 3F D8 9D A9 4F)

it's good ?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 1:24 pm    Post subject: Reply with quote

I have no idea where you got that AoB from.

A double is a type of value- any value that has a decimal. 3.14, 2.71, 113, 792.5, 2.75*10^38, etc., are all examples.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 1:27 pm    Post subject: Reply with quote

i need double value for teleport ?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 1:29 pm    Post subject: Reply with quote

It could be a float or an integer. Use the same value type as the address of your coordinates.

Do you even have the address of your coordinates?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 1:37 pm    Post subject: Reply with quote

ParkourPenguin wrote:
It could be a float or an integer. Use the same value type as the address of your coordinates.

Do you even have the address of your coordinates?


Double value teleport me just Y axe


need array of byte for teleport x y z
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 1:43 pm    Post subject: Reply with quote

That's an instruction. Not the address of any of your coordinates.

If that instruction accesses the address of your coordinates, then those values are floats, not doubles.

The addresses of your coordinates are usually right next to each other in memory. If you can find a pointer to one of them, you can simply change the last offset to get all of them.

Your offsets might also be in reverse order. Try this:
Code:
writeDouble("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+78", 1234.567)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 1:49 pm    Post subject: Reply with quote

Ok done

UnityEngine.dll+014817B4]+30]+0]+428]+78 = X position ( float )
UnityEngine.dll+014817B4]+30]+0]+428]+7C = Y position ( float )

writeDouble("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+78",465.3830566)
writeDouble("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+7C",746.1271973)

Crash in-game when click teleport
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4710

PostPosted: Sun Jun 05, 2016 1:58 pm    Post subject: Reply with quote

You're trying to fit a square peg in a round hole. If those addresses are floats, why treat them as if they were doubles?
Code:
writeFloat("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+78", 465.3830566)
writeFloat("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+7C", 746.1271973)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mausi125
Advanced Cheater
Reputation: 1

Joined: 05 Jun 2014
Posts: 86

PostPosted: Sun Jun 05, 2016 2:01 pm    Post subject: Reply with quote

ParkourPenguin wrote:
You're trying to fit a square peg in a round hole. If those addresses are floats, why treat them as if they were doubles?
Code:
writeFloat("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+78", 465.3830566)
writeFloat("[[[[UnityEngine.dll+014817B4]+30]+0]+428]+7C", 746.1271973)


I am dumb -_-, now it workkkkkkkkkkkkkkkkkkkkkkkkk

Last question ( how add your script on my trainer ( and how add name city camp fire ....
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 1, 2  Next
Page 1 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