Help Replybot ?

BaseBoom

Member
Joined
Oct 9, 2013
Messages
16
Reaction score
0
Is there any such type of cleo Automatically answer when people nearby speak The statement is in chat.ini
 

dphome

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

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "GO"
THEN
    0B12: 31@ = 31@ XOR 1
    IF 31@ == 1
    THEN 0AD1: "~w~Script is ~g~ON" 1000
    ELSE 0AD1: "~w~Script is ~r~OFF" 1000
    END       
END

IF 31@ == 1
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 0AAB:   does_file_exist "CLEO\Script.ini"
        THEN
            0AB1: @get_samp_version_id 0 _returned: ID 0@
            0AC8: 1@ = allocate_memory_size 1024
            0AF4: 1@ = read_string_from_ini_file "CLEO\Script.ini" section "Config" key "Question"
            0AC8: 2@ = allocate_memory_size 1024
            0AF4: 2@ = read_string_from_ini_file "CLEO\Script.ini" section "Config" key "Answer"
                                  
            0AC8: 3@ = allocate_memory_size 1024
            0AC8: 4@ = allocate_memory_size 1024
            0AB1: @getChatString 1 ChatID 99 _Returned: Text 3@ PrefixText 4@ Color 5@ PrefixColor 6@
            IF 0AB1: @IfTextContains 2 String1 3@ String2 1@ _Returned: Text 7@
            THEN
                0209: 8@ = random_int_in_ranges 3000 6000
                WAIT 8@
                0AB1: @process_chat_input 2 SampVersionID 0@ InputText 2@
                WAIT 3000          
            END
        END
    END    
END

END
0A93: terminate_this_custom_script
 

Attachments

  • Script.cs
    32.9 KB · Views: 9
  • Script.ini
    90 bytes · Views: 11
Top