CLEO Help Need Help.

CLEO related
Status
Not open for further replies.

SafwanM

Active member
Joined
Mar 6, 2016
Messages
126
Reaction score
0
Location
Pakistan
Hey guys,there was a moneybag.cs uploaded on ugbase and i collected 200 moneybags from it as it teleports you to the moneybag when you're near.As i have the achievement of moneybags and i can find them easily so i decided to try to make the moneybag.cs to cookiejar.cs.
I edited it and im not sure if it's right or not so please help me!.
Before i edited: 
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread "UGBASE.EU" 

:UGBASE.EU_15
wait 0 
0A8D: 29@ = read_memory 12010652 size 4 virtual_protect 0 
29@ += 4 
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0 
30@ = 0 

:UGBASE.EU_59
0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0 
29@ += 1 
if and
  31@ >= 0 
  128 > 31@ 
else_jump @UGBASE.EU_179 
005A: 31@ += 30@ // (int) 
if 
   Object.Model(31@) == 1550
else_jump @UGBASE.EU_179 
Object.StorePos(31@, 0@, 1@, 2@)
if 
0AB0:   key_pressed 76 
else_jump @UGBASE.EU_179 
0AB1: call_scm_func @UGBASE.EU_211 3 0@ 1@ 2@  

:UGBASE.EU_179
30@ += 256 
  30@ > 89344 
else_jump @UGBASE.EU_59 
jump @UGBASE.EU_15 

:UGBASE.EU_211
0A96: 3@ = actor $PLAYER_ACTOR struct 
3@ += 20 
0A8D: 3@ = read_memory 3@ size 4 virtual_protect 0 
3@ += 48 
0A8C: write_memory 3@ size 4 value 0@ virtual_protect 0 
3@ += 4 
0A8C: write_memory 3@ size 4 value 1@ virtual_protect 0 
3@ += 4 
0A8C: write_memory 3@ size 4 value 2@ virtual_protect 0 
0AB2: ret 0

After i edited:
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread "UGBASE.EU" 

:UGBASE.EU_15
wait 0 
0A8D: 29@ = read_memory 12010652 size 4 virtual_protect 0 
29@ += 4 
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0 
30@ = 0 

:UGBASE.EU_59
0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0 
29@ += 1 
if and
  31@ >= 0 
  128 > 31@ 
else_jump @UGBASE.EU_179 
005A: 31@ += 30@ // (int) 
if 
   Object.Model(31@) == 1276
else_jump @UGBASE.EU_179 
Object.StorePos(31@, 0@, 1@, 2@)
if 
0AB0:   key_pressed 76 
else_jump @UGBASE.EU_179 
0AB1: call_scm_func @UGBASE.EU_211 3 0@ 1@ 2@  

:UGBASE.EU_179
30@ += 256 
  30@ > 89344 
else_jump @UGBASE.EU_59 
jump @UGBASE.EU_15 

:UGBASE.EU_211
0A96: 3@ = actor $PLAYER_ACTOR struct 
3@ += 20 
0A8D: 3@ = read_memory 3@ size 4 virtual_protect 0 
3@ += 48 
0A8C: write_memory 3@ size 4 value 0@ virtual_protect 0 
3@ += 4 
0A8C: write_memory 3@ size 4 value 1@ virtual_protect 0 
3@ += 4 
0A8C: write_memory 3@ size 4 value 2@ virtual_protect 0 
0AB2: ret 0
Please guys help me with this,thankyou.
P:S: I've posted the moneybag.cs in attachments.
 

Attachments

  • moneybag.cs
    300 bytes · Views: 25
Status
Not open for further replies.
Top