Aardwolf Quest Time Beep Noise Plugin

Posted by BarkinMad on Wed 21 Sep 2016 11:42 PM — 1 posts, 10,807 views.

#0
Use the same technique as in the last post and you will have a new plugin that will make three short beep noises that sound a bit like a sonar but without the reverb when it's time to quest again...



<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>

<muclient>

<plugin
   name="Quest_Time_Audio"
   author="Barkinmad"
   id="18aa87a643f23fa6f208259c"
   language="Lua"
   save_state="y"
   date_written="2016-09-21 11:25:45"
   requires="4.98"
   version="1.0"
   >
</plugin>

<script>

<![CDATA[
require "gmcphelper"
function OnPluginBroadcast (msg, id, name, text)
	if (text == "comm.quest") then
		res, gmcparg = CallPlugin("3e7dedbe37e44942dd46d264", "gmcpval", "comm")
		luastmt = "gmcpdata = " .. gmcparg
		assert (loadstring (luastmt or "")) ()
		local action = gmcpval("quest.action")
		if (action == "ready") then
			PlaySound (1, "beep-01.wav", false, 0, 0)
		end
	end
end -- function onpluginbroadcast

]]>

</script>

</muclient>