Jump to content

[Peticiòn]2 Quest


Riochu™ no es

Recommended Posts

 

quest panel beginstate start beginwhen login beginset_state(information)endendstate information beginwhen letter beginsend_letter("Lista GM Online")endwhen button or info beginsay_title("".. pc.get_name() ..", Bienvenido a la lista de GM's Online!")say("")local s=select("Lista GM Online", "Salir")if s==1 thensay("Nombre Estado")say("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")if game.get_event_flag("[sA]Kay331")== 1 thensay_reward("[sA]Kay331 online")elsesay("[sA]Kay331 offline")endif game.get_event_flag("[GA]Glupschi")== 1 thensay_reward("[GA]Glupschi online")elsesay("[GA]Glupschi offline")endif game.get_event_flag("[TGM]Deluxe")== 1 thensay_reward("[TGM]Deluxe online")elsesay("[TGM]Deluxe offline")endif game.get_event_flag("[bA]Ghawar")== 1 thensay_reward("[bA]Ghawar online")elsesay("[bA]Ghawar offline")endif game.get_event_flag("[GA]Jeon")== 1 thensay_reward("[GA]Jeon online")elsesay("[GA]Jeon offline")endsay("SA= Kay331")say("GA= Glupschi, Jeon")say("TGM= Deluxe")say("BA= Ghawar")say("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")elseif s==2 thenendendendend

 

 

quest onlinequest_login beginstate start beginwhen login with pc.is_gm() beginlocal name = pc.get_name()game.set_event_flag(name, 1)setskin(NOWINDOW)endwhen logout with pc.is_gm() beginlocal name = pc.get_name()game.set_event_flag(name, 0)setskin(NOWINDOW)endendend

 

 

Van las dos juntas xD

Link to comment
Share on other sites

quest gm_list begin	state start begin		when letter begin			send_letter("GM Quest")		end		when button or info begin			local GM_LIST = {				"GM1",				"GM2",				"GM3",				"GM4"			}			for i = 1, table.getn(GM_LIST) do				if game.get_event_flag(GM_LIST[i]) == 1 then					say("GM " .. GM_LIST[i] .. " is Online")				else					say("GM " .. GM_LIST[i] .. " is Offline")				end			end		end		when login with pc.is_gm() begin			game.set_event_flag(pc.get_name(), 1)		end		when logout with pc.is_gm() begin			game.set_event_flag(pc.get_name(), 0)		end	endend
Link to comment
Share on other sites

Aqui tienes las dos quest, la de Gm's es totalmente automática, sin necesidad de configurar a cada Gm.

	    -------------------    --Quest Varias--    --Por Pepineitor---    -------------------    quest varias begin            state start begin                    when levelup with pc.get_level() == 250 begin                        notice_all(pc.get_name().." ha alcanzado el nivel 250.")                    end                    when 20092.click begin                                    local gm=mysql_query("select name from player.player WHERE name like '[%'and DATE_SUB(NOW(), INTERVAL 6 MINUTE) < last_play;")                                    local online=mysql_query("SELECT COUNT(*) as count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 6 MINUTE) < last_play and name like '[%';")                                    chat("Miembros del Equipo conectados en los ultimos 5 minutos: "..online.count[1])                                    table.foreachi(gm,function(i,g)                                    chat(g[1])                                    end)                    end            end    end
Link to comment
Share on other sites

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...