BeBot - An Anarchy Online and Age Of Conan chat automaton
Development => Module Requests => Topic started by: xlDanek on March 09, 2009, 10:38:01 am
-
Hi Temar!
Is it possible to rewrite your Teamspeak Module that it can show the members on our Shockvoice-Server (another voice-tool -> www.shockvoice.net)?
I tried it but my knowledge in php isn't good enough to do it by myself. But I think that it is possible, am I right?
-
There is quite a bit difference between Shockvoice and Teamspeak. You may have better luck modifying the Ventrillo (http://bebot.link/module-requests/ventrillo/) plug in that is available here. Teamspeak has a dedicated console port that is used to generate queries and not XML like Shockvoice.
-
If Shockvoice gives you XML output of the status, parsing the XML for display should be easy. As I mentioned, Ventrilo would be much easier if they gave XML output. But since they don't, I had to create custom string parsers.
The whois module fetches XML player data from FC's servers. You may want to look there to see how that XML is parsed and look at XML Character Information (http://people.anarchy-online.com/character/bio/d/1/name/slacklin/bio.xml).
Once you get the XML parsing figured out, you should be able to use the Ventrilo for BeBot 0.4 (http://bebot.link/0-4-x-customunofficial-modules/ventrilo/) as a template.
-
Thx for your answers!
I will give it a try ;)
But first problem:
How can I fetch the sourcecode of an URL like "http://SERVER:PORT/SERVER_ID" which gives the status of the Shockvoice-Server in a XML format?
I tried "file_get_contents", but I think it has a problem with the ":" beetween SERVER and PORT! A normal URL like "http://bebot.link" is no problem with that function.
-
hi,
there should be a query.tar.gz file in the shockvoice server directory. this is the viewer.
-
Hmm, I have no query.tar.gz or anything similar in the Server-Directory. Curious...
-
Well, i'm sure it's part of the 0.8.4 Linux server version.
-
I'm not above bribery for code. I could really use some QL300 Supple armor parts on RK1. ;)