Mesaje Automate setate direct de pe contul de GM.

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Închis
Avatar utilizator
LuciMld
Utilizator interzis !

Utilizator interzis !
Mesaje: 285
Membru din: 11 Oct 2016, 19:06
Regat: Jinno
Aprecieri: 21  
Mulţumiri: 39  
 Contact:
Medalii

Salut aici va prezint un quest prin care un Game Master poate pune un mesaj automat la un timp anume.
Fara ca sa bage alte questuri prin ftp care sa arate mesajul s.a.m.d

Cod: Selectaţi tot

automex begin quests were start begin 
    
        When letter with PC. is_gm () begin 
            send_letter ( "GM Panel") 
        end 
    
        When info button or begin 
            a = select ( "AutoMessaggio Enable", "Disable AutoMessaggio", "Set Time In The News", "Close") 
            if a == 1 then 
                if game. get_event_flag ( "auto")> = 1 then 
                    say ( "E 'already active") 
                else 
                    say ( "AutoMessaggio Activated") 
                    game. set_event_flag ( "auto" 1) 
                    server_timer ( "mex", t) 
                end 
            elseif a == 2 then 
                say ( "AutoMessaggio Off") 
                game. set_event_flag ( "auto", 0) 
                clear_server_timer ( "mex") 
                clear_server_timer ( "mex1") 
            elseif a == 3 then 
                say ( "enter time") 
                m = ToNumber (input ()) 
                if m == nil then 
                    say ( "You must enter a number") 
                elseif m <1 then 
                    say ( "You must enter a positive number") 
                else 
                    h = select ( "Seconds", "Minutes", "hours") 
                    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 ( "Download Patch and info") <- Change the text here 
                if b! = "" then 
                    notice_all ( "AVAILABLE on the site and in") <- Change the text here 
                end 
                if c! = "" then 
                    notice_all ( "ChannelByBlasphemy" channel) <- Change the text here 
                end 
                server_timer ( "mex1", t) 
            else 
            end 
        end 
    
        When mex1.server_timer begin 
            if game. get_event_flag ( "auto") == 1 then 
                notice_all ( "Download Patch and info") <- Change the text here 
                if b! = "" then 
                    notice_all ( "AVAILABLE on the site and in") <- Change the text here 
                end 
                if c! = "" then 
                    notice_all ( "ChannelByBlasphemy" channel) <- Change the text here 
                end 
                server_timer ( "mex", t) 
            else 
            end 
        end 
    end 
end
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q .
6. Testaţi quest-ul .
Ultima oară modificat 30 Sep 2017, 14:40 de către ZNF, modificat 1 dată în total.
Motiv: Alin Ionuț.
Avatar utilizator
[Story]Anonym
Nou Venit

Nou Venit
Mesaje: 12
Membru din: 26 Iun 2017, 10:53
Server: Mario
Regat: Shinsoo
Aprecieri: 4  
Mulţumiri: 0
Medalii

Incerc acuma si revin cu EDIT.

EDUT : Nu merge

root@metin25:/usr/game/share/locale/romania/quest # ./qc anuntgm.quest
must start with 'quest'
anuntgm.quest:1:Abort (core dumped)
My name is Valoare.
Afișează semnătura
Avatar utilizator
.ShadoW
Nivel 4

Nivel 4
Mesaje: 659
Membru din: 14 Noi 2013, 17:54
Server: not yet..
Regat: Jinno
Aprecieri: 379  
Mulţumiri: 32  
Medalii

[Story]Anonym scrie:Incerc acuma si revin cu EDIT.

EDUT : Nu merge

root@metin25:/usr/game/share/locale/romania/quest # ./qc anuntgm.quest
must start with 'quest'
anuntgm.quest:1:Abort (core dumped)

normal ca nu merge , vezi inceputul questului, dude sterge automax
Imagine
Afișează semnătura
Avatar utilizator
xNarcis
Nou Venit

Nou Venit
Mesaje: 34
Membru din: 10 Sep 2013, 18:49
Server: Metin2Drunks
Regat: Jinno
Aprecieri: 8  
Mulţumiri: 0
 Contact:
Medalii

Salutare , nu merge questul :) Mai incearca.
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
440
Răspunsuri
1
Vizualizări
263
Răspunsuri
22
Vizualizări
8748

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 70 vizitatori