Domanda Script spamma in chat gm a intervalli di tempo specificati

Stato
Discussione chiusa ad ulteriori risposte.

Silentx

Utente Silver
2 Dicembre 2010
70
17
1
72
Ultima modifica:
Salve, circa 2 giorni fa era stato postato, se non erro, uno script in grado di spammare in chat gm (da gm ovviamente) con la scelta dell'intervallo di tempo pure , ma non riesco a trovarlo. Ho usato anche il cerca, ma nulla da fare...qualcuno di voi l ha scaricato? Grazie dell aiuto,

Saluti +1 a chi mi da una mano ;)
 
Ultima modifica:
Siccome non riuscivo a mettere link ho copiato il tutto ma E' FATTO TUTTO DA SUPERISI

PHP:
    quest automex begin
        state start begin
            when letter with pc . is_gm ( ) begin
            send_letter ( "Pannello GM" )
        end
            when button or info begin
            a = select ( "Attiva AutoMessaggio" , "Disattiva AutoMessaggio" , "Setta AutoMessaggio" , "Setta Tempo Tra Le Notizie" , "Chiudi" )
                if a == 1 then
                    if game . get_event_flag ( "auto" ) >= 1 then
                    say ( "E' gia attivo" )
                    else
                    say ( "AutoMessaggio Attivato" )
                    game . set_event_flag ( "auto" , 1 )
                    server_timer ( "mex" , t )
                end
                elseif a == 2 then
                say ( "AutoMessaggio Disattivato" )
                game . set_event_flag ( "auto" , 0 )
                clear_server_timer ( "mex" )
                clear_server_timer ( "mex1" )
                elseif a == 3 then
                say ( "Inserisci il messaggio" )
                s = input ( )
                elseif a == 4 then
                say ( "inserisci il tempo:" )
                m = tonumber(input())
                    if m == nil then
                    say ( "Devi inserire un numero" )
                    elseif m < 1 then
                    say ( "Devi inserire un numero positivo" )
                    else
                   h = select ( "Secondi" , "Minuti" , "Ore" )
                        if h == 1 then
                        t = m
                        elseif h == 2 then
                        t = tonumber(m * 60)
                        elseif h == 3 then
                        t = tonumber(m * 60 * 60)
                    end
               end
            end
        end
            when mex.server_timer begin
            if game . get_event_flag ( "auto" ) == 1 then
            notice_all ( ""..s )
            server_timer ( "mex1" , t )
            else
           end
        end
            when mex1.server_timer begin
            if game . get_event_flag ( "auto" ) == 1 then
            notice_all ( ""..s )
            server_timer ( "mex" , t )
            else
            end
         end
    end
end



A Cosa Serve?
Seve per mandare in automatico ongi tot minuti un messaggio in chat GM ( quella gialla che vedono tutti i player )
Cosa potrete fare?
Potrete:
1- Attivare/Disativare L'AutoNotizia
2- Settare In Tempo Reale Il Messaggio Che Andrà In Notizia ( TESTATO )
3- Settare In Tempo Reale Il Tempo Tra Una Notizia E L'Altra ( TESTATO )
SE LO DOVETE POSTARE SU ALTRI SITI METTETE CREDITI

Aggiornato:

Script con piu righe

PHP:
    quest automex begin
        state start begin
            when letter with pc . is_gm ( ) begin
            send_letter ( "Pannello GM" )
        end
            when button or info begin
            a = select ( "Attiva AutoMessaggio" , "Disattiva  AutoMessaggio" , "Setta AutoMessaggio" , "Setta Tempo Tra Le Notizie" ,  "Chiudi" )
                if a == 1 then
                    if game . get_event_flag ( "auto" ) >= 1 then
                    say ( "E' gia attivo" )
                    else
                    say ( "AutoMessaggio Attivato" )
                    game . set_event_flag ( "auto" , 1 )
                    server_timer ( "mex" , t )
                end
                elseif a == 2 then
                say ( "AutoMessaggio Disattivato" )
                game . set_event_flag ( "auto" , 0 )
                clear_server_timer ( "mex" )
                clear_server_timer ( "mex1" )
                elseif a == 3 then
                say ( "Inserisci il messaggio" )
                s = input ( )
                say ( "Altro Messaggio:" )
                b = input ( )
                say ( "Altro Messaggio:" )
                c = input ( )
                elseif a == 4 then
                say ( "inserisci il tempo:" )
                m = tonumber(input())
                    if m == nil then
                    say ( "Devi inserire un numero" )
                    elseif m < 1 then
                    say ( "Devi inserire un numero positivo" )
                    h = select ( "Secondi" , "Minuti" , "Ore" )
                        if h == 1 then
                        t = m
                        elseif h == 2 then
                        t = tonumber(m * 60)
                        elseif h == 3 then
                        t = tonumber(m * 60 * 60)
                    end
               end
            end
        end
            when mex.server_timer begin
            if game . get_event_flag ( "auto" ) == 1 then
            notice_all ( ""..s )
            if b != "" then
            notice_all ( ""..b )
end
            if c != "" then
            notice_all ( ""..c )
end
            server_timer ( "mex1" , t )
            else
           end
        end
            when mex1.server_timer begin
            if game . get_event_flag ( "auto" ) == 1 then
            notice_all ( ""..s )
            if b != "" then
            notice_all ( ""..b )
end
            if c != "" then
            notice_all ( ""..c )
end
            server_timer ( "mex" , t )
            else
            end
         end
    end
end



Come inserirlo nel server:
1-Percorso FTP usr/rain/channel/share/data/locale/hongkong/quest
2-create un nuovo FILE, nominatelo automex.quest
3-all'interno del file metteteci il mio script, chiudete e salvate
4-Apriamo la macchina o putty che si fa prima
5-digitiamo
Codice:
cd /usr/rain/channel/share_data/locale/hongkong/quest

premiamo INVIO
6-e digitiamo

Codice:
./qc automex.quest

premiamo INVIO
7-Riavviate oppure fate "reload q" in game


Appena loggherete troverete una pergamena delle missioni con scritt pannello gm e da li potrete settare ogni cosa riguardi l'autoallert




TUTTO DI SUPERISI



Il lavoro non è mio quindi il +1 dallo a Superisi non a me
: http://www.inforge.net/community/member.php?u=116395
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom