IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Please help!

 Change activation code for a cleo script
 
bones1343  
Posted: Monday, Sep 24 2012, 14:21
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Sep 24, 2012

XXXXX



I'm quite new to cleo scripting. I don't really want to do much but just change the way the script is activated. Can anyone please help me with this? smile.gif
PM
  Top
 

 
JACK JONES  
Posted: Monday, Sep 24 2012, 15:12
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



You can make any scrypt to activate by puting "key" or "cheat" opcodes inside a loop at the begining of the scrypt. Example:
CODE

{$CLEO .cs}
thread 'bones'

:Loop
wait 0
if  
0ADC:   test_cheat "BONES"   // you can put some other text
jf @Loop
...This is the part where the scrypt starts

You also have many key opcodes for SA. Change 0ADC (cheat opcode) with some of them if you prefer keys instead of cheats (better use higher delay for keys like "wait 1000").
Or if some1 writes a high level code that you want to activate:
CODE
{$CLEO}
0000: NOP

repeat
wait 1000
until 00E1:   player 0 pressed_key 17 // key opcode (fire key in this case)
...a scrypt starts right here


This post has been edited by JACK JONES on Monday, Sep 24 2012, 15:26
PM
  Top
 

 
bones1343  
Posted: Monday, Sep 24 2012, 15:45
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Sep 24, 2012

XXXXX



Thank you very much! Greatly appreciated! smile.gif I will try it out shortly.. This is what i'm trying to edit btw:


{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'GRIDE'
2@ = -1
3@ = -1
4@ = -1
5@ = -1
6@ = -1
10@ = -1
11@ = -1

:GRIDE_60
wait 0
0@ = -229906
008B: 0@ = &0(0@,1i) // (int)
0085: 1@ = 0@ // (int)
0@ /= 65536
0@ *= 65536
0062: 1@ -= 0@ // (int)
if
1@ == 18248
else_jump @GRIDE_60
0@ = -229907
008B: 1@ = &0(0@,1i) // (int)
if
1@ == 1330861138
else_jump @GRIDE_60
0@ = -229908
008B: 1@ = &0(0@,1i) // (int)
if
1@ == 1229210962
else_jump @GRIDE_60
&0(0@,1i) = 1229210880
03E5: show_text_box 'CHEAT1' // Cheat activated



There's more to it but that's the main part i guess

This post has been edited by bones1343 on Monday, Sep 24 2012, 15:47
PM
  Top
 

 
Bad.boy!  
Posted: Monday, Sep 24 2012, 15:59
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



CODE
thread 'GRIDE'
2@ = -1
3@ = -1
4@ = -1
5@ = -1
6@ = -1
10@ = -1
11@ = -1

:GRIDE_60
wait 0
if  
0ADC:   test_cheat "BONES"  
jf @GRIDE_60
03E5: show_text_box 'CHEAT1' // Cheat activated
PM
  Top
 

 
bones1343  
Posted: Monday, Sep 24 2012, 16:05
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Sep 24, 2012

XXXXX



Thanks for the help man! smile.gif
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG