ID:164755
 
Are u able to detect whether someone is using telnet or dreamseeker, and if so, are you able to support both users on the same server during runtime? I'm wanting to be able to allow for both telnet and dreamseeker users to log into the server. I also want to be able to use the dreamseeker features such as a map window and browser popups for those users who're using dreamseeker. For telnet users these features would not apply, and would be ignored. There would likely be a text interface for telnet and a map/popup interface for dreamseeker.
Servodave2k wrote:
Are u able to detect whether someone is using telnet or dreamseeker, and if so, are you able to support both users on the same server during runtime? I'm wanting to be able to allow for both telnet and dreamseeker users to log into the server. I also want to be able to use the dreamseeker features such as a map window and browser popups for those users who're using dreamseeker. For telnet users these features would not apply, and would be ignored. There would likely be a text interface for telnet and a map/popup interface for dreamseeker.

Telnet users' keys are set to their IP - If a . symbol is present in their key, they are using telnet to connect.
In response to Alathon
Alathon wrote:
Telnet users' keys are set to their IP - If a . symbol is present in their key, they are using telnet to connect.

You mean an @ symbol, right?
You could do something like this:

client
var/connection_type = "Dream Seeker" // there will only be 2 types of connection, the default will be Dream Seeker
New()
if (findtext(src.key,"@")) // the key will be either set to 1) the player's key if it exists (they are using Dream Seeker) or 2) their IP address with a following "Telnet: @" message (they are using a telnet client).
src.connection_type = "Telnet"
..()


With that, you can just check src.client.connection_type to decide if it can or can't do something.
In response to Jon88
Why would he mean at, my IP address doesn't nor has it ever looked like this:

22@255@128@133

There may be some character in there that the user can't see but...

-KirbyAllStar
In response to KirbyAllStar
Well, the client will be connecting you with "Telnet @22.255.128.133".
In response to Keeth
Ah ok that makes sense then.