Page 1 of 1
Is it possible to make IP's exec music?
PostPosted:Wed Jun 08, 2016 3:16 am
by Frog
Either this sounds really stupid or I may just have a idea yet!
So, well, I'm not computer geek, but I am wondering: Is it possible to program connecting IP's in the server to trigger a music theme? I've been wanting to do this for awhile. Not only would Saki not be able to sneak up on me anymore, but I could hear a scary music theme along with it!
I'd appreciate any replies

Re: Is it possible to make IP's exec music?
PostPosted:Wed Jun 08, 2016 3:23 am
by John
You might be able to change the footstep sound for certain player models.
Re: Is it possible to make IP's exec music?
PostPosted:Wed Jun 08, 2016 3:43 am
by Frog
I mean, for instance, as soon as a IP connects to a server, a music theme plays.
Re: Is it possible to make IP's exec music?
PostPosted:Wed Jun 08, 2016 5:10 am
by MasterM
Dunno about IP's, but I would imagine you could do something similar through UU or a similar utility using player names. It already checks if a connecting player is in the clan for instance, and displays a special greeting message. By extension, since there is a music player integrated, I imagine you could get it to play some sort of sound or song when a player with a certain name connects.
Re: Is it possible to make IP's exec music?
PostPosted:Wed Jun 08, 2016 12:50 pm
by Pantheon
Saki joins: MORTAL COMBAT THEME! once you make that, post it up for me xD
Re: Is it possible to make IP's exec music?
PostPosted:Tue Jun 14, 2016 7:26 pm
by Zabuza
You could write a program that listens to the console's text via Win32 api. With the text, you can parse out the name/connected combo and play a sound file.
IPs of other players are not available at the client level.
Re: Is it possible to make IP's exec music?
PostPosted:Wed Jun 15, 2016 8:18 am
by Raz0r
Zabuza wrote:You could write a program that listens to the console's text via Win32 api. With the text, you can parse out the name/connected combo and play a sound file.
Much simpler: write a JA++ Lua plugin
This should work, untested..
lua/cl/connection-sound/plugin.lua
Code: Select alllocal cs = RegisterPlugin( 'ConnectionSound', '1.0.0' )
cs.connectionSound = RegisterSound( 'sound/effects/fireburst' )
AddListener( 'JPLUA_EVENT_CLIENTCONNECT', function( player )
if JPUtil.StripColours( player.name ):find( 'sakito' ) ~= nil then
StartLocalSound( cs.connectionSound, SoundChannel.LocalSound )
end
end )
Re: Is it possible to make IP's exec music?
PostPosted:Thu Jun 16, 2016 1:25 am
by Zabuza
Raz0r wrote:Zabuza wrote:You could write a program that listens to the console's text via Win32 api. With the text, you can parse out the name/connected combo and play a sound file.
Much simpler: write a JA++ Lua plugin
This should work, untested..
lua/cl/connection-sound/plugin.lua
Code: Select alllocal cs = RegisterPlugin( 'ConnectionSound', '1.0.0' )
cs.connectionSound = RegisterSound( 'sound/effects/fireburst' )
AddListener( 'JPLUA_EVENT_CLIENTCONNECT', function( player )
if JPUtil.StripColours( player.name ):find( 'sakito' ) ~= nil then
StartLocalSound( cs.connectionSound, SoundChannel.LocalSound )
end
end )
What he said
Re: Is it possible to make IP's exec music?
PostPosted:Thu Jun 16, 2016 2:33 am
by Frog
Idk how any of this stuff works. Remember, I have the imagination of a three year old and the mental capacity of one as well. Can you explain what I am to do with all this code information?
Re: Is it possible to make IP's exec music?
PostPosted:Fri Jun 17, 2016 1:44 pm
by Raz0r
If you are using JA++, put it in a text file named plugin.lua inside GameData/japlus/lua/cl/connection-sound/
Re: Is it possible to make IP's exec music?
PostPosted:Sun Jun 19, 2016 6:14 am
by Jack Skywalker
Saki connects as "Padawan", so I guess it wouldn't work with the connection message. And you obviously can't do it with the IP. Maybe try it with rename message, or admin login?