[SMART] Plugin SoundBox v1.0

Moderators: vni, NADEO

Post Reply
User avatar
vni
Posts: 221
Joined: 02 Oct 2011, 09:56

[SMART] Plugin SoundBox v1.0

Post by vni »

Plugin SoundBox
This plugin lets you define a list of sounds that users can play by paying Planets.

Configuration:
First go to plugin.soundbox.xml and create a list with the description and a custom trigger. Example:

Code: Select all

	<sound>
		<name>Holy Shit!</name>
		<trigger>SOUND1</trigger> 
		<price>10</price> <!-- Planets -->
		<blockafterplay>60</blockafterplay>
	</sound>
Then go to plugin.sounds.xml and add the Sound:

Code: Select all

	<sound>
		<event>SoundBoxPlay_SOUND1</event>
		<url>https://dl.dropbox.com/u/7750552/holyshit.ogg</url>
		<duration>2300</duration>
		<preload>true</preload>
		<blocktime>0</blocktime>
		<blockothersounds>true</blockothersounds>
	</sound>
If you want any Chat-Output, you may define it at the plugin.texttriggers.xml:

Code: Select all

	<item>
		<event>SoundBoxPlay_SOUND1</event> <!-- Event -->
		<chattext>Player %EXPECTEDNICKNAME% $z thinks this is HOLY SHIT!</chattext> 
		<receiver></receiver> 
		<toinfowidget>false</toinfowidget>
	</item>
You may also use the trigger "SoundBoxRefused" to catch if someone refused to pay.

Download/Update
Manual installation: http://smarttool.org/plugins.php
Ingame installation: /admin plugins

Changes
v1.0
- Initial Release
SMART - The smarter Servertool for Shootmania
Download SMART at http://smarttool.org
Changelog: here
Frequently Asked Questions: here

IRC: #smart @ QuakeNet (WebChat)
User avatar
insomnia-yamyam
Posts: 324
Joined: 05 Sep 2011, 04:59
Contact:

Re: [SMART] Plugin SoundBox v1.0

Post by insomnia-yamyam »

Lovely first release of a nice plugin. :thumbsup:

But if the plugin is disabled, the /soundbox command shouldn't be listed on /help
Just noticed cause a player tried and tried and tried and then asked me why it isnt working .. lol.
Cause it is disabled :D
GermanINSOMNIAClan!
Multigaming Fun-Clan since 1998!
» www.I-N-S-O-M-N-I-A.de «

Visit our TM2 and SM Clanserver or download the INSOMNIA TM2-Trackpack or SM-Mappack !
You also find us at both Mania-Exchanges - search "German INSOMNIA Clan"
User avatar
zargono
Posts: 35
Joined: 16 Jun 2012, 20:34
Location: France
Contact:

Re: [SMART] Plugin SoundBox v1.0

Post by zargono »

I'd love to have a similar plugin, letting people play some sounds for free through chat commands, with the same antispam options.
User avatar
vni
Posts: 221
Joined: 02 Oct 2011, 09:56

Re: [SMART] Plugin SoundBox v1.0

Post by vni »

you can already do this by adding custom chatcommands with a custom trigger. these triggers can be cathched by the sounds.xml and magic - there will be sound!
SMART - The smarter Servertool for Shootmania
Download SMART at http://smarttool.org
Changelog: here
Frequently Asked Questions: here

IRC: #smart @ QuakeNet (WebChat)
User avatar
zargono
Posts: 35
Joined: 16 Jun 2012, 20:34
Location: France
Contact:

Re: [SMART] Plugin SoundBox v1.0

Post by zargono »

Okay thanks, I'll try that way.
User avatar
vni
Posts: 221
Joined: 02 Oct 2011, 09:56

Re: [SMART] Plugin SoundBox v1.0

Post by vni »

See this example:

plugin.chatcommands.xml

Code: Select all

<custom_command>
		<command>mysound</command>
		<description>Play a sound</description> 
		<permission>Operator</permission>
		<chatmessage></chatmessage> 
		<toinfowidget>false</toinfowidget> 
		<custom_trigger>MYSOUND</custom_trigger> 
</custom_command>
plugin.sounds.xml

Code: Select all

	<sound>
		<event>CUSTOM_TRIGGER_MYSOUND</event>
		<url>https://dl.dropbox.com/u/7750552/utsounds/rampage.ogg</url>
		<duration>2300</duration>
		<preload>true</preload>
		<blocktime>0</blocktime>
		<blockothersounds>false</blockothersounds>
	</sound>
And you are done. Don't forget that triggers you create at the chatcommands.xml (Example MYSOUND) have to be prefixed with CUSTOM_TRIGGER_ at the sounds.xml (Example CUSTOM_TRIGGER_MYSOUND). I did this to avoid duplicate Triggernames.
SMART - The smarter Servertool for Shootmania
Download SMART at http://smarttool.org
Changelog: here
Frequently Asked Questions: here

IRC: #smart @ QuakeNet (WebChat)
User avatar
insomnia-yamyam
Posts: 324
Joined: 05 Sep 2011, 04:59
Contact:

Re: [SMART] Plugin SoundBox v1.0

Post by insomnia-yamyam »

Mhhhh. I do not even get the demo to work. :(

- Widget ... works. *but got a little "bug"
- Payment request on click ... works.
- Payment done and entered into booking ... works.
- Payment receives server account ... works.
- Sound is played after payment ... fails.
- Texttrigger chatmessage output ... fails.


Does anyone got this plugin to work?
(Including correct sound playback and textmessage output)

If yes, please send me a private message. Thank you!
GermanINSOMNIAClan!
Multigaming Fun-Clan since 1998!
» www.I-N-S-O-M-N-I-A.de «

Visit our TM2 and SM Clanserver or download the INSOMNIA TM2-Trackpack or SM-Mappack !
You also find us at both Mania-Exchanges - search "German INSOMNIA Clan"
User avatar
insomnia-yamyam
Posts: 324
Joined: 05 Sep 2011, 04:59
Contact:

Re: [SMART] Plugin SoundBox v1.0

Post by insomnia-yamyam »

Ok as noone answered or sent me PM in two weeks i gonna guess that noone got this plugin to work. :roll:
But can this really be? Does really noone downloaded this plugin to use it? ... I'm astonished :shock:
GermanINSOMNIAClan!
Multigaming Fun-Clan since 1998!
» www.I-N-S-O-M-N-I-A.de «

Visit our TM2 and SM Clanserver or download the INSOMNIA TM2-Trackpack or SM-Mappack !
You also find us at both Mania-Exchanges - search "German INSOMNIA Clan"
Post Reply

Return to “SMART Servercontroller”

Who is online

Users browsing this forum: No registered users and 2 guests