CLEO Help auto command with name street

CLEO related

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "CMD"
THEN
    0B12: 30@ = 30@ XOR 1        
    IF 0039:   30@ == 1
    THEN 0AD1: show_formatted_text_highpriority "~w~Script ~g~ON" time 1337
    ELSE 0AD1: show_formatted_text_highpriority "~w~Script ~r~OFF" time 137
    END
END

IF 30@ == 1
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        
        0AC8: 0@ = allocate_memory_size 1024
        0AC8: 2@ = allocate_memory_size 1024
        0AB1: @getChatString 2 SampVersionID 3 ChatID 99 _Returned: Text 0@ PrefixText 2@ Color 3@ PrefixColor 4@
        0AC8: 1@ = allocate_memory_size 260
        0AB1: @DeleteColorCodesFromText 2 text 0@ memory_to_store_characters_as_text 1@
        0AC8: 5@ = allocate_memory_size 1024
        0AD3: 5@ = format "Where i am?"        
        IF 0AB1: @IfTextContains 2 String1 1@ String2 5@ _Returned: Text 6@
        THEN                                    
            04C4: store_coords_to 7@ 8@ 9@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
            0AC8: 10@ = allocate_memory_size 260
            0843: get_zone_at 7@ 8@ 9@ nameA_to 10@s // 8-byte string
            0ADE: 10@ = text_label_string 10@s
            0AC8: 11@ = allocate_memory_size 1024
            0AD3: 11@ = format ">: You are here: %s" 10@
            0AB1: @Chatmsg 3 SampVersionID 3 text 11@ color -1
            0AC9: free_allocated_memory 10@ 
            WAIT 7500                
        END
       
    END 
END

END
0A93: terminate_this_custom_script
 

Attachments

  • Script.cs
    30.2 KB · Views: 6
Top