[QUEST]Auto Notice with timer [ ENG ]

02/04/2011 16:17 gkilah#1
Hello, this days i found this quest auto notice with timer, original quest language was italian i translated to english.

QUEST IT IS NOT MADE BY ME, ( OWNER : Superisi )


PHP Code:
quest automex begin
        state start begin
            when letter with pc 
is_gm ( ) begin
            send_letter 
"GM Auto Notice" )
        
end
            when button 
or info begin
            a 
select "Enable Auto Message" "Disable Auto Message" "Set Auto Message" "Set time" ,  "Close" )
                if 
== 1 then
                    
if game get_event_flag "auto" ) >= 1 then
                    say 
"Already active" )
                    else
                    
say "Auto Message On" )
                    
game set_event_flag "auto" )
                    
server_timer "mex" )
                
end
                
elseif == 2 then
                say 
"Auto Message Off" )
                
game set_event_flag "auto" )
                
clear_server_timer "mex" )
                
clear_server_timer "mex1" )
                elseif 
== 3 then
                say 
"Enter your message" )
                
input ( )
                
say "Other Message:" )
                
input ( )
                
say "Other Message:" )
                
input ( )
                elseif 
== 4 then
                say 
"Auto post time:" )
                
tonumber(input())
                    if 
== nil then
                    say 
"You must enter a number" )
                    elseif 
1 then
                    say 
"You must enter a positive number" )
                    else
                    
select "Seconds" "Minutes" "Hours" )
                        if 
== 1 then
                        t 
m
                        
elseif == 2 then
                        t 
tonumber(60)
                        elseif 
== 3 then
                        t 
tonumber(60 60)
                    
end
               end
            end
        end
            when mex
.server_timer begin
            
if game.get_event_flag "auto" ) == 1 then
            notice_all 
""..)
            if 
!= "" then
            notice_all 
""..)
end
            
if != "" then
            notice_all 
""..)
end
            server_timer 
"mex1" )
            else
           
end
        end
            when mex1
.server_timer begin
            
if game get_event_flag "auto" ) == 1 then
            notice_all 
""..)
            if 
!= "" then
            notice_all 
""..)
end
            
if != "" then
            notice_all 
""..)
end
            server_timer 
"mex" )
            else
            
end
         end
    end
end 
Hope you like it, and its useful for you.

I tested it works 100%.
02/04/2011 16:18 .ZiPPO#2
nice
02/04/2011 16:29 lautlosertot#3
pls Quest in german
02/04/2011 16:36 gkilah#4
Quote:
Originally Posted by lautlosertot View Post
pls Quest in german
Well i don`t know german language, try to use google translator.
02/04/2011 16:42 .Junior#5
Quote:
Originally Posted by lautlosertot View Post
pls Quest in german
Dann übersetz es doch ...
Ist doch nicht so schwer o.o
02/04/2011 16:55 lautlosertot#6
k^^
02/04/2011 16:59 #SoNiice#7
Bin mir nicht sicher, aber wurde nicht genau diese Quest schonmal public gemacht?
--------------
I'm not sure, but the quest was already public.
02/04/2011 17:02 gkilah#8
Quote:
Originally Posted by SoNiice' View Post
I'm not sure, but the quest was already public.
I don`t know, i tryed to search something like this on epvp and i have not found it, i search for google and i found it on italian website.

If is double post, i`m sorry ( mod can delete it ), but i haven`t found it with search.
02/04/2011 17:09 #SoNiice#9
Quote:
Originally Posted by gkilah View Post
I don`t know, i tryed to search something like this on epvp and i have not found it, i search for google and i found it on italian website.

If is double post, i`m sorry ( mod can delete it ), but i haven`t found it with search.
I try to find the link ;O
02/04/2011 18:01 DeathleyDragon#10
nice werd ich bei sons of justice benutzen danke ;)
02/04/2011 19:01 BaTushi16#11
Quote:
Originally Posted by .Exilium View Post
nice werd ich bei sons of justice benützen danke ;)
hahah "benützen".
Nice Quest.
02/04/2011 20:01 [SGA]Jango#12
Nice würde es aber besser in einem NPC finden den sonst steht das bei einem GM immer da. das würd mich nerven!
02/04/2011 20:38 .RaiKan#13
Eine frage wie kann man die so umschreiben das die Nachricht nur einmal gepostet wird?

mfg RaiKan

Edit: hat sich erledigt hab es selber herausgefunden
02/04/2011 22:02 .C ř u ž ε#14
Hey,

Wer es in deutsch will,
ich werde es uebersetzten und hier rein posten ;)

Mfg
02/04/2011 22:13 .Shade#15
thanks it will help :)