Jump to content

Evento de Rana


Aurora

Mensajes recomendados

quest asd begin

state start begin

when 11505.kill begin

local items = {19,29}

local prob = math.random(1,2)

if prob == 1 then

game.drop_item_with_ownership(items[1], 1)

elseif prob == 2 then

game.drop_item_with_ownership(items[2], 1)

end

end

end

end

end

end

Creo q me va mal este quest y me puede correguir por favor

Enlace para comentar
Compartir en otros sitios

Spoiler

quest rana_oro begin
state start begin
when npc.chat."evento rana oro" with pc.is_gm() begin
say("texto")
local s = select("Activar","Cancelar","Cerrar")
if s == 3 then return
	elseif s == 1 then
		game.set_event_flag("evento1",1)
		notice_all("on")
		elseif s == 2 then
			game.set_event_flag("evento1",0)
			notice_all("off")
		end
	end
	when idmob.kill with game.get_event_flag("evento1")== 1 begin
	local items = {19,29,39,49,59}
	local aleatorio = math.random(1,5)
	game.drop_item_with_ownership(items[aleatorio], 1)
end
end
end

 

 

Enlace para comentar
Compartir en otros sitios

  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...