PDA

View Full Version : Perl talking to a client


neiv2
01-18-2010, 10:00 PM
A question for all the perl wizards. I know it's possible for a client machine to trigger a perl script on the server (using, e.g., player.pl), but does the reverse work? Is there a way (preferably through a quest script, but it's not necessary) to get perl to issue a command to a client machine, possibly even triggering another perl script on the client machine?

trevius
01-19-2010, 05:13 AM
When you say "client machine", you probably just mean "client". Perl has nothing to do with what is happening on the "client machine", which the same thing as saying the player's home computer. But, it does affect the client/character itself.

Maybe you can explain what it is you are trying to do, and we can help. From the information given, I am not clear on what you are trying to do. If you are wanting one client's actions in game to effect what happens to another client, that can be done, though.

joligario
01-19-2010, 06:41 AM
From what I read, he did mean client machine. He wants to execute code on the client machine.

Rogean
01-19-2010, 04:34 PM
Perl has nothing to do with the client, its merely a server side script system.

neiv2
01-20-2010, 12:30 AM
Ok, I think that answers my question. As joligario rightly guessed, I was hoping to have the ability to execute code on the client machine, or at least issue instructions from the server to the client machine. I take it this is not possible.

Thovar
01-20-2010, 02:16 PM
Why do you want to do that? and I do not think its possible...

trying to hack someones computer that's been hacking on your server???

that would be the only reason I could think of that would cause someone to want to run scripts o the client instead of just on the server...

sorry, its just an odd question, there shouldn't be a need or any reason to run the scripts on the client, ever... just my opinion

trevius
01-20-2010, 07:02 PM
Probably because he wants them to play a certain MP3 or something like that.

neiv2
01-20-2010, 08:17 PM
Trevius is correct. It goes along with my long-time obsession over coming up with some way to add custom music to zones.

And for the record, I run a private server on a lan; so the "hacking" would be limited to those who consent :)

Thovar
01-21-2010, 06:37 PM
AH!!! i see, that makes sense now... I have to agree that would be pretty cool since there are some zones that could use some extra creepy music. That would open up a whole new world of adding custom music to the server.

neiv2
01-22-2010, 12:07 AM
Well, if you don't mind it being only at the server level, I created this procedure (http://www.eqemulator.net/forums/showthread.php?t=27844&highlight=custom+zone+music)to do just that. If your server is in the same room, and it has a speaker, you can simulate the effect. It will automatically kill the last zone-specific music and begin to play the new when you enter the next zone.