Bueno con esta quest ud podra ver su staff online
Quest.
quest teamOnline begin
state start begin
when letter begin
send_letter("Lista_de_Sfaff")
end
when button or info begin
local colorList = {}
colorList[0] = color256(220, 10, 10) --Offline
colorList[1] = color256(10, 220, 10) --Online
local query = m_query("SELECT REPLACE(REPLACE(mName, '[', '('),']', ')') as name, last_play > DATE_SUB(NOW(), INTERVAL 15 MINUTE) and visible = 1 as online FROM common.gmlist INNER JOIN player.player ON player.name = gmlist.mName WHERE visible != -1")
local height = 310
raw_script("[WINDOW_SIZE width;350|height;"..height.."]")
say_title("Team Lisste Root = Offline | Gruen = Online")
if table.getn(query) <= 0 then
say("Actualmente no hay nadie disponible")
return
end
for i = 1, table.getn(query) do
local row = query[i]
local name = row[1]
local online = tonumber(row[2])
local color = colorList[online]
say(color..name)
end
end
end
end
Deben crear un .sql llamado (common.gmlist)
DROP TABLE IF EXISTS `gmlist`;
CREATE TABLE `gmlist` (
`mID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`mAccount` varchar(16) NOT NULL DEFAULT '',
`mName` varchar(16) NOT NULL DEFAULT '',
`mContactIP` varchar(16) NOT NULL DEFAULT '',
`mServerIP` varchar(16) NOT NULL DEFAULT 'ALL',
`mAuthority` enum('IMPLEMENTOR','HIGH_WIZARD','GOD','LOW_WIZARD','PLAYER') DEFAULT 'PLAYER',
`visible` tinyint(4) NOT NULL DEFAULT '1',
PRIMARY KEY (`mID`)
)
Y eso es todo credito epvp
my freds Debes iniciar sesión para ver el contenido del enlace en esta publicación.
Buena esta quest es de un evento de un determinado npc que te lleva a un mapa donde te convierte en el y si ganas la carrera convertido
podes ganar yang y muchas cosas
quest course begin
state start begin
when 20041.chat."Curso de Vinos" begin
say("Hip, hip! me dicen que tengo...")
say("alcoholismo. Hip, hip!")
say("Organizare una tregua")
say("para mi, necesito ayuda. Hip, hip!")
if game.get_event_flag("course_vin") == 0 then
say("Hip Disculpe, pero no ")
say("hay una carrera? Hip")
say("")
else
say("Ok, la carrera se iniciara")
say("vas a participar? Hip!")
say("")
local m=select("Si", "No", "Cerrar")
if 1==m then
say("Esto es tiempo de partida! Hip!")
say("")
wait()
local r=number(1, 3)
if 1==r then
pc.warp(45700, 83800)
elseif 2==r then
pc.warp(47000, 45000)
elseif 3==r then
pc.warp(20600, 55800)
end
pc.polymorph(20041, 9000000)
wait()
elseif 2==m then
say("xD... como usted desee")
say("adelante! Hip!")
say("")
end
end
end
when 20041.chat."En la carrera" with pc.is_gm() begin
if game.get_event_flag("course_vin") == 0 then
say("Quieres lanzar la carrera para el vino?")
say("")
local s=select("Sí, la arrojare", "No")
if 1==s then
say("La carrera ha sido lanzada!")
say("")
notice_all("Una carrera pronto comenzara en el vino.")
notice_all("Hablando en cuanto a unirse a un borracho")
game.set_event_flag("course_vin", 1)
elseif 2==s then
say("No hay problema, la próxima vez!")
say("")
end
elseif game.get_event_flag("course_vin") == 1 then
say("La carrera ya se está ejecutando!")
say("")
end
end
when 20095.chat."Quiero el alcohol" with game.get_event_flag("course_vin") == 1 begin
if pc.count_item(30013) == 0 then
say("Ok...aquí está tu botella!")
say("Atención consumir con moderación!")
say("")
say_reward("Recibe uns botella de alcohol")
say_reward("Dale la botella al borracho, a ver que pasa!")
pc.give_item2(30013)
elseif pc.count_item(30013)>0 then
say("Pero usted tiene uno!")
say("Dime que eres un alcohólico?")
end
end
when 20004.chat."Tengo el alcohol!" with pc.count_item(30013) >0 begin
if game.get_event_flag("course_vin") == 1 then
say("Felicitaciones, eres la primera venida!")
say_reward("Usted gana 500.000 yang")
say_reward("Recibe una piedra")
say_reward("Usted recibe una misteriosa caja")
notice_all ("Es ".. pc.get_name() .." el ganador!")
notice_all ("No hay vuelta. El borracho se siente orgulloso de él, bravo!")
game.set_event_flag("course_vin", 0)
pc.give_item2(28443, 1)
pc.give_item2(50033, 1)
pc.change_money(500000)
elseif game.get_event_flag("course_vin") == 0 then
say("Perdone, pero una persona ya")
say("habia llegado! Hip!")
end
end
when 20004.chat."Salir de la carrera." with game.get_event_flag("course_vin")==0 begin
if pc.get_empire() == 1 then
pc.warp(469300, 964400)
pc.remove_item(30013)
pc.remove_polymorph(20041)
elseif pc.get_empire() == 2 then
pc.warp(56100, 158100)
pc.remove_item(30013)
pc.remove_polymorph(20041)
elseif pc.get_empire() == 3 then
pc.warp(970000, 278500)
pc.remove_item(30013)
pc.remove_polymorph(20041)
end
end
end
end
By"Skill"
Aqui os traigo un set de armas, en la descarga teneis los iconos y los gr2 con la textura.Las querys las haceis vosotros a proprio gusto.
Creditos: TreeN de Epvp
ViruScan: Debes iniciar sesión para ver el contenido del enlace en esta publicación.