[Quest Release]Online teamlist

08/20/2010 20:03 sennah#1
this quest will pop up a questscroll with the status off the gm's (online/offline)
if you like it, thank it :)

Features:
-Shows a list with all the gm's
-online / offline status

Things that can be better:

Screenshot:
[Only registered and activated users can see links. Click Here To Register...]
the alignment is off, since i changed the names into numbres

Installation:
Copy and paste the quest in a text editor.
Save it as: gmonline.quest
upload it into your serverfiles
add the quest into hongkong.list
run sh make.sh
execute /reload q in game

Items used:

Special note:
You have to include the following quest data with an item or npc to change the gm status.
change into online:
PHP Code:
                local name pc.get_name()
                
game.set_event_flag(name1)
                
setskin(NOWINDOW
change into offline:
PHP Code:
                local name pc.get_name()
                
game.set_event_flag(name0)
                
setskin(NOWINDOW

Quest file:

PHP Code:
quest gmonline begin
    state start begin
        when login begin
            set_state
(information)
        
end
    end
    state information begin 
        when letter begin 
            send_letter
("Online GM list"
        
end
        when button 
or info begin
            say
("Name                                     Status")
            
say("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
            if 
game.get_event_flag("[SA]6")== 1 then
                say_reward
("SA 6                                online")
            else
                
say("SA 6                            offline")
            
end
            
if game.get_event_flag("[SGM]5")== 1 then
                say_reward
("SGM 5                                online")
            else
                
say("SGM 5                       offline")
            
end
            
if game.get_event_flag("[GM]4")== 1 then
                say_reward
("GM 4                                online")
            else
                
say("GM 4                                offline")
            
end
            
if game.get_event_flag("[GM]3")== 1 then
                say_reward
("GM 3                                online")
            else
                
say("GM 3                                offline")
            
end
            
if game.get_event_flag("[GM]2")== 1 then
                say_reward
("GM 2                            online")
            else
                
say("GM 2                            offline")
            
end
            
if game.get_event_flag("[GM]1")== 1 then
                say_reward
("GM 1                    online")
            else
                
say("GM 1                      offline")
            
end
        end
    end
end 
08/20/2010 20:07 Hermes2012#2
Wenns geht hammer muss mal einer testen habe grad keinen server
08/20/2010 20:35 °RapLexx°#3
Es geht hammer thx
08/20/2010 21:08 .G0ldRaiN#4
can you make a screenshot please
08/20/2010 22:00 AleKsXx#5
Very nice, it works 100%!
Thank you :D
08/20/2010 22:30 Pаylasici#6
Nettes Ding.
08/20/2010 22:31 sennah#7
#screenshot added
08/20/2010 22:44 LxR'EsoZiaL#8
Öhm ist das nur Test oder Checkt er ob ein GM on ist ?

Wen Checkt dan HAMMER THX :D
08/20/2010 23:07 LS-fanfan#9
Der checkt das auch, sonst wärs ja eigentlich sinnlos ^^

echt hammer spitze der quest, gleich mal einbauen

thx :)
08/20/2010 23:11 thesone007#10
Funktioniert garnet -.-

Also Gmon.quest gemacht aber naja mein namen etc Hinzugefügt nur weis net was ich mit den

local name = pc.get_name()
game.set_event_flag(name, 1)
setskin(NOWINDOW)
anfangen soll kann wer helfen? :S
08/20/2010 23:24 Megaload#11
Thats nice i have make it like you ;) But yours is better ;) Thank you
08/20/2010 23:52 sennah#12
np, if anyone have problem to create the npc or item that changes the status let me know
08/21/2010 01:19 .Risan.#13
Sorry, wenn ich frage, aber wo genau soll das hin?

PHP Code:
change into online:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name1)
                
setskin(NOWINDOW
change into offline:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name0)
                
setskin(NOWINDOW
Da blicke ich nicht ganz durch

english:

Sorry if I ask, but where exactly is the point?

PHP Code:
change into online:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name1)
                
setskin(NOWINDOW
change into offline:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name0)
                
setskin(NOWINDOW
Since I do not look all the way
08/21/2010 01:26 sennah#14
that code will change the status from the gm in the list.
08/21/2010 01:36 ~Casi~#15
Quote:
Originally Posted by Woody° View Post
Sorry, wenn ich frage, aber wo genau soll das hin?

PHP Code:
change into online:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name1)
                
setskin(NOWINDOW
change into offline:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name0)
                
setskin(NOWINDOW
Da blicke ich nicht ganz durch

english:

Sorry if I ask, but where exactly is the point?

PHP Code:
change into online:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name1)
                
setskin(NOWINDOW
change into offline:
PHP-Code:
                
local name pc.get_name()
                
game.set_event_flag(name0)
                
setskin(NOWINDOW
Since I do not look all the way
das verstehe ich auch nicht bitte einer um erklärung