CLEO Help Help with this

CLEO related
Status
Not open for further replies.

RazooorS

Active member
Joined
Feb 16, 2019
Messages
60
Reaction score
0
I making cleo script like object finder but on this server where i play have a fake object under map and i make this script i go to coordinates and i save this and i put them in script and make script when object in dont locate in but now this dont work
Code:
:Noname_3445
0006: 6@ = 0 
00D6: if and
0031:   0@ >= 524.0 
8021:   not  0@ > 544.0 
0031:   1@ >= -1311.0 
8021:   not  1@ > -1291.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_3537                                                   
0006: 6@ = 1 

:Noname_3537
00D6: if and
0031:   0@ >= 1303.0 
8021:   not  0@ > 1323.0 
0031:   1@ >= -894.0 
8021:   not  1@ > -874.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_3622 
0006: 6@ = 1 

:Noname_3622
00D6: if and
0031:   0@ >= 1753.0 
8021:   not  0@ > 1773.0 
0031:   1@ >= -2299.0 
8021:   not  1@ > -2279.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_3707 
0006: 6@ = 1 

:Noname_3707
00D6: if and
0031:   0@ >= 1615.0 
8021:   not  0@ > 1635.0 
0031:   1@ >= -2233.0 
8021:   not  1@ > 2213.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_3792 
0006: 6@ = 1 

:Noname_3792
00D6: if and
0031:   0@ >= 1511.0 
8021:   not  0@ > 1531.0 
0031:   1@ >= -1581.0 
8021:   not  1@ > -1561.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_3877 
0006: 6@ = 1 

:Noname_3877
00D6: if and
0031:   0@ >= 1124.0 
8021:   not  0@ > 1144.0 
0031:   1@ >= -1821.0 
8021:   not  1@ > -1801.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_3962 
0006: 6@ = 1 

:Noname_3962
00D6: if and
0031:   0@ >= 2165.0 
8021:   not  0@ > 2185.0 
0031:   1@ >= -1884.0 
8021:   not  1@ > -1864.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4047 
0006: 6@ = 1 

:Noname_4047
00D6: if and
0031:   0@ >= 2164.0 
8021:   not  0@ > 2184.0 
0031:   1@ >= -1884.0 
8021:   not  1@ > -1864.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4132 
0006: 6@ = 1 

:Noname_4132
00D6: if and
0031:   0@ >= 1873.0 
8021:   not  0@ > 1893.0 
0031:   1@ >= -1296.0 
8021:   not  1@ > -1276.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4217 
0006: 6@ = 1 

:Noname_4217
00D6: if and
0031:   0@ >= 1836.0 
8021:   not  0@ > 1856.0 
0031:   1@ >= -1105.0 
8021:   not  1@ > -1085.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4302 
0006: 6@ = 1 

:Noname_4302
00D6: if and
0031:   0@ >= 1862.0 
8021:   not  0@ > 1882.0 
0031:   1@ >= -1659.0 
8021:   not  1@ > -1639.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4387 
0006: 6@ = 1 

:Noname_4387
00D6: if and
0031:   0@ >= 1423.0 
8021:   not  0@ > 1443.0 
0031:   1@ >= -1800.0 
8021:   not  1@ > -1780.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4472 
0006: 6@ = 1 

:Noname_4472
00D6: if and
0031:   0@ >= 1424.0 
8021:   not  0@ > 1444.0 
0031:   1@ >= -1799.0 
8021:   not  1@ > -1779.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4557 
0006: 6@ = 1 

:Noname_4557
00D6: if and
0031:   0@ >= 1133.0 
8021:   not  0@ > 1153.0 
0031:   1@ >= -1186.0 
8021:   not  1@ > -1166.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4642 
0006: 6@ = 1 

:Noname_4642
00D6: if and
0031:   0@ >= 1110.0 
8021:   not  0@ > 1130.0 
0031:   1@ >= -1314.0 
8021:   not  1@ > -1294.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4727 
0006: 6@ = 1 

:Noname_4727
00D6: if and
0031:   0@ >= 1100.0 
8021:   not  0@ > 1120.0 
0031:   1@ >= -1366.0 
8021:   not  1@ > -1346.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4812 
0006: 6@ = 1 

:Noname_4812
00D6: if and
0031:   0@ >= 654.0 
8021:   not  0@ > 674.0 
0031:   1@ >= -1369.0 
8021:   not  1@ > -1349.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4897 
0006: 6@ = 1 

:Noname_4897
00D6: if and
0031:   0@ >= 715.0 
8021:   not  0@ > 735.0 
0031:   1@ >= -1470.0 
8021:   not  1@ > -1450.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_4982 
0006: 6@ = 1 

:Noname_4982
00D6: if and
0031:   0@ >= 1726.0 
8021:   not  0@ > 1746.0 
0031:   1@ >= -2238.0 
8021:   not  1@ > -2218.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5067 
0006: 6@ = 1 

:Noname_5067
00D6: if and
0031:   0@ >= 2119.0 
8021:   not  0@ > 2139.0 
0031:   1@ >= -1192.0 
8021:   not  1@ > -1172.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5152 
0006: 6@ = 1 

:Noname_5152
00D6: if and
0031:   0@ >= 2345.0 
8021:   not  0@ > 2365.0 
0031:   1@ >= -2088.0 
8021:   not  1@ > -2068.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5237 
0006: 6@ = 1 

:Noname_5237
00D6: if and
0031:   0@ >= 1509.0 
8021:   not  0@ > 1529.0 
0031:   1@ >= -1816.0 
8021:   not  1@ > -1796.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5322 
0006: 6@ = 1 

:Noname_5322
00D6: if and
0031:   0@ >= -2345.0 
8021:   not  0@ > -2325.0 
0031:   1@ >= -166.0 
8021:   not  1@ > -146.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5407 
0006: 6@ = 1 

:Noname_5407
00D6: if and
0031:   0@ >= -2493.0 
8021:   not  0@ > -2473.0 
0031:   1@ >= -193.0 
8021:   not  1@ > -113.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5492 
0006: 6@ = 1 

:Noname_5492
00D6: if and
0031:   0@ >= -2588.0 
8021:   not  0@ > -2568.0 
0031:   1@ >= -177.0 
8021:   not  1@ > -157.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5577 
0006: 6@ = 1 

:Noname_5577
00D6: if and
0031:   0@ >= -2212.0 
8021:   not  0@ > -2192.0 
0031:   1@ >= -166.0 
8021:   not  1@ > -146.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5662 
0006: 6@ = 1 

:Noname_5662
00D6: if and
0031:   0@ >= -2070.0 
8021:   not  0@ > -2050.0 
0031:   1@ >= -23.0 
8021:   not  1@ > -3.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5747 
0006: 6@ = 1 

:Noname_5747
00D6: if and
0031:   0@ >= -1855.0 
8021:   not  0@ > -1865.0 
0031:   1@ >= 69.0 
8021:   not  1@ > 49.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5832 
0006: 6@ = 1 

:Noname_5832
00D6: if and
0031:   0@ >= -2749.0 
8021:   not  0@ > -2729.0 
0031:   1@ >= 248.0 
8021:   not  1@ > 268.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_5917 
0006: 6@ = 1 

:Noname_5917
00D6: if and
0031:   0@ >= -2482.0 
8021:   not  0@ > -2462.0 
0031:   1@ >= 528.0 
8021:   not  1@ > 508.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_6002 
0006: 6@ = 1 

:Noname_6002
00D6: if and
0031:   0@ >= -2193.0 
8021:   not  0@ > -2173.0 
0031:   1@ >= 421.0 
8021:   not  1@ > 401.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_6087 
0006: 6@ = 1 

:Noname_6087
00D6: if and
0031:   0@ >= -2353.0 
8021:   not  0@ > -2333.0 
0031:   1@ >= 1268.0 
8021:   not  1@ > 1248.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_6387   
0006: 6@ = 1 
:Noname_6387
00D6: if and
0031:   0@ >= 1331.0 
8021:   not  0@ > 1351.0 
0031:   1@ >= -861.0 
8021:   not  1@ > -881.0 
0031:   2@ >= -500.0 
8021:   not  2@ > 500.0 
0039:   6@ == 0 
004D: jump_if_false @Noname_6172   
0006: 6@ = 1
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
PHP:
// 0@ 1@ 2@ = XYZ of object
02CE: 3@ = ground_z_at 0@ 1@ 2@
0087: 4@ = 3@ // Copy groundZ for upper boundary.
4@ += 30.0 // In the sky.
IF AND
    0025:   2@ > 3@
    8025:   2@ < 4@
THEN
    // DO STUFF
END
 
  • Like
Reactions: Zin

RazooorS

Active member
Joined
Feb 16, 2019
Messages
60
Reaction score
0
PHP:
// 0@ 1@ 2@ = XYZ of object
02CE: 3@ = ground_z_at 0@ 1@ 2@
0087: 4@ = 3@ // Copy groundZ for upper boundary.
4@ += 30.0 // In the sky.
IF AND
    0025:   2@ > 3@
    8025:   2@ < 4@
THEN
    // DO STUFF
END
A lot of objects is under sky coridnate and upper ground but they are in house how i can set dont locate this too?
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
Get the coordinates of the ones that are in houses
PHP:
:check_if_building
{
    USAGE: 0AB1: @check_if_building 3 ObjectX /*X*/ ObjectY /*Y*/ ObjectZ /*Z*/ return_to 0@
   if
      0@ == true
   then
      //object is in house
   else
      //continue code
   end
}
6@ = false
/if and
    0031: 0@ >= //X value subtract 20.0
    8021: 0@ < //X value add 20.0
   
    0031: 1@ >= //Y value subtract 20.0
    8021: 1@ < //Y value add 20.0
   
    0031: 2@ >= //Z value subtract 20.0
    8021: 2@ < //Z value add 20.0
    6@ == false
then
    6@ = true
end
0AB2: ret 1 6@
 

RazooorS

Active member
Joined
Feb 16, 2019
Messages
60
Reaction score
0
Get the coordinates of the ones that are in houses
PHP:
:check_if_building
{
    USAGE: 0AB1: @check_if_building 3 ObjectX /*X*/ ObjectY /*Y*/ ObjectZ /*Z*/ return_to 0@
   if
      0@ == true
   then
      //object is in house
   else
      //continue code
   end
}
6@ = false
/if and
    0031: 0@ >= //X value subtract 20.0
    8021: 0@ < //X value add 20.0
  
    0031: 1@ >= //Y value subtract 20.0
    8021: 1@ < //Y value add 20.0
  
    0031: 2@ >= //Z value subtract 20.0
    8021: 2@ < //Z value add 20.0
    6@ == false
then
    6@ = true
end
0AB2: ret 1 6@
Can i all of them do with that
 
Status
Not open for further replies.
Top